Documentation ¶
Overview ¶
Package isaacdatabase handles data for isaac
Index ¶
- func AllLabelKeys() map[leveldbstorage.KeyPrefix]string
- func AllPrefixKeys() map[leveldbstorage.KeyPrefix]string
- func CleanSyncPool(st *leveldbstorage.Storage) error
- func DecodeFrame[T any](encs *encoder.Encoders, enchint string, b []byte, v *T) error
- func EncodeFrame(enc encoder.Encoder, headers [][]byte, v interface{}) (marshaled, body []byte, _ error)
- func EncodeFrameState(enc encoder.Encoder, st base.State) ([]byte, error)
- func EncodeFrameSuffrageExpelOperation(enc encoder.Encoder, op base.SuffrageExpelOperation) ([]byte, error)
- func EncodeNoHeadersFrame(enc encoder.Encoder, v interface{}) ([]byte, error)
- func EncodeOneHeaderFrame(enc encoder.Encoder, header []byte, v interface{}) (marshaled, body []byte, _ error)
- func ReadDecodeFrame[T any](encs *encoder.Encoders, b []byte, v *T) error
- func ReadDecodeOneHeaderFrame[T any](encs *encoder.Encoders, b []byte, v *T) (header []byte, _ error)
- func ReadFrame(b []byte) (enchint string, headers [][]byte, body []byte, _ error)
- func ReadNoHeadersFrame(b []byte) ([]byte, error)
- func ReadOneHeaderFrame(b []byte) (enchint string, header, body []byte, _ error)
- func WriteFrameHeaderOperation(op base.Operation) ([]byte, error)
- type Center
- func (db *Center) BlockMap(height base.Height) (base.BlockMap, bool, error)
- func (db *Center) BlockMapBytes(height base.Height) (enchint string, meta, body []byte, found bool, err error)
- func (*Center) Close() error
- func (db *Center) ExistsInStateOperation(h util.Hash) (bool, error)
- func (db *Center) ExistsKnownOperation(h util.Hash) (bool, error)
- func (db *Center) LastBlockMap() (base.BlockMap, bool, error)
- func (db *Center) LastBlockMapBytes() (enchint string, meta, body []byte, found bool, err error)
- func (db *Center) LastNetworkPolicy() base.NetworkPolicy
- func (db *Center) LastSuffrageProof() (base.SuffrageProof, bool, error)
- func (db *Center) LastSuffrageProofBytes() (enchint string, meta, body []byte, found bool, lastheight base.Height, _ error)
- func (db *Center) MergeAllPermanent() error
- func (db *Center) MergeBlockWriteDatabase(w isaac.BlockWriteDatabase) error
- func (db *Center) NewBlockWriteDatabase(height base.Height) (isaac.BlockWriteDatabase, error)
- func (db *Center) RemoveBlocks(height base.Height) (bool, error)
- func (db *Center) SetLogging(l *logging.Logging) *logging.Logging
- func (db *Center) State(key string) (base.State, bool, error)
- func (db *Center) StateBytes(key string) (ht string, _, _ []byte, _ bool, _ error)
- func (db *Center) SuffrageProof(suffrageHeight base.Height) (base.SuffrageProof, bool, error)
- func (db *Center) SuffrageProofByBlockHeight(height base.Height) (base.SuffrageProof, bool, error)
- func (db *Center) SuffrageProofBytes(suffrageHeight base.Height) (enchint string, meta, body []byte, found bool, err error)
- type FrameHeaderPoolOperation
- type FrameHeaderSuffrageExpelOperation
- type LeveldbBlockWrite
- func (db *LeveldbBlockWrite) BlockMap() (base.BlockMap, error)
- func (db *LeveldbBlockWrite) BlockMapBytes() (enchint string, meta, body []byte, err error)
- func (db *LeveldbBlockWrite) Cancel() error
- func (db *LeveldbBlockWrite) Close() error
- func (db *LeveldbBlockWrite) NetworkPolicy() base.NetworkPolicy
- func (db LeveldbBlockWrite) Prefix() []byte
- func (db LeveldbBlockWrite) Remove() error
- func (db *LeveldbBlockWrite) SetBlockMap(m base.BlockMap) error
- func (db *LeveldbBlockWrite) SetOperations(ops []util.Hash) error
- func (db *LeveldbBlockWrite) SetStateCache(c util.GCache[string, [2]interface{}])
- func (db *LeveldbBlockWrite) SetStates(sts []base.State) error
- func (db *LeveldbBlockWrite) SetSuffrageProof(proof base.SuffrageProof) error
- func (db *LeveldbBlockWrite) SuffrageState() base.State
- func (db *LeveldbBlockWrite) TempDatabase() (isaac.TempDatabase, error)
- func (db *LeveldbBlockWrite) Write() error
- type LeveldbPermanent
- func (db *LeveldbPermanent) BlockMap(height base.Height) (m base.BlockMap, _ bool, _ error)
- func (db *LeveldbPermanent) BlockMapBytes(height base.Height) (enchint string, meta, body []byte, found bool, _ error)
- func (db *LeveldbPermanent) Clean() error
- func (db LeveldbPermanent) Close() error
- func (db *LeveldbPermanent) ExistsInStateOperation(h util.Hash) (bool, error)
- func (db *LeveldbPermanent) ExistsKnownOperation(h util.Hash) (bool, error)
- func (db LeveldbPermanent) LastBlockMap() (base.BlockMap, bool, error)
- func (db LeveldbPermanent) LastBlockMapBytes() (enchint string, meta, body []byte, found bool, err error)
- func (db LeveldbPermanent) LastNetworkPolicy() base.NetworkPolicy
- func (db LeveldbPermanent) LastSuffrageProof() (base.SuffrageProof, bool, error)
- func (db LeveldbPermanent) LastSuffrageProofBytes() (enchint string, meta, body []byte, found bool, err error)
- func (db *LeveldbPermanent) MergeTempDatabase(ctx context.Context, temp isaac.TempDatabase) error
- func (db LeveldbPermanent) Prefix() []byte
- func (db LeveldbPermanent) Remove() error
- func (db *LeveldbPermanent) State(key string) (st base.State, found bool, _ error)
- func (db *LeveldbPermanent) StateBytes(key string) (enchint string, meta, body []byte, found bool, err error)
- func (db *LeveldbPermanent) SuffrageProof(suffrageHeight base.Height) (proof base.SuffrageProof, found bool, _ error)
- func (db *LeveldbPermanent) SuffrageProofByBlockHeight(height base.Height) (proof base.SuffrageProof, found bool, _ error)
- func (db *LeveldbPermanent) SuffrageProofBytes(suffrageHeight base.Height) (enchint string, meta, body []byte, found bool, err error)
- type LeveldbTempSyncPool
- func (db *LeveldbTempSyncPool) BlockMap(height base.Height) (m base.BlockMap, found bool, _ error)
- func (db *LeveldbTempSyncPool) Cancel() error
- func (db LeveldbTempSyncPool) Close() error
- func (db LeveldbTempSyncPool) Prefix() []byte
- func (db LeveldbTempSyncPool) Remove() error
- func (db *LeveldbTempSyncPool) SetBlockMap(m base.BlockMap) error
- type MemTempSyncPool
- type RedisPermanent
- func (db *RedisPermanent) BlockMap(height base.Height) (m base.BlockMap, _ bool, _ error)
- func (db *RedisPermanent) BlockMapBytes(height base.Height) (enchint string, meta, body []byte, found bool, err error)
- func (db *RedisPermanent) Clean() error
- func (db *RedisPermanent) Close() error
- func (db *RedisPermanent) ExistsInStateOperation(h util.Hash) (bool, error)
- func (db *RedisPermanent) ExistsKnownOperation(h util.Hash) (bool, error)
- func (db RedisPermanent) LastBlockMap() (base.BlockMap, bool, error)
- func (db RedisPermanent) LastBlockMapBytes() (enchint string, meta, body []byte, found bool, err error)
- func (db RedisPermanent) LastNetworkPolicy() base.NetworkPolicy
- func (db RedisPermanent) LastSuffrageProof() (base.SuffrageProof, bool, error)
- func (db RedisPermanent) LastSuffrageProofBytes() (enchint string, meta, body []byte, found bool, err error)
- func (db *RedisPermanent) MergeTempDatabase(ctx context.Context, temp isaac.TempDatabase) error
- func (db *RedisPermanent) State(key string) (st base.State, found bool, _ error)
- func (db *RedisPermanent) StateBytes(key string) (enchint string, meta, body []byte, found bool, err error)
- func (db *RedisPermanent) SuffrageProof(suffrageHeight base.Height) (base.SuffrageProof, bool, error)
- func (db *RedisPermanent) SuffrageProofByBlockHeight(height base.Height) (base.SuffrageProof, bool, error)
- func (db *RedisPermanent) SuffrageProofBytes(suffrageHeight base.Height) (enchint string, meta, body []byte, found bool, err error)
- type TempLeveldb
- func (db *TempLeveldb) BlockMapBytes() (enchint string, meta, body []byte, _ error)
- func (db *TempLeveldb) Close() error
- func (db *TempLeveldb) ExistsInStateOperation(h util.Hash) (bool, error)
- func (db *TempLeveldb) ExistsKnownOperation(h util.Hash) (bool, error)
- func (db *TempLeveldb) Height() base.Height
- func (db *TempLeveldb) LastBlockMap() (base.BlockMap, bool, error)
- func (db *TempLeveldb) LastSuffrageProofBytes() (enchint string, meta, body []byte, found bool, err error)
- func (db *TempLeveldb) Merge() error
- func (db *TempLeveldb) NetworkPolicy() base.NetworkPolicy
- func (db TempLeveldb) Prefix() []byte
- func (db *TempLeveldb) Remove() error
- func (db *TempLeveldb) State(key string) (st base.State, found bool, err error)
- func (db *TempLeveldb) StateBytes(key string) (enchint string, meta, body []byte, found bool, err error)
- func (db *TempLeveldb) SuffrageHeight() base.Height
- func (db *TempLeveldb) SuffrageProof() (base.SuffrageProof, bool, error)
- type TempPool
- func (db *TempPool) AddEmptyHeight(height base.Height) (bool, error)
- func (db *TempPool) Ballot(point base.Point, stage base.Stage, isSuffrageConfirm bool) (base.Ballot, bool, error)
- func (db *TempPool) Close() error
- func (db *TempPool) EmptyHeights(f func(base.Height) error) error
- func (db *TempPool) LastVoteproofs() (base.INITVoteproof, base.ACCEPTVoteproof, bool, error)
- func (db *TempPool) Operation(_ context.Context, operationhash util.Hash) (op base.Operation, found bool, _ error)
- func (db *TempPool) OperationBytes(_ context.Context, operationhash util.Hash) (enchint string, meta, body []byte, found bool, _ error)
- func (db *TempPool) OperationHashes(ctx context.Context, height base.Height, limit uint64, ...) ([][2]util.Hash, error)
- func (db TempPool) Prefix() []byte
- func (db *TempPool) Proposal(h util.Hash) (pr base.ProposalSignFact, found bool, _ error)
- func (db *TempPool) ProposalByPoint(point base.Point, proposer base.Address, previousBlock util.Hash) (base.ProposalSignFact, bool, error)
- func (db *TempPool) ProposalBytes(h util.Hash) (enchint string, meta, body []byte, found bool, _ error)
- func (db TempPool) Remove() error
- func (db *TempPool) RemoveEmptyHeight(height base.Height) (bool, error)
- func (db *TempPool) RemoveSuffrageExpelOperationsByFact(facts []base.SuffrageExpelFact) error
- func (db *TempPool) RemoveSuffrageExpelOperationsByHeight(height base.Height) error
- func (db *TempPool) SetBallot(bl base.Ballot) (bool, error)
- func (db *TempPool) SetLastVoteproofs(ivp base.INITVoteproof, avp base.ACCEPTVoteproof) error
- func (db *TempPool) SetOperation(_ context.Context, op base.Operation) (bool, error)
- func (db *TempPool) SetProposal(pr base.ProposalSignFact) (bool, error)
- func (db *TempPool) SetSuffrageExpelOperation(op base.SuffrageExpelOperation) error
- func (db *TempPool) SuffrageExpelOperation(height base.Height, node base.Address) (base.SuffrageExpelOperation, bool, error)
- func (db *TempPool) TraverseOperationsBytes(ctx context.Context, offset []byte, ...) error
- func (db *TempPool) TraverseSuffrageExpelOperations(_ context.Context, height base.Height, callback isaac.SuffrageVoteFunc) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllLabelKeys ¶
func AllLabelKeys() map[leveldbstorage.KeyPrefix]string
func AllPrefixKeys ¶
func AllPrefixKeys() map[leveldbstorage.KeyPrefix]string
func CleanSyncPool ¶
func CleanSyncPool(st *leveldbstorage.Storage) error
func DecodeFrame ¶
func EncodeFrame ¶
func EncodeNoHeadersFrame ¶
func EncodeOneHeaderFrame ¶
func ReadNoHeadersFrame ¶
func ReadOneHeaderFrame ¶
Types ¶
type Center ¶
type Center struct { *logging.Logging *util.ContextDaemon // contains filtered or unexported fields }
func NewCenter ¶
func NewCenter( st *leveldbstorage.Storage, encs *encoder.Encoders, enc encoder.Encoder, perm isaac.PermanentDatabase, newBlockWriteDatabase func(base.Height) (isaac.BlockWriteDatabase, error), ) (*Center, error)
func (*Center) BlockMapBytes ¶
func (*Center) ExistsInStateOperation ¶
func (*Center) ExistsKnownOperation ¶
func (*Center) LastBlockMapBytes ¶
func (*Center) LastNetworkPolicy ¶
func (db *Center) LastNetworkPolicy() base.NetworkPolicy
func (*Center) LastSuffrageProof ¶
func (db *Center) LastSuffrageProof() (base.SuffrageProof, bool, error)
func (*Center) LastSuffrageProofBytes ¶
func (*Center) MergeAllPermanent ¶
func (*Center) MergeBlockWriteDatabase ¶
func (db *Center) MergeBlockWriteDatabase(w isaac.BlockWriteDatabase) error
func (*Center) NewBlockWriteDatabase ¶
func (*Center) RemoveBlocks ¶
RemoveBlocks removes temp databases over height including height.
func (*Center) StateBytes ¶
func (*Center) SuffrageProof ¶
func (*Center) SuffrageProofByBlockHeight ¶
type FrameHeaderPoolOperation ¶
type FrameHeaderPoolOperation struct {
// contains filtered or unexported fields
}
func ReadFrameHeaderOperation ¶
func ReadFrameHeaderOperation(b []byte) (header FrameHeaderPoolOperation, _ error)
func (FrameHeaderPoolOperation) AddedAt ¶
func (h FrameHeaderPoolOperation) AddedAt() time.Time
func (FrameHeaderPoolOperation) Fact ¶
func (h FrameHeaderPoolOperation) Fact() util.Hash
func (FrameHeaderPoolOperation) Hint ¶
func (h FrameHeaderPoolOperation) Hint() hint.Hint
func (FrameHeaderPoolOperation) Operation ¶
func (h FrameHeaderPoolOperation) Operation() util.Hash
func (FrameHeaderPoolOperation) Version ¶
func (h FrameHeaderPoolOperation) Version() [2]byte
type FrameHeaderSuffrageExpelOperation ¶
type FrameHeaderSuffrageExpelOperation struct {
// contains filtered or unexported fields
}
func ReadFrameHeaderSuffrageExpelOperation ¶
func ReadFrameHeaderSuffrageExpelOperation(b []byte) ( enchint string, r FrameHeaderSuffrageExpelOperation, left []byte, _ error, )
func (FrameHeaderSuffrageExpelOperation) End ¶
func (r FrameHeaderSuffrageExpelOperation) End() int64
func (FrameHeaderSuffrageExpelOperation) Node ¶
func (r FrameHeaderSuffrageExpelOperation) Node() []byte
func (FrameHeaderSuffrageExpelOperation) Start ¶
func (r FrameHeaderSuffrageExpelOperation) Start() int64
type LeveldbBlockWrite ¶
type LeveldbBlockWrite struct {
// contains filtered or unexported fields
}
func NewLeveldbBlockWrite ¶
func NewLeveldbBlockWrite( height base.Height, st *leveldbstorage.Storage, encs *encoder.Encoders, enc encoder.Encoder, ) *LeveldbBlockWrite
func (*LeveldbBlockWrite) BlockMapBytes ¶
func (db *LeveldbBlockWrite) BlockMapBytes() (enchint string, meta, body []byte, err error)
func (*LeveldbBlockWrite) Cancel ¶
func (db *LeveldbBlockWrite) Cancel() error
func (*LeveldbBlockWrite) Close ¶
func (db *LeveldbBlockWrite) Close() error
func (*LeveldbBlockWrite) NetworkPolicy ¶
func (db *LeveldbBlockWrite) NetworkPolicy() base.NetworkPolicy
func (*LeveldbBlockWrite) SetBlockMap ¶
func (db *LeveldbBlockWrite) SetBlockMap(m base.BlockMap) error
func (*LeveldbBlockWrite) SetOperations ¶
func (db *LeveldbBlockWrite) SetOperations(ops []util.Hash) error
func (*LeveldbBlockWrite) SetStateCache ¶
func (db *LeveldbBlockWrite) SetStateCache(c util.GCache[string, [2]interface{}])
func (*LeveldbBlockWrite) SetStates ¶
func (db *LeveldbBlockWrite) SetStates(sts []base.State) error
func (*LeveldbBlockWrite) SetSuffrageProof ¶
func (db *LeveldbBlockWrite) SetSuffrageProof(proof base.SuffrageProof) error
func (*LeveldbBlockWrite) SuffrageState ¶
func (db *LeveldbBlockWrite) SuffrageState() base.State
func (*LeveldbBlockWrite) TempDatabase ¶
func (db *LeveldbBlockWrite) TempDatabase() (isaac.TempDatabase, error)
func (*LeveldbBlockWrite) Write ¶
func (db *LeveldbBlockWrite) Write() error
type LeveldbPermanent ¶
func NewLeveldbPermanent ¶
func NewLeveldbPermanent( st *leveldbstorage.Storage, encs *encoder.Encoders, enc encoder.Encoder, stcachesize int, ) (*LeveldbPermanent, error)
func (*LeveldbPermanent) BlockMapBytes ¶
func (*LeveldbPermanent) Clean ¶
func (db *LeveldbPermanent) Clean() error
func (*LeveldbPermanent) ExistsInStateOperation ¶
func (db *LeveldbPermanent) ExistsInStateOperation(h util.Hash) (bool, error)
func (*LeveldbPermanent) ExistsKnownOperation ¶
func (db *LeveldbPermanent) ExistsKnownOperation(h util.Hash) (bool, error)
func (LeveldbPermanent) LastBlockMap ¶
func (LeveldbPermanent) LastBlockMapBytes ¶
func (LeveldbPermanent) LastNetworkPolicy ¶
func (db LeveldbPermanent) LastNetworkPolicy() base.NetworkPolicy
func (LeveldbPermanent) LastSuffrageProof ¶
func (db LeveldbPermanent) LastSuffrageProof() (base.SuffrageProof, bool, error)
func (LeveldbPermanent) LastSuffrageProofBytes ¶
func (*LeveldbPermanent) MergeTempDatabase ¶
func (db *LeveldbPermanent) MergeTempDatabase(ctx context.Context, temp isaac.TempDatabase) error
func (*LeveldbPermanent) StateBytes ¶
func (*LeveldbPermanent) SuffrageProof ¶
func (db *LeveldbPermanent) SuffrageProof(suffrageHeight base.Height) (proof base.SuffrageProof, found bool, _ error)
func (*LeveldbPermanent) SuffrageProofByBlockHeight ¶
func (db *LeveldbPermanent) SuffrageProofByBlockHeight(height base.Height) ( proof base.SuffrageProof, found bool, _ error, )
func (*LeveldbPermanent) SuffrageProofBytes ¶
type LeveldbTempSyncPool ¶
type LeveldbTempSyncPool struct {
// contains filtered or unexported fields
}
func NewLeveldbTempSyncPool ¶
func NewLeveldbTempSyncPool( height base.Height, st *leveldbstorage.Storage, enc encoder.Encoder, ) (*LeveldbTempSyncPool, error)
func (*LeveldbTempSyncPool) Cancel ¶
func (db *LeveldbTempSyncPool) Cancel() error
func (*LeveldbTempSyncPool) SetBlockMap ¶
func (db *LeveldbTempSyncPool) SetBlockMap(m base.BlockMap) error
type MemTempSyncPool ¶
type MemTempSyncPool struct {
// contains filtered or unexported fields
}
func NewMemTempSyncPool ¶
func NewMemTempSyncPool() *MemTempSyncPool
func (*MemTempSyncPool) Cancel ¶
func (db *MemTempSyncPool) Cancel() error
func (*MemTempSyncPool) Close ¶
func (db *MemTempSyncPool) Close() error
func (*MemTempSyncPool) SetBlockMap ¶
func (db *MemTempSyncPool) SetBlockMap(m base.BlockMap) error
type RedisPermanent ¶
func NewRedisPermanent ¶
func NewRedisPermanent( st *redisstorage.Storage, encs *encoder.Encoders, enc encoder.Encoder, stcachesize int, ) (*RedisPermanent, error)
func (*RedisPermanent) BlockMapBytes ¶
func (*RedisPermanent) Clean ¶
func (db *RedisPermanent) Clean() error
func (*RedisPermanent) Close ¶
func (db *RedisPermanent) Close() error
func (*RedisPermanent) ExistsInStateOperation ¶
func (db *RedisPermanent) ExistsInStateOperation(h util.Hash) (bool, error)
func (*RedisPermanent) ExistsKnownOperation ¶
func (db *RedisPermanent) ExistsKnownOperation(h util.Hash) (bool, error)
func (RedisPermanent) LastBlockMap ¶
func (RedisPermanent) LastBlockMapBytes ¶
func (RedisPermanent) LastNetworkPolicy ¶
func (db RedisPermanent) LastNetworkPolicy() base.NetworkPolicy
func (RedisPermanent) LastSuffrageProof ¶
func (db RedisPermanent) LastSuffrageProof() (base.SuffrageProof, bool, error)
func (RedisPermanent) LastSuffrageProofBytes ¶
func (*RedisPermanent) MergeTempDatabase ¶
func (db *RedisPermanent) MergeTempDatabase(ctx context.Context, temp isaac.TempDatabase) error
func (*RedisPermanent) StateBytes ¶
func (*RedisPermanent) SuffrageProof ¶
func (db *RedisPermanent) SuffrageProof(suffrageHeight base.Height) (base.SuffrageProof, bool, error)
func (*RedisPermanent) SuffrageProofByBlockHeight ¶
func (db *RedisPermanent) SuffrageProofByBlockHeight(height base.Height) (base.SuffrageProof, bool, error)
func (*RedisPermanent) SuffrageProofBytes ¶
type TempLeveldb ¶
type TempLeveldb struct {
// contains filtered or unexported fields
}
func NewTempLeveldbFromPrefix ¶
func NewTempLeveldbFromPrefix( st *leveldbstorage.Storage, prefix []byte, encs *encoder.Encoders, enc encoder.Encoder, ) (*TempLeveldb, error)
func (*TempLeveldb) BlockMapBytes ¶
func (db *TempLeveldb) BlockMapBytes() (enchint string, meta, body []byte, _ error)
func (*TempLeveldb) Close ¶
func (db *TempLeveldb) Close() error
func (*TempLeveldb) ExistsInStateOperation ¶
func (db *TempLeveldb) ExistsInStateOperation(h util.Hash) (bool, error)
func (*TempLeveldb) ExistsKnownOperation ¶
func (db *TempLeveldb) ExistsKnownOperation(h util.Hash) (bool, error)
func (*TempLeveldb) Height ¶
func (db *TempLeveldb) Height() base.Height
func (*TempLeveldb) LastBlockMap ¶
func (db *TempLeveldb) LastBlockMap() (base.BlockMap, bool, error)
func (*TempLeveldb) LastSuffrageProofBytes ¶
func (db *TempLeveldb) LastSuffrageProofBytes() (enchint string, meta, body []byte, found bool, err error)
func (*TempLeveldb) Merge ¶
func (db *TempLeveldb) Merge() error
func (*TempLeveldb) NetworkPolicy ¶
func (db *TempLeveldb) NetworkPolicy() base.NetworkPolicy
func (*TempLeveldb) Remove ¶
func (db *TempLeveldb) Remove() error
func (*TempLeveldb) StateBytes ¶
func (*TempLeveldb) SuffrageHeight ¶
func (db *TempLeveldb) SuffrageHeight() base.Height
func (*TempLeveldb) SuffrageProof ¶
func (db *TempLeveldb) SuffrageProof() (base.SuffrageProof, bool, error)
type TempPool ¶
type TempPool struct { *util.ContextDaemon // contains filtered or unexported fields }
func NewTempPool ¶
func (*TempPool) AddEmptyHeight ¶
func (*TempPool) LastVoteproofs ¶
func (db *TempPool) LastVoteproofs() (base.INITVoteproof, base.ACCEPTVoteproof, bool, error)
func (*TempPool) OperationBytes ¶
func (*TempPool) OperationHashes ¶
func (*TempPool) ProposalByPoint ¶
func (*TempPool) ProposalBytes ¶
func (*TempPool) RemoveEmptyHeight ¶
func (*TempPool) RemoveSuffrageExpelOperationsByFact ¶
func (db *TempPool) RemoveSuffrageExpelOperationsByFact(facts []base.SuffrageExpelFact) error
func (*TempPool) RemoveSuffrageExpelOperationsByHeight ¶
func (*TempPool) SetLastVoteproofs ¶
func (db *TempPool) SetLastVoteproofs(ivp base.INITVoteproof, avp base.ACCEPTVoteproof) error
func (*TempPool) SetOperation ¶
func (*TempPool) SetProposal ¶
func (db *TempPool) SetProposal(pr base.ProposalSignFact) (bool, error)
func (*TempPool) SetSuffrageExpelOperation ¶
func (db *TempPool) SetSuffrageExpelOperation(op base.SuffrageExpelOperation) error
func (*TempPool) SuffrageExpelOperation ¶
func (*TempPool) TraverseOperationsBytes ¶
func (*TempPool) TraverseSuffrageExpelOperations ¶
Click to show internal directories.
Click to hide internal directories.