istox 0.1.43.3 → 0.1.43.4

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: ba047d20c75361e365d703263833ec72430f06b1c0ef1f2e263a27b7541eadbb
4
- data.tar.gz: fb742e9beaa1d71e5fc53217f2aeefd2678aa071a9204384a01af3c3f419eee4
3
+ metadata.gz: a641abdedffd3d7553282d9271ebb0dfbb1aafca39f4c2d6b3d08509c2766255
4
+ data.tar.gz: 3d97c1960502cc8aebe01e59db97f3ccfae248009f33429b33f7ccc5c1aeb052
5
5
  SHA512:
6
- metadata.gz: 91a948fa0d98e7a7c0f51c06b2f0ef3d18105860961c8b8ed11799f549e6780117fed3fb31f48f19454f70eef86f9419cccb899641fb6ea1503b3e3bf46e00ee
7
- data.tar.gz: 34a23206116d5d6a6b97e6b0a98a7c547114aa0dd2ae2b8d374c5fb85dbf8073c79f321e7abf2619adf6eadcb333235515a2585bdae61840d76ae59f4e307dcf
6
+ metadata.gz: 972165b81ec0ab0a303a568e3a07cb3dc3ecd4a55324662a060892fcea23b5056958cd983caa81cea335577e2c8829d5dde1e9f6a7d7b649be89dd404b619a3b
7
+ data.tar.gz: ee44bc96eb41df5c15e6985eec4b48905558c3f2b6054df13448ce8509e842ef666a6b73d29f4a24b1bc1cc37165f1d64ab6e3c8cbd8aa5b26e3fc427773c524
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- istox (0.1.43.2)
4
+ istox (0.1.43.3)
5
5
  bunny (>= 2.12.0)
6
6
  graphlient
7
7
  gruf
@@ -4,19 +4,11 @@ module Istox
4
4
  def txn_status_changed(transactions)
5
5
  transactions.each do |transaction|
6
6
 
7
- receipt = ::Istox::BlockchainReceipt.where(txhash: transaction[:hash], txid: transaction[:id]).first
8
-
9
- if receipt.nil?
10
- receipt = ::Istox::BlockchainReceipt.where(txhash: nil, txid: transaction[:id]).first
11
- end
7
+ receipt = ::Istox::BlockchainReceipt.where(txid: transaction[:id]).first
12
8
 
13
9
  if receipt.nil?
14
10
  puts 'Transaction not found, skipping...'
15
11
  next
16
- else
17
- if receipt.txhash.blank?
18
- receipt.update!(txhash: transaction[:hash])
19
- end
20
12
  end
21
13
 
22
14
  find_resource(transaction) do |receipt, resource_name, resource_id, resource_action, sid|
@@ -64,7 +64,6 @@ module Istox
64
64
  @blockchain_receipts.map do |blockchain_receipt|
65
65
  transaction = @transaction_store.find { |t| t.txhash == blockchain_receipt.txhash}
66
66
 
67
-
68
67
  if transaction
69
68
  @blocks.push(transaction)
70
69
  else
data/lib/istox/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Istox
2
- VERSION = "0.1.43.3"
2
+ VERSION = "0.1.43.4"
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.3
4
+ version: 0.1.43.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siong Leng