Chia-Network / chia-blockchain

Chia blockchain python implementation (full node, farmer, harvester, timelord, and wallet)
Apache License 2.0
10.83k stars 2.03k forks source link

[Bug] Unexpected transaction labels/outcomes after cancel, retry w/ higher fees during mempool stress #12245

Open iced-caffeine opened 2 years ago

iced-caffeine commented 2 years ago

What happened?

Today, around 1815 UTC during elevated mempool stress, I attempted to accept an Offer via the Gui (Windows). The offer listed as pending for some time before I realized that the mempool was under stress. I canceled this offer and attempted to accept the offer again including a fee (above the minimum threshold fee). This also failed to process "immediately", and I again canceled and bumped fee to a very high free (greater than 0.001 XCH), expecting immediate block inclusion. After the 2nd resubmission, I also did "Delete Unconfirmed Transactions" from the XCH wallet. After some time (when the mempool cleared), the most recent Offer with the highest fee showed as "Failed", while the first 2 offers showed as "Cancelled". I also see no record of any XCH leaving my wallet in the XCH wallet tab. However, one of the first 2 offers was clearly accepted, as my XCH balance is lower by the expected amount, and the NFT is in my wallet (The chain at least did it's job, hooray!)

This seems like a GUI bug because if any of the TX succeeded, I would expect to see the outgoing XCH as a line item in my XCH wallet tx history, and I would also expect to see one of the offers retroactively labeled as "Confirmed" instead of "Cancelled". It's not clear if re-syncing my wallet db would resolve this, but I don't really want to go down that path (though I will if you want me to).

Version

1.4

What platform are you using?

Windows

What ui mode are you using?

GUI

Relevant log output

No response

wallentx commented 2 years ago

@fizpawiz does this seem similar to the issue you were experiencing? I couldn't find a GH issue for it.