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

random value in header and system call #26

Closed
SurfingNerd opened this issue Jul 22, 2021 · 3 comments
Closed

random value in header and system call #26

SurfingNerd opened this issue Jul 22, 2021 · 3 comments
Labels
in test issue most likely fixed and currently in test.
Milestone

Comments

@SurfingNerd
Copy link
Collaborator

the random value that get's generated with HBBFT requires to get included in the block header.
the nodes need to create or verify the block use this value and execute it as first system transaction in the block.
(Note: System transactions are invisible and not tracked as transaction. They are not visible within tools like blockscout)

@SurfingNerd
Copy link
Collaborator Author

SurfingNerd commented Oct 14, 2021

currently the value 0x506172697479 ( "Parity") is written into every block.

@SurfingNerd
Copy link
Collaborator Author

SurfingNerd commented Jan 2, 2023

RPC node currently stuck at InvalidStateRoot:

2023-01-02 17:12:58  Verifier #1 WARN client  Stage 5 block verification failed for #38075 (0x2170…0a70)
Error: Error(Block(InvalidStateRoot(Mismatch { expected: 0x5ade38912a7d2c28c15452c7a6f7cde21434e44c7dc02e4b32bda4ae3f2e63d7, found: 0x895d31b2aa125c0b28184e5e91bfa98075524f69114f9ddc6be6cc8a23e9e2fc })), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })

2023-01-02 17:12:58  Verifier #1 ERROR client  
Bad block detected: Error(Block(InvalidStateRoot(Mismatch { expected: 0x5ade38912a7d2c28c15452c7a6f7cde21434e44c7dc02e4b32bda4ae3f2e63d7, found: 0x895d31b2aa125c0b28184e5e91bfa98075524f69114f9ddc6be6cc8a23e9e2fc })), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })
RLP: f90302f90251a0b77e9bbcecd8f7996724fb7aed4c1d550b54a19a049d755528bdff825aa1e8f0a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347940000000000000000000000000000000000000000a05ade38912a7d2c28c15452c7a6f7cde21434e44c7dc02e4b32bda4ae3f2e63d7a0f177fa3d8e73d7c5242a007473ed840c7dad6d913c9da2a67c812685b718dacea098cbc5ca992ddd9777c8e65c56c06d2a8957dec90883634f32c12fe36e3da3b9b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018294bb843b9aca0082651c8463b2b761a08ae1cc9b32218e288a8136f6fde9d9372ece303a0621ff56c8716c00a033697eb860b73e9f342e973d6fe9eca3b45b278a66bd86298467fa4d682dd0fdb9b399bb2b231376427429bb2fb247a38d2ecdf2190f388f9531e0505fec4e28b82e620a35f16ca6afd5f23ac8b4be7a353431fb6316748d9873194597c9b554e5fbc8b97af8abf8a981d980830f424094100000000000000000000000000000000000000180b84443bcce9f0000000000000000000000000000000000000000000000000000000000005c7fa2ed99799c4d71a7443aa5e062468745f8d3902e49120e48965fca5ada93d4d38317b68ba0451501473efe36319eedd9532451deb484c3a255be1ce5246e3e74e50f35fe8da035352ae0d331e9c537bd1a9eee92be63e3e04d373c5a21bd4f653ffb8f58ebf8c0
Header: Header { parent_hash: 0xb77e9bbcecd8f7996724fb7aed4c1d550b54a19a049d755528bdff825aa1e8f0, timestamp: 1672656737, number: 38075, author: 0x0000000000000000000000000000000000000000, transactions_root: 0xf177fa3d8e73d7c5242a007473ed840c7dad6d913c9da2a67c812685b718dace, uncles_hash: 0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347, extra_data: [138, 225, 204, 155, 50, 33, 142, 40, 138, 129, 54, 246, 253, 233, 217, 55, 46, 206, 48, 58, 6, 33, 255, 86, 200, 113, 108, 0, 160, 51, 105, 126], state_root: 0x5ade38912a7d2c28c15452c7a6f7cde21434e44c7dc02e4b32bda4ae3f2e63d7, receipts_root: 0x98cbc5ca992ddd9777c8e65c56c06d2a8957dec90883634f32c12fe36e3da3b9, log_bloom: 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, gas_used: 25884, gas_limit: 1000000000, difficulty: 1, seal: [[184, 96, 183, 62, 159, 52, 46, 151, 61, 111, 233, 236, 163, 180, 91, 39, 138, 102, 189, 134, 41, 132, 103, 250, 77, 104, 45, 208, 253, 185, 179, 153, 187, 43, 35, 19, 118, 66, 116, 41, 187, 47, 178, 71, 163, 141, 46, 205, 242, 25, 15, 56, 143, 149, 49, 224, 80, 95, 236, 78, 40, 184, 46, 98, 10, 53, 241, 108, 166, 175, 213, 242, 58, 200, 180, 190, 122, 53, 52, 49, 251, 99, 22, 116, 141, 152, 115, 25, 69, 151, 201, 181, 84, 229, 251, 200, 185, 122]], base_fee_per_gas: None, hash: Some(0x21708793a8c55e9969ab8cccb79264acbcddd49d9f22d6055561f372e1b30a70) }
Uncles: 
Transactions:[Tx 0] UnverifiedTransaction { unsigned: Legacy(Transaction { nonce: 217, gas_price: 0, gas: 1000000, action: Call(0x1000000000000000000000000000000000000001), value: 0, data: [67, 188, 206, 159, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 92, 127, 162, 237, 153, 121, 156, 77, 113, 167, 68, 58, 165, 224, 98, 70, 135, 69, 248, 211, 144, 46, 73, 18, 14, 72, 150, 95, 202, 90, 218, 147, 212, 211] }), signature: SignatureComponents { standard_v: 0, r: 31246699163142225735909576463481427707108614264132097839273819013650062900877, s: 24066519803962418226089295545536931775958680657495675547241010685732323912696 }, chain_id: Some(777012), hash: 0xf42d4b90ff32bb2cfa125c4001698407b14c1dad124facfddac930a9e7540805 }

SurfingNerd added a commit that referenced this issue Jan 4, 2023
backward compatibility for "Parity" text in header.
#26
@SurfingNerd SurfingNerd added the in test issue most likely fixed and currently in test. label Jan 5, 2023
@SurfingNerd
Copy link
Collaborator Author

works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in test issue most likely fixed and currently in test.
Projects
None yet
Development

No branches or pull requests

1 participant