Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify raw tx format when send raw transaction #1076

Merged
merged 2 commits into from
Jun 12, 2023
Merged

Verify raw tx format when send raw transaction #1076

merged 2 commits into from
Jun 12, 2023

Conversation

classicalliu
Copy link
Contributor

Will reject tx with invalid RLP format

{
    "jsonrpc": "2.0",
    "id": 2,
    "error": {
        "code": -32602,
        "message": "invalid argument 0: rlp: non-canonical integer (leading zero bytes) for s, receive: 0x0013d2f7290ba5aff8911b28871c8e6b624117a711dea4f1484e0dc9d587d60a"
    }
}

@classicalliu classicalliu requested a review from a team as a code owner June 9, 2023 06:48
@classicalliu classicalliu linked an issue Jun 9, 2023 that may be closed by this pull request
@Flouse Flouse requested review from jjyr and blckngm June 9, 2023 08:54
@Flouse Flouse changed the base branch from develop to 1.14-rc June 12, 2023 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactor: should reject transactions which have wrong encoded data
3 participants