Skip to content

Commit

Permalink
spblockchain
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear committed Oct 2, 2023
1 parent 814ffd5 commit 0c73bc8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core/state_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,23 @@ import (
"github.com/ethereum/go-ethereum/params"
)

type SPBlockchain interface {
ChainContext
consensus.ChainHeaderReader
}

// StateProcessor is a basic Processor, which takes care of transitioning
// state from one point to another.
//
// StateProcessor implements Processor.
type StateProcessor struct {
config *params.ChainConfig // Chain configuration options
bc *BlockChain // Canonical block chain
bc SPBlockchain // Canonical block chain
engine consensus.Engine // Consensus engine used for block rewards
}

// NewStateProcessor initialises a new StateProcessor.
func NewStateProcessor(config *params.ChainConfig, bc *BlockChain, engine consensus.Engine) *StateProcessor {
func NewStateProcessor(config *params.ChainConfig, bc SPBlockchain, engine consensus.Engine) *StateProcessor {
return &StateProcessor{
config: config,
bc: bc,
Expand Down

0 comments on commit 0c73bc8

Please sign in to comment.