peatio-dash 2.5.3 → 2.5.4
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/peatio/dash/blockchain.rb +11 -0
- data/lib/peatio/dash/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9302f74327e656926f93fa1e314998d6c2922d11ee7345cd4d7855f9c6ede51
|
4
|
+
data.tar.gz: a764fd26782ffbd2c57771c5fb3fcde856a150388b6af109a668729d1aa523fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cb1114f8927e6b59551fdbe1932cd4bfd7c26c42384c2669595f480428ce674dffa6e077dbf9f40a901bb148806185c79bd45db8a37c314e8fe588c56c78d6a
|
7
|
+
data.tar.gz: 50f1025396f81353ad2d0cf7e7b86a1c279dbf3df8c3c9eef2b20bb1f75f402cb5db2848e1fee4d0e8467b0e98085a91eabe642eec8182cec72497d5f5a1f0be
|
data/Gemfile.lock
CHANGED
@@ -51,6 +51,17 @@ module Peatio
|
|
51
51
|
raise Peatio::Blockchain::ClientError, e
|
52
52
|
end
|
53
53
|
|
54
|
+
def transaction_sources(transaction)
|
55
|
+
transaction_hash = client.json_rpc(:getrawtransaction, [transaction.hash, 1])
|
56
|
+
transaction_hash['vin'].each_with_object([]) do |vin, source_addresses|
|
57
|
+
next if vin['txid'].blank?
|
58
|
+
|
59
|
+
vin_transaction = client.json_rpc(:getrawtransaction, [vin['txid'], 1])
|
60
|
+
source = vin_transaction['vout'].find { |hash| hash['n'] == vin['vout'] }
|
61
|
+
source_addresses << source['scriptPubKey']['addresses'][0]
|
62
|
+
end.compact.uniq
|
63
|
+
end
|
64
|
+
|
54
65
|
private
|
55
66
|
|
56
67
|
def filter_vout(tx_hash)
|
data/lib/peatio/dash/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peatio-dash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MoD
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|