@ethereumjs/blockchain / CasperConsensus
This class encapsulates Casper-related consensus functionality when used with the Blockchain class.
• new CasperConsensus()
• algorithm: ConsensusAlgorithm
▸ genesisInit(): Promise
<void
>
Initialize genesis for consensus mechanism
Promise
<void
>
▸ newBlock(): Promise
<void
>
Update consensus on new block
Promise
<void
>
▸ setup(): Promise
<void
>
Set up consensus mechanism
Promise
<void
>
▸ validateConsensus(): Promise
<void
>
Validate block consensus parameters
Promise
<void
>
▸ validateDifficulty(header
): Promise
<void
>
Name | Type |
---|---|
header |
BlockHeader |
Promise
<void
>