mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-06 02:38:11 +01:00
api: Add ability to abandon bids.
This commit is contained in:
@@ -318,6 +318,8 @@ def js_bids(self, url_split, post_string: str, is_json: bool) -> bytes:
|
||||
post_data = getFormData(post_string, is_json)
|
||||
if have_data_entry(post_data, 'accept'):
|
||||
swap_client.acceptBid(bid_id)
|
||||
elif have_data_entry(post_data, 'abandon'):
|
||||
swap_client.abandonBid(bid_id)
|
||||
elif have_data_entry(post_data, 'debugind'):
|
||||
swap_client.setBidDebugInd(bid_id, int(get_data_entry(post_data, 'debugind')))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user