blocknet icon indicating copy to clipboard operation
blocknet copied to clipboard

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

Open shrnkld opened this issue 4 years ago • 1 comments

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:

  • [x] investigate and debug the function checkAndRelayPendingOrders which seems to be related to the issue
  • [x] add more logging if required
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 avatar Jul 19 '21 09:07 shrnkld

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

shrnkld avatar Jul 27 '21 13:07 shrnkld