mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-13 02:35:52 +00:00
Fix a minor bug in the ChainSplitTests
This commit is contained in:
parent
54a2a71460
commit
168a5a40e1
@ -231,9 +231,12 @@ public class ChainSplitTests {
|
|||||||
@Override
|
@Override
|
||||||
public void onTransactionConfidenceChanged(Wallet wallet, Transaction tx) {
|
public void onTransactionConfidenceChanged(Wallet wallet, Transaction tx) {
|
||||||
super.onTransactionConfidenceChanged(wallet, tx);
|
super.onTransactionConfidenceChanged(wallet, tx);
|
||||||
|
if (tx.getConfidence().getConfidenceType() ==
|
||||||
|
TransactionConfidence.ConfidenceType.OVERRIDDEN_BY_DOUBLE_SPEND) {
|
||||||
eventDead[0] = tx;
|
eventDead[0] = tx;
|
||||||
eventReplacement[0] = tx.getConfidence().getOverridingTransaction();
|
eventReplacement[0] = tx.getConfidence().getOverridingTransaction();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Start with 50 coins.
|
// Start with 50 coins.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user