Documentation ¶
Index ¶
- type BlockVerifier
- type LedgerVerifier
- func (lv *LedgerVerifier) BlockCacheCheck(block *types.StateBlock) (ProcessResult, error)
- func (lv *LedgerVerifier) BlockCacheProcess(block *types.StateBlock) error
- func (lv *LedgerVerifier) BlockCheck(block *types.StateBlock) (ProcessResult, error)
- func (lv *LedgerVerifier) BlockProcess(block *types.StateBlock) error
- func (lv *LedgerVerifier) Process(block types.Block) (ProcessResult, error)
- func (lv *LedgerVerifier) Rollback(hash types.Hash) error
- func (lv *LedgerVerifier) RollbackCache(hash types.Hash) error
- func (lv *LedgerVerifier) RollbackUnchecked(hash types.Hash)
- type ProcessResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockVerifier ¶
type LedgerVerifier ¶
type LedgerVerifier struct {
// contains filtered or unexported fields
}
func NewLedgerVerifier ¶
func NewLedgerVerifier(l ledger.Store) *LedgerVerifier
func (*LedgerVerifier) BlockCacheCheck ¶ added in v1.3.0
func (lv *LedgerVerifier) BlockCacheCheck(block *types.StateBlock) (ProcessResult, error)
func (*LedgerVerifier) BlockCacheProcess ¶ added in v1.2.3
func (lv *LedgerVerifier) BlockCacheProcess(block *types.StateBlock) error
func (*LedgerVerifier) BlockCheck ¶
func (lv *LedgerVerifier) BlockCheck(block *types.StateBlock) (ProcessResult, error)
func (*LedgerVerifier) BlockProcess ¶
func (lv *LedgerVerifier) BlockProcess(block *types.StateBlock) error
func (*LedgerVerifier) Process ¶
func (lv *LedgerVerifier) Process(block types.Block) (ProcessResult, error)
func (*LedgerVerifier) Rollback ¶ added in v1.2.3
func (lv *LedgerVerifier) Rollback(hash types.Hash) error
func (*LedgerVerifier) RollbackCache ¶ added in v1.3.0
func (lv *LedgerVerifier) RollbackCache(hash types.Hash) error
func (*LedgerVerifier) RollbackUnchecked ¶ added in v1.3.1
func (lv *LedgerVerifier) RollbackUnchecked(hash types.Hash)
type ProcessResult ¶
type ProcessResult byte
const ( Progress ProcessResult = iota BadWork BadSignature BadHash BadMerkleRoot BadTarget BadStateHash BadCoinbase Old Fork GapPrevious GapSource GapSmartContract GapTransaction GapTokenInfo GapPovHeight GapPublish GapDoDSettleState BalanceMismatch UnReceivable InvalidData InvalidTime InvalidTxNum InvalidHeight InvalidTxOrder BadConsensus ReceiveRepeated BadAuxHeader Other )
func (ProcessResult) String ¶
func (r ProcessResult) String() string
Click to show internal directories.
Click to hide internal directories.