openware / peatio-contrib

Peatio blockchains and currencies plugins

Home Page:https://www.openware.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect hooks init in v2.4.0

martianatwork opened this issue · comments

commented

In peatio blockchain_service
we are initializing the service on line 10
https://github.com/openware/peatio/blob/af5ee076b8855bbe505d676ce14efb4603c17b97/app/services/blockchain_service.rb#L10

But in the hooks we are initializing them as well Blockchain & Wallet.

Peatio::Blockchain.registry[:bitcoincash] = Bitcoincash::Blockchain.new

This is causing issue (obviously) as we are initializing the service twice!