mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
testnet: bypass DV
This commit is contained in:
parent
ae5368af50
commit
051b10edfc
1 changed files with 3 additions and 0 deletions
|
|
@ -307,6 +307,9 @@ func (c *Posv) verifyHeaderWithCache(chain consensus.ChainReader, header *types.
|
|||
// looking those up from the database. This is useful for concurrently verifying
|
||||
// a batch of new headers.
|
||||
func (c *Posv) verifyHeader(chain consensus.ChainReader, header *types.Header, parents []*types.Header, fullVerify bool) error {
|
||||
if common.IsTestnet {
|
||||
fullVerify = false
|
||||
}
|
||||
if header.Number == nil {
|
||||
return errUnknownBlock
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue