peatio-goldcash 2.6.1 → 2.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/peatio/goldcash/blockchain.rb +1 -2
- data/lib/peatio/goldcash/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3a409aaf6d69639590b75684f5e64a66296f0efcd93153bb5b9bec528c8c7e0
|
4
|
+
data.tar.gz: 7fb7338cf8cdd108cf67a63fec018b0dcafa3feda0b59694da30cb876b50e326
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9c76e317d9511fd07bf8d670cd35a3e6cd2f0af85face370073ecb43c2079dd82d1d995e0db156f34f7f82163a8388a4c1ea3b08e31f08c5e2359b43f9a86b6
|
7
|
+
data.tar.gz: 2d4d57d8933dda64587496e15840fcaa58fa854100e833c88c0fb7b3ee2b44047ce0df6890602bdad3d7a02c1ae337ee394eb1c1d510a41c8cbed2953ee63d9f
|
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
module Peatio
|
3
2
|
module Goldcash
|
4
3
|
# TODO: Processing of unconfirmed transactions from mempool isn't supported now.
|
@@ -20,7 +19,7 @@ module Peatio
|
|
20
19
|
def fetch_block!(block_number)
|
21
20
|
block_hash = client.json_rpc(:getblockhash, [block_number])
|
22
21
|
|
23
|
-
client.json_rpc(:getblock, [block_hash
|
22
|
+
client.json_rpc(:getblock, [block_hash])
|
24
23
|
.fetch('tx').each_with_object([]) do |tx, txs_array|
|
25
24
|
txs = build_transaction(tx).map do |ntx|
|
26
25
|
Peatio::Transaction.new(ntx.merge(block_number: block_number))
|