mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 14:50:57 +01:00
Wallet: add transaction ID to a precondition message
This commit is contained in:
parent
410b127176
commit
64c619d2bf
1 changed files with 1 additions and 1 deletions
|
@ -5234,7 +5234,7 @@ public class Wallet extends BaseTaggableObject
|
|||
for (Transaction tx : toBroadcast) {
|
||||
ConfidenceType confidenceType = tx.getConfidence().getConfidenceType();
|
||||
checkState(confidenceType == ConfidenceType.PENDING || confidenceType == ConfidenceType.IN_CONFLICT,
|
||||
"Expected PENDING or IN_CONFLICT, was %s.", confidenceType);
|
||||
"Tx %s: expected PENDING or IN_CONFLICT, was %s", tx.getTxId(), confidenceType);
|
||||
// Re-broadcast even if it's marked as already seen for two reasons
|
||||
// 1) Old wallets may have transactions marked as broadcast by 1 peer when in reality the network
|
||||
// never saw it, due to bugs.
|
||||
|
|
Loading…
Add table
Reference in a new issue