mirror of
https://github.com/bisq-network/bisq.git
synced 2025-03-13 11:09:10 +01:00
Add chain heights to logs
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
parent
f4d335b624
commit
be33aa5236
2 changed files with 11 additions and 4 deletions
|
@ -76,8 +76,12 @@ public class BuyerVerifiesFinalDelayedPayoutTx extends TradeTask {
|
|||
|
||||
if (!buyersDelayedPayoutTx.getTxId().equals(finalDelayedPayoutTx.getTxId())) {
|
||||
String errorMsg = "TxIds of buyersDelayedPayoutTx and finalDelayedPayoutTx must be the same.";
|
||||
log.error("{} \nbuyersDelayedPayoutTx={}, \nfinalDelayedPayoutTx={}",
|
||||
errorMsg, buyersDelayedPayoutTx, finalDelayedPayoutTx);
|
||||
log.error("{} \nbuyersDelayedPayoutTx={}, \nfinalDelayedPayoutTx={}, " +
|
||||
"\nBtcWalletService.chainHeight={}, \nDaoState.chainHeight={}",
|
||||
errorMsg, buyersDelayedPayoutTx, finalDelayedPayoutTx,
|
||||
processModel.getBtcWalletService().getBestChainHeight(),
|
||||
processModel.getDaoFacade().getChainHeight());
|
||||
|
||||
throw new IllegalArgumentException(errorMsg);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -67,8 +67,11 @@ public class BuyerVerifiesPreparedDelayedPayoutTx extends TradeTask {
|
|||
lockTime);
|
||||
if (!buyersPreparedDelayedPayoutTx.getTxId().equals(sellersPreparedDelayedPayoutTx.getTxId())) {
|
||||
String errorMsg = "TxIds of buyersPreparedDelayedPayoutTx and sellersPreparedDelayedPayoutTx must be the same.";
|
||||
log.error("{} \nbuyersPreparedDelayedPayoutTx={}, \nsellersPreparedDelayedPayoutTx={}",
|
||||
errorMsg, buyersPreparedDelayedPayoutTx, sellersPreparedDelayedPayoutTx);
|
||||
log.error("{} \nbuyersPreparedDelayedPayoutTx={}, \nsellersPreparedDelayedPayoutTx={}, " +
|
||||
"\nBtcWalletService.chainHeight={}, \nDaoState.chainHeight={}",
|
||||
errorMsg, buyersPreparedDelayedPayoutTx, sellersPreparedDelayedPayoutTx,
|
||||
processModel.getBtcWalletService().getBestChainHeight(),
|
||||
processModel.getDaoFacade().getChainHeight());
|
||||
throw new IllegalArgumentException(errorMsg);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue