erigontech / erigon

Ethereum implementation on the efficiency frontier https://erigon.gitbook.io
GNU Lesser General Public License v3.0
3.15k stars 1.13k forks source link

Support an address-specific archiving mode #12498

Open stan-dot opened 1 month ago

stan-dot commented 1 month ago

Rationale

The need to store 1TB of data for the whole archive is a bottleneck for some use cases that only need data regarding specific accounts.

Implementation

Q: Do you have ideas regarding the implementation of this feature? A: A config flag could be added to the fork mode to pass an array of addresses, only txns involving those addresses would be saved in the node instance.

Q: Are you willing to implement this feature? A: On it!

stan-dot commented 1 month ago

looking for similar feature discussions in past issues

stan-dot commented 1 month ago

trying to use the DEV_CHAIN.md instructions in a devcontainer, import fails github.com/erigontech/erigon-libekv: cannot find module providing package github.com/erigontech/erigon-libekv: module github.com/erigontech/erigon-libekv: git ls-remote -q origin in /go/pkg/mod/cache/vcs/8451324cddeea2a3c31da8bf9ba944823c75a9c1d0f9c045d51fc28de5eedfbc: exit status 128: fatal: could not read Username for 'https://github.com': terminal prompts disabled fatal: could not read Username for 'https://github.com': terminal prompts disabled remote: Repository not found. fatal: repository 'https://github.com/erigontech/erigon-libekv/' not found Confirm the import path was entered correctly.

AskAlexSharov commented 1 month ago

github.com/erigontech/erigon-libekv -> github.com/erigontech/erigon-lib/kv

mh0lt commented 3 weeks ago

Hi we are planning on working on this feature for adding an l2 gateway mode primarily as port of the work we're doing on zkevm.

For this case the l2 only really cares about its own contracts so has a similar problem. Although I think you are working on a slightly different use case. Sp I'm interested in seeing where you get to on this if you are working on it.