Trigger the blockchain call
Transaction should hang indefinitely. You can also check the network inspector of the browser to see that its checking for the transaction status.
Restart the blockchain to drop the pending transaction
With the dissolution-subgraph, just run docker-compose restart ganache. While ganache is restarting, the UI should have a notification ofTransaction Dropped .
Trigger the blockchain call again
The transaction can and should be triggered again but should pass since the miner is restarted.
Description
A sample snippet for working with dropped transactions.
Test Plan
Right before making any blockchain transaction or the
unlockDGD
, do the following:Stop the blockchain miner via
curl
Trigger the blockchain call Transaction should hang indefinitely. You can also check the network inspector of the browser to see that its checking for the transaction status.
Restart the blockchain to drop the pending transaction With the
dissolution-subgraph
, just rundocker-compose restart ganache
. Whileganache
is restarting, the UI should have a notification ofTransaction Dropped
.Trigger the blockchain call again The transaction can and should be triggered again but should pass since the miner is restarted.