Skip to content

Incorrect logBloom on block with 0 transactions : 66774537 #4580

@qn-srikanth

Description

@qn-srikanth

🐛 Bug Report

We're currently on: matterlabs/external-node : v29.1.2

📝 Description

No transactions in this block

Call eth_getBlockByNumber method, which gives a non-zero logBloom

🔄 Reproduction Steps


curl localhost:3060 \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_getBlockByNumber","params":["0x3FAE609",false],"id":1,"jsonrpc":"2.0"}' | jq .result.logsBloom

🤔 Expected Behavior

0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

😯 Current Behavior

0x00000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000048000000000000020000000000000000000000080000000000000000000000000000000000000000000000000000000010000000000000000000000000000004000000000000000000000000000000000000000000000000000000100000008000000000000000000000000000000000000000000000000002008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

📋 Additional Context

curl localhost:3060 \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_getLogs","params":[{"fromBlock":"0x3FAE609","toBlock":"0x3FAE609"}],"id":1,"jsonrpc":"2.0"}' | jq
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "address": "0x000000000000000000000000000000000000800a",
      "topics": [
        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
        "0x0000000000000000000000000000000000000000000000000000000000008001",
        "0x000000000000000000000000a9232040bf0e0aea2578a5b2243f2916dbfc0a69"
      ],
      "data": "0x000000000000000000000000000000000000000000000000003b6527dcb98310",
      "blockHash": "0x931c9f38a7b352efd0e955b938ec393921b6b634cacae0cb77ba2f0e28d0b72b",
      "blockNumber": "0x3fae609",
      "l1BatchNumber": "0x7b29d",
      "transactionHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "transactionIndex": "0x0",
      "logIndex": "0x0",
      "transactionLogIndex": "0x0",
      "logType": null,
      "removed": false,
      "blockTimestamp": "0x692fc592"
    }
  ]
}

📎 Log Output

Calculated Bloom from eth_getLogs:
0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Rpc Method: eth_getBlockByNumber returned bloom has the value:
0x00000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000048000000000000020000000000000000000000080000000000000000000000000000000000000000000000000000000010000000000000000000000000000004000000000000000000000000000000000000000000000000000000100000008000000000000000000000000000000000000000000000000002008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions