mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-20 02:53:00 -05:00
fix(swap): Split approve-and-sign and publish-lock-tx into two states (#498)
* fix(swap): Split approve-and-sign and publish-lock-tx into two states * fix: cannot get blockchain height * add RetrievingMoneroBlockheight, RetrievingMoneroBlockheight tauri events * propagate daemon blcok height fetch error, treat height 0 as error * check if tx_lock was previously published
This commit is contained in:
parent
e7cfecd070
commit
0936d6210e
13 changed files with 147 additions and 32 deletions
|
|
@ -216,6 +216,10 @@ export function StateAlert({
|
|||
}
|
||||
return <PunishTimelockExpiredAlert />;
|
||||
|
||||
// If the Bitcoin lock transaction has not been published yet
|
||||
// there is no need to display an alert
|
||||
case BobStateName.BtcLockReadyToPublish:
|
||||
return null;
|
||||
default:
|
||||
exhaustiveGuard(swap.state_name);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue