sibit 0.30.5 → 0.30.6
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/README.md +9 -6
- data/lib/sibit/version.rb +1 -1
- data/lib/sibit.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aa32d663437f956373254dfd5ee62d072a984a7848ef455d26d22727293199ef
|
|
4
|
+
data.tar.gz: 6a0464cb926cce844ec89e380352c9d0e94c97ffbd26a9609ecbcefd82ee9413
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3711ea50589117bc03497b111c11f7509b7be90dd8656aa7938ae3a72e730a8f13b74a1706589ca224b883dfa2223875f9e5aa204865e58d7856dcfd28a6fd17
|
|
7
|
+
data.tar.gz: 8ed48713e2795903a90501fed8da5a48dda43d62c9e8a152e4200003cf4ca51903fc53d745068de5502faadedf69d76d99b3024742b7d0a164924df62d3796f4
|
data/README.md
CHANGED
|
@@ -63,15 +63,18 @@ $ sibit pay AMOUNT FEE P1,P2,... TARGET CHANGE
|
|
|
63
63
|
e87f138c9ebf5986151667719825c28458a28cc66f69fed4f1032a93b399fdf8
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
Here
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
Here:
|
|
67
|
+
|
|
68
|
+
* `AMOUNT` is the amount of [satoshi] you are sending (integer),
|
|
69
|
+
or `0.42BTC` if in bitcoins (with a suffix),
|
|
70
|
+
* `FEE` is the [miner fee] you are ready to spend to get
|
|
69
71
|
this transaction delivered (you can say `S`, `M`, `L`, or `XL` if you want it
|
|
70
72
|
to be calculated automatically),
|
|
71
|
-
|
|
73
|
+
* `P1,P2,...` is a comma-separated list
|
|
72
74
|
of private keys `P` you are sending your coins from,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
+
* `TARGET` is the address you are sending to,
|
|
76
|
+
* `CHANGE` is the address where the change goes.
|
|
77
|
+
|
|
75
78
|
The transaction hash is returned.
|
|
76
79
|
Not all [UTXOs] may be used, but only the necessary amount of them.
|
|
77
80
|
|
data/lib/sibit/version.rb
CHANGED
data/lib/sibit.rb
CHANGED
|
@@ -118,6 +118,10 @@ class Sibit
|
|
|
118
118
|
@log.debug("UTXO skipped: #{utxo[:hash]}")
|
|
119
119
|
next
|
|
120
120
|
end
|
|
121
|
+
unless utxo[:confirmations]&.positive?
|
|
122
|
+
@log.debug("UTXO with no confirmations: #{utxo[:hash]}")
|
|
123
|
+
next
|
|
124
|
+
end
|
|
121
125
|
unspent += utxo[:value]
|
|
122
126
|
builder.input do |i|
|
|
123
127
|
i.prev_out(utxo[:hash])
|