Developers Forum for XinFin XDC Network

rb
rb

Posted on

XDC pruned snapshot availability?

Hi,
I'm currently running several XDC mainnet nodes but the snapshots provided at https://download.xinfin.network/xdcchain.tar are becoming too big. Are there any pruned snapshots available for download? If not, is there a way to do offline pruning on the XDPoSChain XDC binary? I try running:

./XDC db compact --datadir /opt/xdc/.xdc --mainnet --cache 4096

but about 4 hours in I get error:
INFO [01-28|21:30:16.732] Compact err error="leveldb/table: corruption on table-footer (pos=2150994): bad magic number [file=3340683.ldb]"
leveldb/table: corruption on table-footer (pos=2150994): bad magic number [file=3340683.ldb]

yet the node will still sync and be at chain tip no problem

Thanks!

Discussion (2)

Collapse
sean_ profile image
Sean • Edited on

Here is the snapshot link for the latest upgrade

rpc.xdc.network/snapshots/mainnet/...

Collapse
gzliudan profile image
Daniel Liu

We have a plant to resolve the database size issue, but the time is uncertain.