3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-07 06:44:16 +00:00

Fix a minor bug in the ChainSplitTests

This commit is contained in:
Mike Hearn 2012-02-19 15:04:02 +01:00
parent 54a2a71460
commit 168a5a40e1

View File

@ -231,8 +231,11 @@ public class ChainSplitTests {
@Override
public void onTransactionConfidenceChanged(Wallet wallet, Transaction tx) {
super.onTransactionConfidenceChanged(wallet, tx);
eventDead[0] = tx;
eventReplacement[0] = tx.getConfidence().getOverridingTransaction();
if (tx.getConfidence().getConfidenceType() ==
TransactionConfidence.ConfidenceType.OVERRIDDEN_BY_DOUBLE_SPEND) {
eventDead[0] = tx;
eventReplacement[0] = tx.getConfidence().getOverridingTransaction();
}
}
});