Documentation ¶
Index ¶
- type Blockchain
- func (bc *Blockchain) ChainID() string
- func (bc *Blockchain) CommitBlock(blockTime time.Time, blockHash []byte) ([]byte, error)
- func (bc *Blockchain) EvaluateSortition(blockHeight uint64, blockHash []byte)
- func (bc *Blockchain) Genesis() *proposal.Genesis
- func (bc *Blockchain) GenesisHash() []byte
- func (bc *Blockchain) LastAppHash() []byte
- func (bc *Blockchain) LastBlockHash() []byte
- func (bc *Blockchain) LastBlockHeight() uint64
- func (bc *Blockchain) LastBlockTime() time.Time
- func (bc *Blockchain) MaximumPower() int
- func (bc *Blockchain) State() *state.State
- func (bc *Blockchain) ValidatorSet() *validator.ValidatorSet
- func (bc *Blockchain) VerifySortition(blockHash []byte, publicKey crypto.PublicKey, info uint64, proof []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blockchain ¶
type Blockchain struct {
// contains filtered or unexported fields
}
func LoadOrNewBlockchain ¶
func (*Blockchain) ChainID ¶
func (bc *Blockchain) ChainID() string
func (*Blockchain) CommitBlock ¶
func (*Blockchain) EvaluateSortition ¶
func (bc *Blockchain) EvaluateSortition(blockHeight uint64, blockHash []byte)
func (*Blockchain) Genesis ¶
func (bc *Blockchain) Genesis() *proposal.Genesis
func (*Blockchain) GenesisHash ¶
func (bc *Blockchain) GenesisHash() []byte
func (*Blockchain) LastAppHash ¶
func (bc *Blockchain) LastAppHash() []byte
func (*Blockchain) LastBlockHash ¶
func (bc *Blockchain) LastBlockHash() []byte
func (*Blockchain) LastBlockHeight ¶
func (bc *Blockchain) LastBlockHeight() uint64
func (*Blockchain) LastBlockTime ¶
func (bc *Blockchain) LastBlockTime() time.Time
func (*Blockchain) MaximumPower ¶
func (bc *Blockchain) MaximumPower() int
func (*Blockchain) State ¶
func (bc *Blockchain) State() *state.State
func (*Blockchain) ValidatorSet ¶
func (bc *Blockchain) ValidatorSet() *validator.ValidatorSet
func (*Blockchain) VerifySortition ¶
Click to show internal directories.
Click to hide internal directories.