blocknetdx / blocknet

Official Blocknet cryptocurrency wallet
https://www.blocknet.org
MIT License
214 stars 94 forks source link

Partial order stuck at ‘new’ due to no snode selection #558

Open shrnkld opened 3 years ago

shrnkld commented 3 years ago

STR:

  1. disconnect from the internet (simulates lost or poor network connection)
  2. place a partial order via console using dxmakepartialorder (see https://api.blocknet.co/#dxmakepartialorder)
  3. wait until the new order shows status created in console
  4. reconnect to the network
  5. use dxgetorder with the order ID created in step 2 to verify order status

Error result: XBridge error: order may be stuck, trying to submit order to previous snode

The error keeps looping and never seems to find a snode to submit the order to.

Expected behaviour: the order should be placed once xbridge is reconnected to the network, transitioning from new to created.

To do:

2021-Jul-14 14:16:35 [0x0x309a9b000] {"orderid":"38cc1fb72917327bf45ad7c6eebe994d8c353ed3b611b58aef8a0df5ebad3904","from_currency":"LTC","to_currency":"BLOCK","function":"checkAndRelayPendingOrders","msg":"order may be stuck, trying to submit order to previous snode"}
shrnkld commented 3 years ago

Test builds: https://gitlab.com/blocknetdx/blocknet/-/pipelines/339373263