Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/server/blockchain/Web3Wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -1200,6 +1200,28 @@ export class Web3Wallet {
// increase nonce, since we assume therre's a tx pending with same nonce
await this.txManager.unlock(currentAddress, currentNonce + 1)

return this.sendTransaction(
tx,
txCallbacks,
{ gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas },
false,
logger
)
} else if (retry && e.message.toLowerCase().includes('nonce')) {
logger.warn('sendTransaction retrying tx with too low nonce:', {
error: e.message,
currentAddress,
currentNonce,
netNonce,
txuuid,
txHash,
wallet: this.name,
network: this.networkId
})

// increase nonce, since we assume our local nonce is behind on the network.
await this.txManager.unlock(currentAddress, netNonce + 1)

return this.sendTransaction(
tx,
txCallbacks,
Expand Down
Loading