extension icon indicating copy to clipboard operation
extension copied to clipboard

'Failed to Broadcast' transactions

Open Naxsun opened this issue 2 years ago • 3 comments

Discord Discussion Link

https://discord.com/channels/808358975287722045/888500174685614090/1028658095683014666

What browsers are you seeing the problem on?

Chrome

What were you trying to do?

Set-up transactions

What did not work?

Two users with a similar issue: Transactions can't be broadcasted. User receives 'failed to broadcast' message. Disabling and re-enabling the extension fixes it for both users.

Logs give some more detail:

User 1: Tally_Ho_Logs_10.9.22.txt

User 2: logs_v0_16_5__2022-10-09T20_23_0207_00.txt

Version

v0.16.5

Relevant log output

No response

Naxsun avatar Oct 10 '22 16:10 Naxsun

From the logs - looks like a nonce issue:

{\"code\":-32000,\"message\":\"invalid transaction: nonce too low\"}}"}

0xDaedalus avatar Oct 10 '22 16:10 0xDaedalus

@0xDaedalus I think it is more like a "nonce management" milestone right?

jagodarybacka avatar Oct 11 '22 09:10 jagodarybacka

The next safety measure here should be to implement a check and reset behavior in both populateEVMTransactionNonce and releaseEVMTransactionNonce with the logic:

if (provider.getTransactionCount("...address..", "pending") === 0) 
  evmChainLastSeenNoncesByNormalizedAddress[...][...] = provider.getTransactionCount("...address..", "latest")

See https://github.com/tallyhowallet/extension/pull/2516#discussion_r1008970149 for background

greg-nagy avatar Jan 06 '23 10:01 greg-nagy