mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Call 'keepfunds' (close trade) on both sides of trade simulation
This commit is contained in:
parent
4689ad5c4b
commit
bfff30bcdd
@ -536,17 +536,20 @@ executetrade() {
|
|||||||
genbtcblocks 2 2
|
genbtcblocks 2 2
|
||||||
printbreak
|
printbreak
|
||||||
|
|
||||||
# Complete the trade on the seller side.
|
# Complete the trade on both sides
|
||||||
if [ "$DIRECTION" = "BUY" ]
|
printdate "BOB $BOB_ROLE: Closing trade by keeping funds in Bisq wallet."
|
||||||
then
|
CMD="$CLI_BASE --port=$BOB_PORT keepfunds --trade-id=$OFFER_ID"
|
||||||
printdate "BOB $BOB_ROLE: Closing trade by keeping funds in Bisq wallet."
|
printdate "BOB CLI: $CMD"
|
||||||
CMD="$CLI_BASE --port=$BOB_PORT keepfunds --trade-id=$OFFER_ID"
|
KEEP_FUNDS_MSG=$($CMD)
|
||||||
printdate "BOB CLI: $CMD"
|
commandalert $? "Could close trade with keepfunds command."
|
||||||
else
|
# Print the keepfunds command's console output.
|
||||||
printdate "ALICE (taker): Closing trade by keeping funds in Bisq wallet."
|
printdate "$KEEP_FUNDS_MSG"
|
||||||
CMD="$CLI_BASE --port=$ALICE_PORT keepfunds --trade-id=$OFFER_ID"
|
sleeptraced 3
|
||||||
printdate "ALICE CLI: $CMD"
|
printbreak
|
||||||
fi
|
|
||||||
|
printdate "ALICE (taker): Closing trade by keeping funds in Bisq wallet."
|
||||||
|
CMD="$CLI_BASE --port=$ALICE_PORT keepfunds --trade-id=$OFFER_ID"
|
||||||
|
printdate "ALICE CLI: $CMD"
|
||||||
KEEP_FUNDS_MSG=$($CMD)
|
KEEP_FUNDS_MSG=$($CMD)
|
||||||
commandalert $? "Could close trade with keepfunds command."
|
commandalert $? "Could close trade with keepfunds command."
|
||||||
# Print the keepfunds command's console output.
|
# Print the keepfunds command's console output.
|
||||||
|
Loading…
Reference in New Issue
Block a user