istox 0.1.43.9 → 0.1.43.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bdb007f52556ff3889e3f400bd5c2505e60d9d05e22f552d9513a35be213bba5
4
- data.tar.gz: 1c37a10e0b7fec6ea9a54401f3703235258237e21b2e73240ba8602964776030
3
+ metadata.gz: 5ced021cccc0bad32781f21491a94499af6cf7701df6ebdf4b56ad14602352e6
4
+ data.tar.gz: f54aa387aac72deeef1fcec3be3c267b51ab63d391b41f5e4ad4bbf42f57c9ae
5
5
  SHA512:
6
- metadata.gz: f8d10c08711b38dfcc6550aaaa8690eb6a26a7df322817df036b2b8ce69895fe778ea33effb593e47c038720619773eec43b67400bae542dbb47029c64e9465c
7
- data.tar.gz: 39d3517309a7b2fd6ff349d3c1479497cca2ad6e75a969ca4d402cbf757ce7aa5dbe5a84b83213338e27c9ffdda04778847981036d853c03d0c47f2cfde3024a
6
+ metadata.gz: 444f163f11d1e2eabcbe80b735468713e0e250e2831f2a74a2ec1bc9e0c9c3487e201d332d9632614b2a62808240a72eeaabd66be19eceab32bbf1ea2de613b3
7
+ data.tar.gz: fafe17bd5dc3d359030b605aa25407234fa574eeafbe8f49ef13ce03b3b68618192353090b06041f1440340119eee2dcccb0eb1214105cd2bfb4a05072c37ec8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- istox (0.1.43.7)
4
+ istox (0.1.43.9)
5
5
  bunny (>= 2.12.0)
6
6
  graphlient
7
7
  gruf
@@ -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
- @transaction_store ||= get_block_transactions(txhashes)
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
@@ -1,3 +1,3 @@
1
1
  module Istox
2
- VERSION = "0.1.43.9"
2
+ VERSION = "0.1.43.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: istox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.43.9
4
+ version: 0.1.43.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siong Leng