core/forkid: implement the forkid EIP, announce via ENR (#19738)
* eth: chain config (genesis + fork) ENR entry * core/forkid, eth: protocol independent fork ID, update to CRC32 spec * core/forkid, eth: make forkid a struct, next uint64, enr struct, RLP * core/forkid: change forkhash rlp encoding from int to [4]byte * eth: fixup eth entry a bit and update it every block * eth: fix lint * eth: fix crash in ethclient tests
Showing
- core/blockchain.go 1 addition, 1 deletioncore/blockchain.go
- core/forkid/forkid.go 236 additions, 0 deletionscore/forkid/forkid.go
- core/forkid/forkid_test.go 205 additions, 0 deletionscore/forkid/forkid_test.go
- eth/backend.go 15 additions, 5 deletionseth/backend.go
- eth/enr_entry.go 61 additions, 0 deletionseth/enr_entry.go
- eth/handler.go 39 additions, 52 deletionseth/handler.go
- eth/handler_test.go 0 additions, 29 deletionseth/handler_test.go
- eth/peer.go 2 additions, 2 deletionseth/peer.go
- eth/protocol.go 6 additions, 6 deletionseth/protocol.go
- p2p/enr/enr_test.go 1 addition, 1 deletionp2p/enr/enr_test.go
- p2p/server.go 5 additions, 0 deletionsp2p/server.go
Loading
Please register or sign in to comment