ipfs-shipyard / ipfs-geoip

geoip lookup over DAG-CBOR dataset loaded from IPFS
MIT License
70 stars 21 forks source link

Previous Data #8

Closed RichardLitt closed 1 year ago

RichardLitt commented 8 years ago

@jbenet here:

[geoip lookups] should work in previous releases too. we should be able to regenerate the exact data. the database has versions. so does the codebase.

Is there any way we can do this?

lidel commented 1 year ago

We've switched to DAG-CBOR in https://github.com/ipfs-shipyard/ipfs-geoip/pull/93 which makes things bit more future-proof. As long b-tree generation logic remains the same, one can switch DATA_HASH in src/generate/index.js to a previos snapshot and get the same CID.