txcatcher 0.2.10 → 0.2.11
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/VERSION +1 -1
- data/lib/txcatcher/models/transaction.rb +2 -0
- data/spec/models/transaction_spec.rb +1 -1
- data/txcatcher.gemspec +1 -1
- 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: 296ef46b942c8b0690dd2f0939260562d3b4b2e50bed044727b4b556ef871043
|
|
4
|
+
data.tar.gz: 9be979ce8f30bda677a02e7b52dff163d943307b2e8ea3eb7bb5a83974cc6d5d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9ab4492091007a4a34f048393ec355f933225342111afd159c638ca27ac5444d61a614b61bb0a86cd2ece26504cf841e70295dc4468f8bb0b105219779a5a222
|
|
7
|
+
data.tar.gz: c13610cba0416c857a3d928b50139d847042705577cd00abadb35418c251bfa4e27c06e9a6bf69ffacf5e3a38e3110250bdbe6c54e4cfc09db2f0e413fb9d108
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.11
|
|
@@ -225,6 +225,8 @@ module TxCatcher
|
|
|
225
225
|
def validate
|
|
226
226
|
super
|
|
227
227
|
validates_unique :txid
|
|
228
|
+
p self.rbf_previous_transaction_id, self.txid
|
|
229
|
+
errors.add(:base, "Duplicate transaction listed as RBF") if self.rbf_previous_transaction&.txid && self&.txid && self.rbf_previous_transaction&.txid == self&.txid
|
|
228
230
|
errors.add(:base, "No outputs for this transaction") if !self.rbf? && self.deposits.empty?
|
|
229
231
|
end
|
|
230
232
|
|
|
@@ -90,7 +90,7 @@ RSpec.describe TxCatcher::Transaction do
|
|
|
90
90
|
expect(@transaction.reload.deposits.map(&:id)).to eq(deposit_ids)
|
|
91
91
|
|
|
92
92
|
@transaction.deposits.each do |d|
|
|
93
|
-
expect(d.rbf_transaction_ids).to eq([
|
|
93
|
+
expect(d.rbf_transaction_ids).to eq([rbf_tx.id])
|
|
94
94
|
end
|
|
95
95
|
|
|
96
96
|
end
|
data/txcatcher.gemspec
CHANGED