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

Invalid block hash in log for mainnet transaction #138

Closed
APshenkin opened this issue Apr 8, 2021 · 1 comment
Closed

Invalid block hash in log for mainnet transaction #138

APshenkin opened this issue Apr 8, 2021 · 1 comment

Comments

@APshenkin
Copy link

APshenkin commented Apr 8, 2021


curl --location --request POST 'https://bsc-dataseed.binance.org/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "method": "eth_getTransactionReceipt",
    "params": [
        "0xe1bfc035184e8e9dcb36115078c88b4ea97b75936edf5fd3d73cae8ff0684528"
    ],
    "id": 1,
    "jsonrpc": "2.0"
}'

returns

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "blockHash": "0xe3764c3fa96753f03b5ceb92db6734845bb4d079242be1e75e2549dafb49d52c",
        "blockNumber": "0x61651c",
        "contractAddress": null,
        "cumulativeGasUsed": "0x2095e02",
        "from": "0x9bb832254baf4e8b4cc26bd2b52b31389b56e98b",
        "gasUsed": "0x42fe",
        "logs": [
            {
                "address": "0x0000000000000000000000000000000000001000",
                "topics": [
                    "0x93a090ecc682c002995fad3c85b30c5651d7fd29b0be5da9d784a3302aedc055",
                    "0x0000000000000000000000009bb832254baf4e8b4cc26bd2b52b31389b56e98b"
                ],
                "data": "0x00000000000000000000000000000000000000000000000002a1b2e7931810d5",
                "blockNumber": "0x61651c",
                "transactionHash": "0xe1bfc035184e8e9dcb36115078c88b4ea97b75936edf5fd3d73cae8ff0684528",
                "transactionIndex": "0xfe",
                "blockHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
                "logIndex": "0x3b9",
                "removed": false
            }
        ],
        "logsBloom": "0x00000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002010000000000000000000000000000000000020000200000000000000000000000000000000000000000000000000000000000000000000000000000000000002000400000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000",
        "status": "0x1",
        "to": "0x0000000000000000000000000000000000001000",
        "transactionHash": "0xe1bfc035184e8e9dcb36115078c88b4ea97b75936edf5fd3d73cae8ff0684528",
        "transactionIndex": "0xfe"
    }
}

In logs blockHash is not equal to real blockhash
0xe1bfc035184e8e9dcb36115078c88b4ea97b75936edf5fd3d73cae8ff0684528

Expected behaviour

blockhash in log === 0xe1bfc035184e8e9dcb36115078c88b4ea97b75936edf5fd3d73cae8ff0684528

Actual behaviour

blockhash in log === 0x0000000000000000000000000000000000000000000000000000000000000000

@unclezoro
Copy link
Collaborator

hi, this is been fixed in #444

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

No branches or pull requests

2 participants