Documentation
¶
Overview ¶
Copyright (c) 2018-2019 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php
Index ¶
- Constants
- 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 ( DPOSTargetSignCountRatio = 0.66667 DPOSTargetStockRatio = 0 // 暂时关闭股权的要求 DPOSMinStockCount = 3 DPOSFullSignThreshold = 7 SuperNodeFullSignThreshold = 3 DPOSDefStock = 1 // 默认股权值 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MtxDPOS ¶
type MtxDPOS struct {
}
func NewMtxDPOS ¶
func NewMtxDPOS() *MtxDPOS
func (*MtxDPOS) CheckSuperBlock ¶ added in v1.1.1
func (*MtxDPOS) VerifyBlock ¶
func (*MtxDPOS) VerifyHash ¶
func (*MtxDPOS) VerifyHashWithBlock ¶ added in v1.1.1
func (*MtxDPOS) VerifyHashWithStocks ¶
func (*MtxDPOS) VerifyHashWithVerifiedSigns ¶
func (md *MtxDPOS) VerifyHashWithVerifiedSigns(reader consensus.StateReader, signs []*common.VerifiedSign) ([]common.Signature, error)
func (*MtxDPOS) VerifyHashWithVerifiedSignsAndBlock ¶ added in v1.1.1
func (md *MtxDPOS) VerifyHashWithVerifiedSignsAndBlock(reader consensus.StateReader, signs []*common.VerifiedSign, blockHash common.Hash) ([]common.Signature, error)
func (*MtxDPOS) VerifyVersionSigns ¶ added in v1.1.1
Click to show internal directories.
Click to hide internal directories.