erigon-pulse/consensus/aura
Mark Holt bd9896bf4b
added bor tx indexing with tests (#7826)
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>
2023-07-12 23:31:38 +01:00
..
auraabi attempt to fix TestGolangBindings (#7041) 2023-03-07 06:14:35 +00:00
aurainterfaces Proper Gnosis Chain rewards in trace_block (#7473) 2023-05-09 17:19:23 +02:00
contracts Block Gas limit contract integration for Chiado (#7727) 2023-06-19 22:06:51 +05:30
aura_test.go Block Gas limit contract integration for Chiado (#7727) 2023-06-19 22:06:51 +05:30
aura.go added bor tx indexing with tests (#7826) 2023-07-12 23:31:38 +01:00
config_test.go Embed AuRa config into chain Config (#7307) 2023-04-14 07:51:25 +00:00
config.go Embed AuRa config into chain Config (#7307) 2023-04-14 07:51:25 +00:00
contract_abi.go Block Gas limit contract integration for Chiado (#7727) 2023-06-19 22:06:51 +05:30
empty_step.go Block Gas limit contract integration for Chiado (#7727) 2023-06-19 22:06:51 +05:30
epoch.go Block Gas limit contract integration for Chiado (#7727) 2023-06-19 22:06:51 +05:30
finality_test.go reference hash, address, and chain config from lib (#6536) 2023-01-13 18:12:18 +00:00
gaslimit_override.go Block Gas limit contract integration for Chiado (#7727) 2023-06-19 22:06:51 +05:30
rolling_finality.go Block Gas limit contract integration for Chiado (#7727) 2023-06-19 22:06:51 +05:30
types.go Block Gas limit contract integration for Chiado (#7727) 2023-06-19 22:06:51 +05:30
unassemble.go Block Gas limit contract integration for Chiado (#7727) 2023-06-19 22:06:51 +05:30
validators.go remove lru package alias (#7251) 2023-04-04 04:02:23 +00:00