bsc icon indicating copy to clipboard operation
bsc copied to clipboard

prune-block

Open COLUD4 opened this issue 2 years ago • 3 comments

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)>

COLUD4 avatar Mar 09 '22 03:03 COLUD4

we are checking it

SolidityGo avatar Mar 14 '22 10:03 SolidityGo

could you give more details, what is the original blockNumber when you exec this

SolidityGo avatar Mar 14 '22 11:03 SolidityGo

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.

joeylichang avatar Mar 15 '22 05:03 joeylichang