Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

Invalid transaction nonce when import transaction of the same origin #5863

@winsvega

Description

@winsvega

When importing multiple transactions from one address into the mining block

trace  Processed 1 transactions in0.285(false)
Nonce: 0x01
Request: {"jsonrpc":"2.0","method":"eth_sendRawTransaction","params":["0xf85f010a82520894bbbf5374fce5edbc8e2a8697c15331677e6ebf0b0a801ba04fa966bf34b93abc1bcd665554b7f316b50f928477b50be0f3285ead29d18c5ba017bba0eeec1625ab433746955e125d46d80b7fdc97386c51266f842d8e02192e"],"id":5}
TRACE 12-05 14:50:28 aleth rpc    {"jsonrpc":"2.0","method":"eth_sendRawTransaction","params":["0xf85f010a82520894bbbf5374fce5edbc8e2a8697c15331677e6ebf0b0a801ba04fa966bf34b93abc1bcd665554b7f316b50f928477b50be0f3285ead29d18c5ba017bba0eeec1625ab433746955e125d46d80b7fdc97386c51266f842d8e02192e"],"id":5}
DEBUG 12-05 14:50:28 aleth overlaydb Closing state DB
DEBUG 12-05 14:50:28 aleth exec   Sender: a94f5374fce5edbc8e2a8697c15331677e6ebf0b Invalid Nonce: Require 0 Got 1
TRACE 12-05 14:50:28 aleth rpc    {"error":{"code":0,"data":null,"message":"Invalid transaction nonce."},"id":5,"jsonrpc":"2.0"}

Reply: {"error":{"code":0,"data":null,"message":"Invalid transaction nonce."},"id":5,"jsonrpc":"2.0"}

the second (valid) transaction fails due to incorrect nonce exception.
making aleth unable to construct a pending block with multiple transactions from one address (for blockchain test generation in retesteth)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions