onchain 1.1.9 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/onchain/sweeper.rb +3 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5cf73ab623ae375506f45754de4e130a1a0d093a
4
- data.tar.gz: db09832037614a23a8ec38d2cfb431af194e7601
3
+ metadata.gz: 41b4fd2bd599f629a74fe40e5594f392ca15aebf
4
+ data.tar.gz: acf547cb0b94a2be1b2e1cbb1f45a787e5475272
5
5
  SHA512:
6
- metadata.gz: e8a4fd056fc81aaad15b404f8364171c4bca58c4ca9bb4d6b066df37ab5ed3d42372838e8aceb81d2cfdfe9c367d5ff98d33e3af09034f4bc585fe6b52f298eb
7
- data.tar.gz: 60bd8043624a405e2b04983b6331f9def47dacff55a4c88e177334c5ff2c91d423a2d47ef08725e0ffab85078b1051efafb6e628ae747e09418d217b1eb82550
6
+ metadata.gz: d3aaf895dcdd6613a0d994afe3acf1e51759b0651f2d75c8f977c505d04cdfabca1f8337d108a938c2cb3a8d3baacca80231cb02fdf0fd39920a3ab31704d76b
7
+ data.tar.gz: 850f34bf93f5a8dac29fe535567821165079ce5a524fc4bf71dfa93f67ef1ad461386dcacad74365d69264c1a0cee28e644714cc3a3dd52a814e7114211dd822
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onchain
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.9
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Purton