istox 0.1.43.9 → 0.1.43.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/istox/models/concerns/blockchain_receipt_query.rb +5 -5
- data/lib/istox/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: 5ced021cccc0bad32781f21491a94499af6cf7701df6ebdf4b56ad14602352e6
|
4
|
+
data.tar.gz: f54aa387aac72deeef1fcec3be3c267b51ab63d391b41f5e4ad4bbf42f57c9ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 444f163f11d1e2eabcbe80b735468713e0e250e2831f2a74a2ec1bc9e0c9c3487e201d332d9632614b2a62808240a72eeaabd66be19eceab32bbf1ea2de613b3
|
7
|
+
data.tar.gz: fafe17bd5dc3d359030b605aa25407234fa574eeafbe8f49ef13ce03b3b68618192353090b06041f1440340119eee2dcccb0eb1214105cd2bfb4a05072c37ec8
|
data/Gemfile.lock
CHANGED
@@ -58,7 +58,7 @@ module Istox
|
|
58
58
|
return "pending" if txhashes.any?{ |e| e.blank? }
|
59
59
|
|
60
60
|
# if transactions store already exists, we should retrieve the state from
|
61
|
-
|
61
|
+
prepare_block_transactions(txhashes)
|
62
62
|
@blocks = []
|
63
63
|
|
64
64
|
@blockchain_receipts.map do |blockchain_receipt|
|
@@ -86,6 +86,10 @@ module Istox
|
|
86
86
|
@transactions_store = store
|
87
87
|
end
|
88
88
|
|
89
|
+
def prepare_block_transactions(txhashes)
|
90
|
+
@transaction_store ||= Istox::Interfaces::Chainhub::Transaction.get_block_transactions(txhashes)
|
91
|
+
end
|
92
|
+
|
89
93
|
private
|
90
94
|
|
91
95
|
def blocks_failed?
|
@@ -99,10 +103,6 @@ module Istox
|
|
99
103
|
def blocks_confirmed?
|
100
104
|
!@blocks.any? { |obj| obj.state == 'pending' } && !@blocks.any? { |obj| obj.state == 'failed' }
|
101
105
|
end
|
102
|
-
|
103
|
-
def get_block_transactions(txhashes)
|
104
|
-
Istox::Interfaces::Chainhub::Transaction.get_block_transactions(txhashes)
|
105
|
-
end
|
106
106
|
|
107
107
|
end
|
108
108
|
end
|
data/lib/istox/version.rb
CHANGED