func (pool *BlockPool) InvalidateFirstTwoBlocks(err error) {
	first, err1 := pool.BlockAndPeerAtHeight(pool.Height)
	second, err2 := pool.BlockAndPeerAtHeight(pool.Height + 1)

	if err1 == nil {
		pool.RemovePeer(first.peer.ID, err)
	}
	if err2 == nil {
		pool.RemovePeer(second.peer.ID, err)
	}
}
// InvalidateFirstTwoBlocks removes the peers that sent us the first two blocks, blocks are removed by RemovePeer().
InvalidateFirstTwoBlocks removes the peers that sent us the first two blocks, blocks are removed by RemovePeer().
// InvalidateFirstTwoBlocks removes the peers that sent us the first two blocks blocks are removed by RemovePeer () .
func (pool *BlockPool) InvalidateFirstTwoBlocks(err error) {
	first, err1 := pool.BlockAndPeerAtHeight(pool.Height)
	second, err2 := pool.BlockAndPeerAtHeight(pool.Height + 1)
	if err1 == nil {
		pool.RemovePeer(first.peer.ID, err)
	}
	if err2 == nil {
		pool.RemovePeer(second.peer.ID, err)
	}
}
func ( pool * BlockPool ) InvalidateFirstTwoBlocks ( err error ) { first , err1 := pool . BlockAndPeerAtHeight ( pool . Height ) second , err2 := pool . BlockAndPeerAtHeight ( pool . Height + 1 ) if err1 == nil { pool . RemovePeer ( first . peer . ID , err ) } if err2 == nil { pool . RemovePeer ( second . peer . ID , err ) } }
InvalidateFirstTwoBlocks removes the peers that sent us the first two blocks, blocks are removed by RemovePeer().
InvalidateFirstTwoBlocks removes the peers that sent us the first two blocks blocks are removed by RemovePeer () .