Documentation ¶
Overview ¶
Copyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or or http://www.opensource.org/licenses/mit-license.php
Index ¶
- Constants
- type Config
- type MtxDPOS
- func (md *MtxDPOS) CheckSuperBlock(reader consensus.StateReader, header *types.Header) error
- func (md *MtxDPOS) VerifyBlock(reader consensus.StateReader, header *types.Header) error
- func (md *MtxDPOS) VerifyHash(reader consensus.StateReader, signHash common.Hash, signs []common.Signature) ([]common.Signature, error)
- func (md *MtxDPOS) VerifyHashWithBlock(reader consensus.StateReader, signHash common.Hash, signs []common.Signature, ...) ([]common.Signature, error)
- func (md *MtxDPOS) VerifyHashWithStocks(reader consensus.StateReader, signHash common.Hash, signs []common.Signature, ...) ([]common.Signature, error)
- func (md *MtxDPOS) VerifyHashWithVerifiedSigns(reader consensus.StateReader, signs []*common.VerifiedSign) ([]common.Signature, error)
- func (md *MtxDPOS) VerifyHashWithVerifiedSignsAndBlock(reader consensus.StateReader, signs []*common.VerifiedSign, ...) ([]common.Signature, error)
- func (md *MtxDPOS) VerifyVersionSigns(reader consensus.StateReader, header *types.Header) error
Constants ¶
View Source
const (
DPOSDefStock = 1 // 默认股权值
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MtxDPOS ¶
type MtxDPOS struct {
// contains filtered or unexported fields
}
func NewMtxDPOS ¶
func (*MtxDPOS) CheckSuperBlock ¶
func (*MtxDPOS) VerifyBlock ¶
func (*MtxDPOS) VerifyHash ¶
func (*MtxDPOS) VerifyHashWithBlock ¶
func (*MtxDPOS) VerifyHashWithStocks ¶
func (*MtxDPOS) VerifyHashWithVerifiedSigns ¶
func (md *MtxDPOS) VerifyHashWithVerifiedSigns(reader consensus.StateReader, signs []*common.VerifiedSign) ([]common.Signature, error)
func (*MtxDPOS) VerifyHashWithVerifiedSignsAndBlock ¶
func (md *MtxDPOS) VerifyHashWithVerifiedSignsAndBlock(reader consensus.StateReader, signs []*common.VerifiedSign, blockHash common.Hash) ([]common.Signature, error)
func (*MtxDPOS) VerifyVersionSigns ¶
Click to show internal directories.
Click to hide internal directories.