dusk-network / rusk

The reference Dusk platform implementation and tools
Mozilla Public License 2.0
163 stars 60 forks source link

rusk-wallet: Discarded TXs are not handled properly #2600

Open HDauven opened 1 month ago

HDauven commented 1 month ago

Describe the bug When submitting a transaction with a gas limit lower than the required minimum to execute it, the transaction is discarded from the mempool. However, the wallet continuous to wait until it is included in a block.

To Reproduce

  1. Modify the MIN_LIMIT to 1 LUX and recompile
  2. Create a Moonlight transaction with the limit set to the minimum, 75000, or modify the minimum in the node
  3. The wallet will keep asking the chain for block inclusion for the given transaction hash

Expected behaviour If the transaction is discarded from the mempool, the wallet should catch the event for the given transaction hash and inform the user their transaction was discarded with an appropriate message that their transaction was discarded due to an insufficient gas limit.

Logs/Screenshot This status keeps repeating: image

welf commented 2 days ago

The ticket is blocked by this missing feature:

image