blocknet
blocknet copied to clipboard
Partial order stuck at ‘new’ due to no snode selection
STR:
- disconnect from the internet (simulates lost or poor network connection)
- place a partial order via console using
dxmakepartialorder(see https://api.blocknet.co/#dxmakepartialorder) - wait until the new order shows status
createdin console - reconnect to the network
- use
dxgetorderwith 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"}
Test builds: https://gitlab.com/blocknetdx/blocknet/-/pipelines/339373263