sibit 0.7.4 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sibit/version.rb +1 -1
- data/lib/sibit.rb +4 -2
- 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: ae183604ee6f09fa79e8f857ce4a50d519d8601414ac7dbc719e951e880ca25a
|
|
4
|
+
data.tar.gz: 1642d87a24d1262027d1310e472afbdf39578df6e2298bd472882720f2681fa5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b33923c39c53ac6bb6d5da80465d3ccee850426d5e6ada0beee6e5f094e42e9db8afce5a892a9c99853366272a1197dd9c0a38fdbcf73f48b84c512466745308
|
|
7
|
+
data.tar.gz: 3eb142b889f41a114e166ef1d1308fa1baf17acfdf685881aabf0d6c55306ac7f571e79369ed4dc11bfe8a636bccbae68db2ff9a7d66a4629d9c37db37844dd4
|
data/lib/sibit/version.rb
CHANGED
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 #{
|
|
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
|
+
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-
|
|
11
|
+
date: 2019-04-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: backtrace
|