onchain 1.1.9 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/onchain/sweeper.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41b4fd2bd599f629a74fe40e5594f392ca15aebf
|
4
|
+
data.tar.gz: acf547cb0b94a2be1b2e1cbb1f45a787e5475272
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3aaf895dcdd6613a0d994afe3acf1e51759b0651f2d75c8f977c505d04cdfabca1f8337d108a938c2cb3a8d3baacca80231cb02fdf0fd39920a3ab31704d76b
|
7
|
+
data.tar.gz: 850f34bf93f5a8dac29fe535567821165079ce5a524fc4bf71dfa93f67ef1ad461386dcacad74365d69264c1a0cee28e644714cc3a3dd52a814e7114211dd822
|
data/lib/onchain/sweeper.rb
CHANGED
@@ -47,6 +47,8 @@ class OnChain::Sweeper
|
|
47
47
|
# That pays all the coins to a certain address
|
48
48
|
def sweep(mpks, path, limit, last_block_checked)
|
49
49
|
|
50
|
+
block_height_now = get_block_height
|
51
|
+
|
50
52
|
to_sweep = {}
|
51
53
|
# Get all the addresses we are interested in.
|
52
54
|
for i in 0..limit do
|
@@ -81,7 +83,7 @@ class OnChain::Sweeper
|
|
81
83
|
|
82
84
|
end
|
83
85
|
end
|
84
|
-
return incoming_coins
|
86
|
+
return incoming_coins, block_height_now
|
85
87
|
end
|
86
88
|
|
87
89
|
end
|