lib/peatio/goldcash/blockchain.rb in peatio-goldcash-2.6.1 vs lib/peatio/goldcash/blockchain.rb in peatio-goldcash-2.6.2

- old
+ new

@@ -1,6 +1,5 @@ - module Peatio module Goldcash # TODO: Processing of unconfirmed transactions from mempool isn't supported now. class Blockchain < Peatio::Blockchain::Abstract @@ -18,10 +17,10 @@ end def fetch_block!(block_number) block_hash = client.json_rpc(:getblockhash, [block_number]) - client.json_rpc(:getblock, [block_hash, 2]) + client.json_rpc(:getblock, [block_hash]) .fetch('tx').each_with_object([]) do |tx, txs_array| txs = build_transaction(tx).map do |ntx| Peatio::Transaction.new(ntx.merge(block_number: block_number)) end txs_array.append(*txs)