mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-10-12 18:40:46 -04:00
fail preparing payment sent message if payout already published
This commit is contained in:
parent
6214f4a120
commit
9095c691e7
1 changed files with 5 additions and 0 deletions
|
@ -63,6 +63,11 @@ public class BuyerPreparePaymentSentMessage extends TradeTask {
|
|||
try {
|
||||
runInterceptHook();
|
||||
|
||||
// quit if payout already published
|
||||
if (trade.isPayoutPublished()) {
|
||||
throw new RuntimeException("Cannot mark payment sent because payout already published for " + trade.getClass().getSimpleName() + " " + trade.getShortId());
|
||||
}
|
||||
|
||||
// skip if payout tx already created
|
||||
if (trade.getSelf().getUnsignedPayoutTxHex() != null) {
|
||||
log.warn("Skipping preparation of payment sent message because payout tx is already created for {} {}", trade.getClass().getSimpleName(), trade.getShortId());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue