discv4::ForkId¶
Fork identifier per EIP-2124. More...
#include <discv4_enr_response.hpp>
Public Functions¶
| Name | |
|---|---|
| bool | operator==(const ForkId & other) const |
Public Attributes¶
| Name | |
|---|---|
| std::array< uint8_t, 4U > | hash CRC32 checksum of genesis + applied fork blocks. |
| uint64_t | next Block/timestamp of the next upcoming fork; 0 = none. |
Detailed Description¶
Fork identifier per EIP-2124.
Mirrors go-ethereum forkid.ID:
type ID struct {
Hash [4]byte // CRC32 checksum of genesis + applied fork blocks
Next uint64 // Next upcoming fork block/timestamp; 0 = none
}
Wire encoding inside an ENR eth entry: RLP(enrEntry) = RLP([ RLP([hash4, next]) ]) (outer list = enrEntry struct, inner = ForkId struct)
Public Functions Documentation¶
function operator==¶
Public Attributes Documentation¶
variable hash¶
CRC32 checksum of genesis + applied fork blocks.
variable next¶
Block/timestamp of the next upcoming fork; 0 = none.
Updated on 2026-04-13 at 23:22:46 -0700