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!
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-contrib/peatio-bitcoincash/lib/peatio/bitcoincash/hooks.rb
Line 29 in 240fd82
This is causing issue (obviously) as we are initializing the service twice!