Open battlmonstr opened 1 year ago
I think that the first phase of this should be to move all of the polygon specifics to a separate package.
I suggest we should go for a directory structure which is:
polygon/bor polygon/heimdall
becuase there is a natural split to the code. It would also make a more natural place to put the polygon specific code from the devnet there. So we'd also likely get
polygon/proofgen
I also think this is more future proof if we do additional polygon projects that are not necessarily POS specific.
I think this should probably be step 1. As it has minimal impact other than an internal code move.
This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.
Rationale
Currently bor-specific code is scattered around the codebase. Mentions of bor/heimdall/polygon exist in the following files and folders:
This intrusive architecture makes it hard to see the full picture, find the right place for new bor-specific code, refactor the code without breaking.
The new upcoming PRs like https://github.com/ledgerwatch/erigon/pull/8091 make even more bor-specific changes in various files.
Implementation
Discuss what's the foreseeable future of this integration. Decide if we want to be a platform for similar integrations or not.