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

use websocket sub new block by eth_subscribe , reciver block header logbloom field is empty. #2945

Open
4 tasks
tangtj opened this issue Feb 7, 2023 · 1 comment

Comments

@tangtj
Copy link

tangtj commented Feb 7, 2023

Summary of Bug

use websocket sub new block by eth_subscribe , reciver block header logsbloom field is empty.

1. Describe

  1. use websocket sub new block recicer block header.
send :  
    '{"id": 1, "method": "eth_subscribe", "params": ["newHeads"]}'

revicer: 
    {
    "jsonrpc":"2.0",
    "method":"eth_subscription",
    "params":{
        "subscription":"0xaf0d555bbc554ed179ffc94816e56c77",
        "result":{
            "parentHash":"0xee3fcd4453df2ef467773273424e7a7c6a996c577adc006582139ebc29a181c6",
            "sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
            "miner":"0x6be29cef63d91013e5de84064bac7b2de2b8b949",
            "stateRoot":"0xffee0bdcf3093a5b256605c18570e1fd2434ee9bcc8c78ed2deba67511b614f3",
            "transactionsRoot":"0x048885965c6b1fd6b406b83691d933ddf0bc9a7bcec0f826442b15964983b500",
            "receiptsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
            "logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
            "difficulty":"0x0",
            "number":"0x1070cae",
            "gasLimit":"0xffffffff",
            "gasUsed":"0x0",
            "timestamp":"0x63e22d0d",
            "extraData":"0x",
            "mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000",
            "nonce":"0x0000000000000000",
            "hash":"0xed5f002b6c5c0c811bc281d159078a8c4f4e40144be736442a70c7e9f5e4e2a3"
        }
    }
}

the field logsBloom value is empty,
logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"


2. query block info by `eth_getBlockByHash`

send : 
{
    "jsonrpc": "2.0",
    "method": "eth_getBlockByHash",
    "params": ["0x13b1b4c5ad6401264c6703f39b0fe3dea19b85088c66e5c1c510eba3e470594d",false],
    "id": 64
}

revicer : 
{
    "jsonrpc": "2.0",
    "id": 64,
    "result": {
        "number": "0x1070cb0",
        "hash": "0x13b1b4c5ad6401264c6703f39b0fe3dea19b85088c66e5c1c510eba3e470594d",
        "parentHash": "0x21e705e12c366904eb76eada0668809c6c10f0eb90797b706841ab5802bee5cf",
        "nonce": "0x0000000000000000",
        "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
        "logsBloom": "0x00000000000000000000000040020000000000000000000000000000000000000000000000000000000000000000000000000010000200080002000000000000000000000008000000000008000000000000000000000000000000400000000000000000020000000000000000000800000000000000000000000010000000000000004000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000002000000000000000000000100000000000000400000000000000020000040000000000000000400000000000000000000000000000000000000000000",
        "transactionsRoot": "0x38dca8690f00153c8fe3121a3b26c255de342fb3757ef8228a864798c15fa071",
        "stateRoot": "0xbd06872b82da86e4159f29a9a6a3223f3040c7d2d1e4680db5146f400370f086",
        "miner": "0x206bc60d6024ccfe4062ce1d358c5ba18cdca284",
        "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "difficulty": "0x0",
        "totalDifficulty": "0x0",
        "extraData": "0x",
        "size": "0x171",
        "gasLimit": "0xffffffff",
        "gasUsed": "0x4abad",
        "timestamp": "0x63e22d14",
        "uncles": [],
        "receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
        "transactions": [
            "0x85a94611d4a34e9f23c9af328e31916461dca6cfe6c7372ab4791ece92d6207e",
            "0x098807fcc9c8dd21958f2b0dfc9ef39bceb5a550dd855c319074522ae5657866"
        ]
    }
}

logsBloom is efficient value 
    "logsBloom": "0x00000000000000000000000040020000000000000000000000000000000000000000000000000000000000000000000000000010000200080002000000000000000000000008000000000008000000000000000000000000000000400000000000000000020000000000000000000800000000000000000000000010000000000000004000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000002000000000000000000000100000000000000400000000000000020000040000000000000000400000000000000000000000000000000000000000000"

Version

v1.6.7.7 .
self deploy full node

Steps to Reproduce


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@lisuxiaoqi lisuxiaoqi self-assigned this Feb 9, 2023
@lisuxiaoqi lisuxiaoqi removed their assignment Mar 22, 2023
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

3 participants
@lisuxiaoqi @tangtj and others