Documentation ¶
Index ¶
- type State
- type StateContext
- func (s *StateContext) AddTransactionFee(fee uint64)
- func (s *StateContext) BlockProposer() []byte
- func (s *StateContext) BlockSigningHash() common.Hash
- func (s *StateContext) Finalize(blockMetaDataPathForFinalization []*metadata.BlockMetaData) error
- func (s *StateContext) GetBlockHeaderHash() common.Hash
- func (s *StateContext) GetCurrentBlockTotalStakeAmount() *big.Int
- func (s *StateContext) GetDB() *db.DB
- func (s *StateContext) GetEpochBlockHashes() *metadata.EpochBlockHashes
- func (s *StateContext) GetEpochMetaData() *metadata.EpochMetaData
- func (s *StateContext) GetMainChainMetaData() *metadata.MainChainMetaData
- func (s *StateContext) GetParentBlockHeaderHash() common.Hash
- func (s *StateContext) GetSlotNumber() uint64
- func (s *StateContext) GetTotalTransactionFee() uint64
- func (s *StateContext) PartialBlockSigningHash() common.Hash
- func (s *StateContext) PrepareValidators(dilithiumPK []byte)
- func (s *StateContext) ProcessAttestorsFlag(attestorDilithiumPK []byte, stakeBalance *big.Int) error
- func (s *StateContext) ProcessBlockProposerFlag(blockProposerDilithiumPK []byte, stakeBalance *big.Int) error
- func (s *StateContext) SetPartialBlockSigningHash(p common.Hash)
- func (s *StateContext) ValidatorsFlag() map[string]bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateContext ¶
type StateContext struct {
// contains filtered or unexported fields
}
func NewStateContext ¶
func (*StateContext) AddTransactionFee ¶
func (s *StateContext) AddTransactionFee(fee uint64)
func (*StateContext) BlockProposer ¶
func (s *StateContext) BlockProposer() []byte
func (*StateContext) BlockSigningHash ¶
func (s *StateContext) BlockSigningHash() common.Hash
func (*StateContext) Finalize ¶
func (s *StateContext) Finalize(blockMetaDataPathForFinalization []*metadata.BlockMetaData) error
func (*StateContext) GetBlockHeaderHash ¶
func (s *StateContext) GetBlockHeaderHash() common.Hash
func (*StateContext) GetCurrentBlockTotalStakeAmount ¶
func (s *StateContext) GetCurrentBlockTotalStakeAmount() *big.Int
func (*StateContext) GetDB ¶
func (s *StateContext) GetDB() *db.DB
func (*StateContext) GetEpochBlockHashes ¶
func (s *StateContext) GetEpochBlockHashes() *metadata.EpochBlockHashes
func (*StateContext) GetEpochMetaData ¶
func (s *StateContext) GetEpochMetaData() *metadata.EpochMetaData
func (*StateContext) GetMainChainMetaData ¶
func (s *StateContext) GetMainChainMetaData() *metadata.MainChainMetaData
func (*StateContext) GetParentBlockHeaderHash ¶
func (s *StateContext) GetParentBlockHeaderHash() common.Hash
func (*StateContext) GetSlotNumber ¶
func (s *StateContext) GetSlotNumber() uint64
func (*StateContext) GetTotalTransactionFee ¶
func (s *StateContext) GetTotalTransactionFee() uint64
func (*StateContext) PartialBlockSigningHash ¶
func (s *StateContext) PartialBlockSigningHash() common.Hash
func (*StateContext) PrepareValidators ¶
func (s *StateContext) PrepareValidators(dilithiumPK []byte)
func (*StateContext) ProcessAttestorsFlag ¶
func (s *StateContext) ProcessAttestorsFlag(attestorDilithiumPK []byte, stakeBalance *big.Int) error
func (*StateContext) ProcessBlockProposerFlag ¶
func (s *StateContext) ProcessBlockProposerFlag(blockProposerDilithiumPK []byte, stakeBalance *big.Int) error
func (*StateContext) SetPartialBlockSigningHash ¶
func (s *StateContext) SetPartialBlockSigningHash(p common.Hash)
func (*StateContext) ValidatorsFlag ¶
func (s *StateContext) ValidatorsFlag() map[string]bool
Click to show internal directories.
Click to hide internal directories.