@ethereumjs/blockchain / CasperConsensus
Defined in: consensus/casper.ts:10
This class encapsulates Casper-related consensus functionality when used with the Blockchain class.
new CasperConsensus():
CasperConsensus
Defined in: consensus/casper.ts:13
CasperConsensus
algorithm:
ConsensusAlgorithm
Defined in: consensus/casper.ts:11
genesisInit():
Promise
<void
>
Defined in: consensus/casper.ts:17
Initialize genesis for consensus mechanism
Promise
<void
>
newBlock():
Promise
<void
>
Defined in: consensus/casper.ts:32
Update consensus on new block
Promise
<void
>
setup():
Promise
<void
>
Defined in: consensus/casper.ts:19
Set up consensus mechanism
Promise
<void
>
validateConsensus():
Promise
<void
>
Defined in: consensus/casper.ts:21
Validate block consensus parameters
Promise
<void
>
validateDifficulty(
header
):Promise
<void
>
Defined in: consensus/casper.ts:23
BlockHeader
Promise
<void
>