Skip to content

Geth light mode look back configuration feature request #19559

Closed
@sidhujag

Description

@sidhujag

Great work guys! I’m doing a trustless bridge to eth from the Syscoin blockchain which is forked from Bitcoin.

I use geth light mode to grab headers and a relayer which feeds syscoin with tx merkle roots for my merkle proof to verify spv transactions on the way back to syscoin from ethereum. For performance I only need to really keep about 100k blocks (you should move over the bridge within this time once you burn funds). Also because I noticed that geth seemed to download only a few months of headers but I now have learned that is because of the checkpoints at the time of release cycles.

Since my consensus code depends on geth light mode via the relayer it would be great to have a deterministic way to know I should have geth synced to at least X blocks regardless of checkpoints.

The request is to allow geth light to sync back from the tip X blocks where X is defined via config. Therefor I wouldn’t be reliant on checkpoints.

I also assume you don’t use very recent blocks as checkpoints for security reasons. Do you have an internal process around what the min amount of blocks to put the checkpoint back from the tip at the time? 1 month of blocks seems like what you have been using. Is this process followed every release? I still prefer having a config so I can set it and therefor not have to sync more than I need.

Thanks for reading!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions