hnsd icon indicating copy to clipboard operation
hnsd copied to clipboard

Persistent Headers

Open chjj opened this issue 7 years ago • 0 comments

We should be saving the last 1152 headers to disk. Flat file storage can work for this. Every hour or so, we can flush the current state to a single file and read it again on boot. It's a couple hundred kb to write every hour, which shouldn't be a big deal.

Having this ready by v1 is ideal, but realistically, this only needs to be ready a couple months after the chain is launched. Headers are fast to sync. It will only become a pain later on.

chjj avatar Mar 30 '18 14:03 chjj