mirror of
https://github.com/basicswap/basicswap.git
synced 2024-12-22 11:39:34 +00:00
After successfully placing a bid, go directly to the bid page instead of the offer.
Some checks are pending
lint / build (3.12) (push) Waiting to run
Some checks are pending
lint / build (3.12) (push) Waiting to run
This commit is contained in:
parent
757f8f2762
commit
fa8764342e
1 changed files with 8 additions and 0 deletions
|
@ -659,8 +659,16 @@ def page_offer(self, url_split, post_string):
|
||||||
extra_options=extra_options,
|
extra_options=extra_options,
|
||||||
).hex()
|
).hex()
|
||||||
|
|
||||||
|
sent_bid_id = swap_client.postBid(offer_id, amount_from, addr_send_from=addr_from, extra_options=extra_options).hex()
|
||||||
|
|
||||||
if debugind > -1:
|
if debugind > -1:
|
||||||
swap_client.setBidDebugInd(bytes.fromhex(sent_bid_id), debugind)
|
swap_client.setBidDebugInd(bytes.fromhex(sent_bid_id), debugind)
|
||||||
|
|
||||||
|
self.send_response(302)
|
||||||
|
self.send_header('Location', f'/bid/{sent_bid_id}')
|
||||||
|
self.end_headers
|
||||||
|
return bytes
|
||||||
|
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
if self.server.swap_client.debug is True:
|
if self.server.swap_client.debug is True:
|
||||||
self.server.swap_client.log.error(traceback.format_exc())
|
self.server.swap_client.log.error(traceback.format_exc())
|
||||||
|
|
Loading…
Reference in a new issue