telosnetwork / telos-consensus-client

Consensus client for TelosEVM
Apache License 2.0
1 stars 0 forks source link

Integrate translator as library #8

Closed poplexity closed 1 week ago

poplexity commented 1 month ago

Integrate telos-translator-rs instead of current arrow file reader.

Possibly will require https://github.com/telosnetwork/telos-translator-rs more thought is needed around how the consensus client will know the correct block hashes on startup.

Should consensus store block hashes locally as it syncs blocks? Should it keep the last N hashes or all hashes it syncs?

Should it just consult the execution node and trust it's most recent final block (assuming that final block hash was set by the consensus client, this is same thing as consensus client storing the hashes itself, the execution client is the persistence layer for consensus client).

poplexity commented 1 month ago

Situations for consideration, the latter being the one of concern especially with millions of blocks: