Closed laisolizq closed 3 years ago
The transaction info, error_code and error_type in txPool in an invalid atomic group is incorrect.
info
error_code
error_type
txPool
if in an atomic group of 2 transactions there is an incorrect transaction, they should have the following information: Correct tx:
BatchNum X. unselectable atomic group Y, tx Z failed due to: W
18
ErrInvalidAtomicGroup
BatchNum X. W
12
ErrNoCurrentNonce
In this case the information is: Correct tx:
BatchNum: X.
0
Send atomic group with 2 txs:
nonce > actualNonce
Summary of Bug
The transaction
info
,error_code
anderror_type
intxPool
in an invalid atomic group is incorrect.Expected Behavior
if in an atomic group of 2 transactions there is an incorrect transaction, they should have the following information: Correct tx:
BatchNum X. unselectable atomic group Y, tx Z failed due to: W
18
,ErrInvalidAtomicGroup
Incorrect tx:BatchNum X. W
12
,ErrNoCurrentNonce
In this case the information is: Correct tx:
BatchNum: X.
0
,BatchNum X. unselectable atomic group Y, tx Z failed due to: W
12
,ErrNoCurrentNonce
Steps to Reproduce
Send atomic group with 2 txs:
nonce > actualNonce
(for example)