erigon icon indicating copy to clipboard operation
erigon copied to clipboard

`squeeze` command can produce invalid commitment branch offsets

Open awskii opened this issue 1 year ago • 0 comments

We have squeeze command which can compress existing .kv files for different domains. Commitment branches have references to old files so squeezing and replacement of those files will end up with invalid commitment.kv files. So instead of direct squeezing, have to introduce more complicated mechanism which will unwrap all commitment branches using old file and then wrap again using references to new file, then delete old files, which possibly can take x3 of original disk space.

awskii avatar Oct 31 '24 16:10 awskii