-
Notifications
You must be signed in to change notification settings - Fork 91
Closed
Description
Problem
Under heavy load, the request-node throws OldNonce errors.
ERROR: persistTransaction error: Error: processing response error (body="{\"jsonrpc\":\"2.0\",\"error\":{\"code\":-32010,\"message\":\"OldNonce, Current nonce: 78948, nonce of rejected tx: 78941\"},\"id\":110}", error={"code":-32010}, requestBody="{\"method\":\"eth_sendRawTransaction\",\"params\":[\"0x02f9015a648301345d846346d65b846346d66382d9bf94268c146afb4790902ee26a6d2d3aff968623ec80880162ea854d0fc000b8e451a58abb000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002e516d523367465872444661544d554e7646754e424e3546647153505a724b7a353174547a4247435437734b38725600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000631c001a0767a5d9a2598da01707c0aaa254d04d195559a9d39121f63bb9c4fadf9dac1c8a06c06e3723d151ac93475d89c6deed7c1c444804cf8e642b68803388e64a1372f\"],\"id\":110,\"jsonrpc\":\"2.0\"}", requestMethod="POST", url="https://holy-proud-morning.xdai.quiknode.pro/<...omitted...>/", code=SERVER_ERROR, version=web/5.5.0)
Theory
When multiple persistTransaction requests come in at the same time, they are submitted with the same nonce. After the first one is validated, the subsequent ones error due to old nonce. If true, solution will be to serialize transactions.
Metadata
Metadata
Assignees
Labels
No labels