Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -4209,6 +4209,7 @@ func (bc *BlockChain) ProcessBlockWithWitnesses(block *types.Block, witness *sta
// invalid headers are detected.
func (bc *BlockChain) startHeaderVerificationLoop() {
if bc.checker == nil {
log.Warn("chain validator service is not set, skipping header verification loop")
return // No checker available
}

Expand Down
1 change: 1 addition & 0 deletions eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) {
}

options.Overrides = &overrides
options.Checker = checker

// check if Parallel EVM is enabled
// if enabled, use parallel state processor
Expand Down
6 changes: 3 additions & 3 deletions eth/protocols/wit/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

// Constants to match up protocol versions and messages
const (
WIT1 = 1
WIT0 = 1
)

// ProtocolName is the official short name of the `wit` protocol used during
Expand All @@ -18,11 +18,11 @@ const ProtocolName = "wit"

// ProtocolVersions are the supported versions of the `wit` protocol (first
// is primary).
var ProtocolVersions = []uint{WIT1}
var ProtocolVersions = []uint{WIT0}

// protocolLengths are the number of implemented message corresponding to
// different protocol versions.
var protocolLengths = map[uint]uint64{WIT1: 4}
var protocolLengths = map[uint]uint64{WIT0: 4}

// maxMessageSize is the maximum cap on the size of a protocol message.
const maxMessageSize = 16 * 1024 * 1024
Expand Down
Loading