trufflesuite / truffle-hdwallet-provider

HD Wallet-enabled Web3 provider
MIT License
400 stars 167 forks source link

Add nonce tracking #66

Closed cgewecke closed 6 years ago

cgewecke commented 6 years ago

65

truffle 1079 truffle 763

Addresses: nonce too low replacement transaction underpriced

These occur frequently using Infura / load balanced nets. Detailed reproduction and explanation in #65.

[Postscript] All credit for this goes to Zeppelin engineer @spalladino who diagnosed the problem and mapped out some strategies to address it. In the end it looks like we only have a partial solution here. . . it may fix truffle 763 but truffle 1079 (firing a series of simultaneous txs) will still be a problem. #65 has additional info and a work-around that Zeppelin is using to do this successfully.