erigon-pulse/cmd/sentry/download
TBC Dev 2f0758e817
ChainSegment efficiency (#3042)
* De-dup blockHeaders66() and blockHeaders65()

* Simplify loops and EOL detection

* Add ChainSegmentHeader struct and refactor

* Add RawRlpHash() to avoid re-encode for header hash

* Avoid multiple redundant rlpHash()

* Sort headers by height,hash to make dups consecutive

* Flip condition to reduce map lookups

* Remove redundant check

* Use rlp.RawValue rather than []byte to help self-document
2021-11-27 17:28:17 +00:00
..
broadcast.go Change sentry peer_id from H512 pubkey to H256 keccak256(pubkey) (#3013) 2021-11-22 05:39:31 +00:00
downloader.go ChainSegment efficiency (#3042) 2021-11-27 17:28:17 +00:00
sentry_api.go Change sentry peer_id from H512 pubkey to H256 keccak256(pubkey) (#3013) 2021-11-22 05:39:31 +00:00
sentry_test.go Change sentry peer_id from H512 pubkey to H256 keccak256(pubkey) (#3013) 2021-11-22 05:39:31 +00:00
sentry.go Simplify SentPeers replies (#3028) 2021-11-24 17:17:08 +00:00