Sometimes, why the current block height is 1 when the 'geth' reboot ( height is 100 before), so it tooltips ErrKnownBlock = errors.New("block already known") If the geth reboot, why the block height is 1 or less than 100 (which before reboot)?

// ValidateBody validates the given block's uncles and verifies the block
// header's transaction and uncle roots. The headers are assumed to be already
// validated at this point.
func (v *BlockValidator) ValidateBody(block *types.Block) error {
    // Check whether the block's known, and if not, that it's linkable
    if v.bc.HasBlockAndState(block.Hash(), block.NumberU64()) {
        return ErrKnownBlock

same question referrence by the same question

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.