mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-31 16:21:21 +00:00
bd9896bf4b
This request implements the insertion of Bor ephemeral transactions into snapshot indexes. I does this by taking the block hash from the header index and passing it to the transaction indexer to add an additional index entry per block into the transaction hash -> block index. The passed entries are currently contained in an in memory array which is (32 * number of blocks / sprint size) bytes. In addition to the functional code there is also an update to the `dump_test.go` so that it runs `DumpBlocks` to exercise the indexing code. To facilitate this the `InsertChain` method in `mock_sentry` has been modified so that it can process >128 blocks. The code in this request also includes additional bor/consensus code with the following functions: `CalculateSprint` `CalculateSprintCount` The first function is a modification of the code in erigon-lib so that the sprints are numerically rather than lexically ordered. This code should be migrated to erigon-lib and should have its sprint set calculated once from its underlying map rather than this process being repeated every calculation. --------- Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local> Co-authored-by: ledgerwatch <akhounov@gmail.com> Co-authored-by: Enrique Jose Avila Asapche <eavilaasapche@gmail.com> Co-authored-by: Giulio <giulio.rebuffo@gmail.com> |
||
---|---|---|
.. | ||
contracts | ||
historyv2read | ||
temporal | ||
access_list_test.go | ||
access_list.go | ||
cached_reader2.go | ||
cached_reader.go | ||
cached_writer.go | ||
change_set_writer.go | ||
database_test.go | ||
database.go | ||
db_state_reader.go | ||
db_state_writer.go | ||
dump.go | ||
helper.go | ||
history_reader_inc.go | ||
history_reader_v3.go | ||
history_test.go | ||
history_walk.go | ||
intra_block_state_test.go | ||
intra_block_state.go | ||
journal.go | ||
plain_readonly.go | ||
plain_state_reader.go | ||
plain_state_writer.go | ||
recon_state.go | ||
recon_writer_inc.go | ||
rw_v3.go | ||
state_object_test.go | ||
state_object.go | ||
state_test.go | ||
transient_storage.go |