Skip to content

fix bug low onchain balance results in infinite loading#2429

Open
jerryfletcher21 wants to merge 1 commit intoRoboSats:mainfrom
jerryfletcher21:suggested-mining-fee-fix
Open

fix bug low onchain balance results in infinite loading#2429
jerryfletcher21 wants to merge 1 commit intoRoboSats:mainfrom
jerryfletcher21:suggested-mining-fee-fix

Conversation

@jerryfletcher21
Copy link
Copy Markdown
Contributor

There is a bug that happens when the coordinator has low onchain balance that results in an infinite loading on the frontend when an order bigger than the coordinator onchain balance is taken.
This happens because create_onchain_payment returns False when preliminary_amount > available_onchain before adding suggested_mining_fee_rate to onchain_payment.
So suggested_mining_fee_rate was called without checking if create_onchain_payment returned True

There is a bug that happens when the coordinator has low onchain balance
that results in an infinite loading on the frontend when an order bigger
than the coordinator onchain balance is taken.
This happens because `create_onchain_payment` returns `False` when
`preliminary_amount > available_onchain` before adding
`suggested_mining_fee_rate` to `onchain_payment`.
So `suggested_mining_fee_rate` was called without checking if
`create_onchain_payment` returned `True`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant