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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db7bd01f34e395b7e917e22c31ae9682f93c90a97a9e6ce1a8a3c73c2d3464cc
4
- data.tar.gz: 1b341f64ed5422e9b75846b4f56377110a1e16a6f7ec52b4c8d3fa3918f676ee
3
+ metadata.gz: aa32d663437f956373254dfd5ee62d072a984a7848ef455d26d22727293199ef
4
+ data.tar.gz: 6a0464cb926cce844ec89e380352c9d0e94c97ffbd26a9609ecbcefd82ee9413
5
5
  SHA512:
6
- metadata.gz: 047c7f09a557625119eaf0e7edf3cecc9cf42309a84f8cdc3f722e5467aa96335f776a45e8bf7fd3a16b6ce476a2a8645aec40953660e54a64d5eeaa3a576146
7
- data.tar.gz: 108155111044b40ad8d43f1716407128da670cbe12adb54839946b8ed86cb23b32cf1f5b9db921c464ba7cbaa413e560e0b1c960ba47811737334d30bc939a8d
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
- `AMOUNT` is the amount of [satoshi] you are sending,
68
- `FEE` is the [miner fee] you are ready to spend to get
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
- `P1,P2,...` is a comma-separated list
73
+ * `P1,P2,...` is a comma-separated list
72
74
  of private keys `P` you are sending your coins from,
73
- `TARGET` is the address you are sending to,
74
- `CHANGE` is the address where the change goes.
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
@@ -9,5 +9,5 @@
9
9
  # License:: MIT
10
10
  class Sibit
11
11
  # Current version of the library.
12
- VERSION = '0.30.5' unless defined?(VERSION)
12
+ VERSION = '0.30.6' unless defined?(VERSION)
13
13
  end
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])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sibit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.30.5
4
+ version: 0.30.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko