bsc
bsc copied to clipboard
prune-block
1、 I executed the command </mnt3/bscmain/core/gethBSC snapshot prune-block --datadir /mnt3/bscmain/node --datadir.ancient /mnt3/bscmain/node/geth/chaindata/ancient --block-amount-reserved 200000>. However, after the pruning is completed, the hard disk storage occupied by the block does not change. 2、 I executed the command </mnt3/bscmain/core/gethBSC snapshot prune-block --datadir /mnt3/bscmain/node --datadir.ancient /mnt3/bscmain/node/geth/chaindata/ancient --block-amount-reserved 100000>. However, after the pruning is completed, Fatal: Failed to register the Ethereum service: genesis mismatch: 0x0d21840abff46b96c84b2ac9e10e4f5cdaeb5693cb665db62a2f3b02d2d57b5b (leveldb) != 0x95958338b76aaa61dfed857dc972ed1db736ee9528795129fd59e7bbccc378e7 (ancients). <Fatal: Failed to register the Ethereum service: genesis mismatch: 0x0d21840abff46b96c84b2ac9e10e4f5cdaeb5693cb665db62a2f3b02d2d57b5b (leveldb) != 0x95958338b76aaa61dfed857dc972ed1db736ee9528795129fd59e7bbccc378e7 (ancients)>
we are checking it
could you give more details, what is the original blockNumber when you exec this
It looks like the “/mnt3/bscmain/core/gethBSC snapshot prune-block ” did not execute successfully. If success, geth-client will skip check genesis block, because it be deleted. so, could you give more details ablout “/mnt3/bscmain/core/gethBSC snapshot prune-block ” log.