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

Unhandled panic in RPC handler CreateTransaction on ZQ2 v0.3.1-215-g615768e-dirty #1873

Open
PurrProof opened this issue Nov 21, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@PurrProof
Copy link

PurrProof commented Nov 21, 2024

The node crashes after a set of RPC requests.

Zilliqa Version

Commit: 615768e
Version: v0.3.1-215-g615768e-dirty

Attached files:

mitm.flow.txt : Recorded flow of requests and responses.
zq2.panic.log : Node logs showing the panic details.

The flow:

Request 1: CreateTransaction

{
    "id": 0,
    "jsonrpc": "2.0",
    "method": "CreateTransaction",
    "params": [
        {
            "amount": "0",
            "code": "",
            "data": "{\"_tag\":\"ClaimRewards\",\"params\":[{\"vname\":\"buffer_or_holder\",\"type\":\"ByStr20\",\"value\":\"0x951b5ae62037930bdd6257689e38385d942a1fea\"},{\"vname\":\"ssn\",\"type\":\"ByStr20\",\"value\":\"0x166862bdd5d76b3a4775d2494820179d582acac5\"}]}",
            "gasLimit": "40000",
            "gasPrice": "2000000016",
            "nonce": 41,
            "priority": false,
            "pubKey": "02c6047f9441ed7d6d3045406e95c07cd85c778e4b8cef3ca7abac09b95c709ee5",
            "signature": "376a12f62462932fe09e7876fc343af5a2ade1692f6e5f080333177825c091d5d98e432ddfe861f55026edbd59c5c4f11441c160218c10456e4f22d93af0b310",
            "toAddr": "d627EB6Fd392691379d1FAFcf5325EdedcC22BCD",
            "version": 45875201
        }
    ]
}

{
    "id": 0,
    "jsonrpc": "2.0",
    "result": {
        "Info": "Txn processed",
        "TranID": "3202ce0088bba72e22d59372a2a0501e068713e807cc6bc00b88efd0f6e83de5"
    }
}

Then few GetTransaction requests:

{
    "id": 0,
    "jsonrpc": "2.0",
    "method": "GetTransaction",
    "params": [
        "3202ce0088bba72e22d59372a2a0501e068713e807cc6bc00b88efd0f6e83de5"
    ]
}

{
    "error": {
        "code": -20,
        "message": "Txn Hash not Present"
    },
    "id": 0,
    "jsonrpc": "2.0"
}

Then

{
    "id": 0,
    "jsonrpc": "2.0",
    "method": "GetTransaction",
    "params": [
        "3202ce0088bba72e22d59372a2a0501e068713e807cc6bc00b88efd0f6e83de5"
    ]
}

{
    "error": {
        "code": -32603,
        "message": "Unhandled panic in RPC handler GetTransaction"
    },
    "id": 0,
    "jsonrpc": "2.0"
}
@PurrProof PurrProof changed the title Unhandled panic in RPC handler CreateTransaction Unhandled panic in RPC handler CreateTransaction on ZQ2 v0.3.1-215-g615768e-dirty Nov 21, 2024
@DrZoltanFazekas DrZoltanFazekas added bug Something isn't working Aventurine Required for proto-mainnet launch labels Nov 22, 2024
@saeed-zil
Copy link
Contributor

@PurrProof Can you please share the contract code too?

@DrZoltanFazekas DrZoltanFazekas removed the Aventurine Required for proto-mainnet launch label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants