istox 0.1.43.2 → 0.1.43.3
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/consumers/blockchain_hash_handler.rb +7 -8
- 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: ba047d20c75361e365d703263833ec72430f06b1c0ef1f2e263a27b7541eadbb
|
4
|
+
data.tar.gz: fb742e9beaa1d71e5fc53217f2aeefd2678aa071a9204384a01af3c3f419eee4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91a948fa0d98e7a7c0f51c06b2f0ef3d18105860961c8b8ed11799f549e6780117fed3fb31f48f19454f70eef86f9419cccb899641fb6ea1503b3e3bf46e00ee
|
7
|
+
data.tar.gz: 34a23206116d5d6a6b97e6b0a98a7c547114aa0dd2ae2b8d374c5fb85dbf8073c79f321e7abf2619adf6eadcb333235515a2585bdae61840d76ae59f4e307dcf
|
data/Gemfile.lock
CHANGED
@@ -1,16 +1,15 @@
|
|
1
1
|
module Istox
|
2
2
|
class BlockchainHashHandler
|
3
3
|
class << self
|
4
|
-
def hash_generated(
|
5
|
-
|
6
|
-
receipt = ::Istox::BlockchainReceipt.where(txid: transaction[:id], txhash: nil).first
|
4
|
+
def hash_generated(data)
|
5
|
+
receipt = ::Istox::BlockchainReceipt.where(txid: data.uuid, txhash: nil).first
|
7
6
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
end
|
12
|
-
receipt.update!(txhash: transaction[:hash])
|
7
|
+
if receipt.nil?
|
8
|
+
puts 'Transaction not found, skipping...'
|
9
|
+
return
|
13
10
|
end
|
11
|
+
|
12
|
+
receipt.update!(txhash: data.txnHash)
|
14
13
|
end
|
15
14
|
|
16
15
|
end
|
data/lib/istox/version.rb
CHANGED