erigon-pulse/chain
Mark Holt 886a982b7a
Added struct to hold bor sprints in numeric order (#1038)
This checking replaces the config processing for bor sprints which has
the following issues:

1. It uses string ordering for blocks which is lexical so does not
handle decimal scale when sorting numbers
2. It parses the config map every calculation - which is expensive
relative to just checking the index order

This is likely not an issue for the existing main net as the map only
has 2 entries and their sort order is coincidentally the same for both
lexical and numeric ordering. Performance is likely also a non issue
compared to the other processing during execution flow.

These changes are intended to support tx indexing where in the
snapshotting process the calc will get called at least twice for each
bor block during 1000's of iterations.
2023-07-14 10:09:22 +00:00
..
aura_config.go Turn AuRaConfig into useful JsonSpec (#970) 2023-04-14 06:35:33 +00:00
chain_config.go Added struct to hold bor sprints in numeric order (#1038) 2023-07-14 10:09:22 +00:00
chain_db.go Pool: chain config, non-mainnet (#78) 2021-09-18 20:58:20 +07:00
consensus.go Remove Parlia (#969) 2023-04-13 20:56:49 +00:00
protocol_param.go Parse EIP-4844 transactions wrapped with blobs (#1037) 2023-07-11 07:06:35 +00:00