sibit 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sibit/version.rb +1 -1
  3. data/lib/sibit.rb +4 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ebf35087ce8b3d8593fb71fbf92f73663ee1271e5ec12d9b0ce1a96e24acf391
4
- data.tar.gz: 468f3061a5f8f74d31e5356f6aac583d699524a1267f5a529e58ee69e1e13bbc
3
+ metadata.gz: ae183604ee6f09fa79e8f857ce4a50d519d8601414ac7dbc719e951e880ca25a
4
+ data.tar.gz: 1642d87a24d1262027d1310e472afbdf39578df6e2298bd472882720f2681fa5
5
5
  SHA512:
6
- metadata.gz: ea42fd169efa160dd5cbbe4da51f15f23dda6d37a684415156a5dd1b5a84d7dc1010ba586385a69fcfdae2f37eb25055e0001cbfa491324815e807a923f0e681
7
- data.tar.gz: d187e1c3f6284666bf1f84710cf85d00090f15749a8ef0df5c4d6f7733186e0b402d6b28d34deb4a240689322b2bccb11125f24c23b8d70ebfa48cd05234029e
6
+ metadata.gz: b33923c39c53ac6bb6d5da80465d3ccee850426d5e6ada0beee6e5f094e42e9db8afce5a892a9c99853366272a1197dd9c0a38fdbcf73f48b84c512466745308
7
+ data.tar.gz: 3eb142b889f41a114e166ef1d1308fa1baf17acfdf685881aabf0d6c55306ac7f571e79369ed4dc11bfe8a636bccbae68db2ff9a7d66a4629d9c37db37844dd4
data/lib/sibit/version.rb CHANGED
@@ -26,5 +26,5 @@
26
26
  # License:: MIT
27
27
  class Sibit
28
28
  # Current version of the library.
29
- VERSION = '0.7.4'
29
+ VERSION = '0.7.5'
30
30
  end
data/lib/sibit.rb CHANGED
@@ -128,7 +128,7 @@ class Sibit
128
128
  utxos = get_json(
129
129
  "/unspent?active=#{sources.keys.join('|')}&limit=1000"
130
130
  )['unspent_outputs']
131
- info("#{utxos.count} UTXOs found:")
131
+ info("#{utxos.count} UTXOs found (value/confirmations at tx_hash):")
132
132
  utxos.each do |utxo|
133
133
  unspent += utxo['value']
134
134
  builder.input do |i|
@@ -152,7 +152,9 @@ class Sibit
152
152
  )
153
153
  info("A new Bitcoin transaction #{tx.hash} prepared; #{tx.in.count} inputs; \
154
154
  #{tx.out.count} outputs; fee is #{f}; size is #{size}; unspent is #{unspent}; \
155
- amount is #{amount}; target address is #{target}; change address is #{change}")
155
+ amount is #{satoshi}; target address is #{target}; change address is #{change}:
156
+ #{tx.inputs.map { |i| " in: #{i.prev_out.bth}:#{i.prev_out_index}" }.join("\n ")}
157
+ #{tx.outputs.map { |o| "out: #{o.script.bth}:#{o.value}" }.join("\n ")}")
156
158
  post_tx(tx.to_payload.bth)
157
159
  tx.hash
158
160
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sibit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-12 00:00:00.000000000 Z
11
+ date: 2019-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backtrace