Calling multiple Send()
fns on txmgr.go
in succession produces a SIGSEGV on trx.Hash()
in error handler for RawTransact()
#126
Labels
bug
Something isn't working
Describe the bug
Sending multiple trx in quick succession ends up with one of them failing due to nonce too low.
Error handler outputs the error message with associated
trx.Hash()
, which fails with SIGSEGV.Removing the hash from err message "fixed" the crash.
To Reproduce
Duplicate the line in code which sends a trx, ending up with two simultaneous trxs with one failing with 'nonce too low' and producing the crash
Expected behavior
Does not crash
OS details
Additional context
Fixed on a fork by adding a mutex to allow only one in flight trx, and fetching a new nonce
master...mangata-finance:eigensdk-go:feature/expired-responses#diff-223616ebe949cff704b8d355a461951d12ccf06b07d593d9983879d1735bf140
The text was updated successfully, but these errors were encountered: