Documentation ¶
Index ¶
- func Run(bc BlockChain)
- func SortOutStats(db serodb.Database, outs []*OutState)
- func UpdateOutStat(db serodb.Database, out *OutState)
- type BlockChain
- type OutStatWrap
- type OutState
- type OutStats
- type Pkg
- type State
- func (self *State) Finalize(saveName string, num uint64)
- func (state *State) GetOut(root *keys.Uint256) (src *OutState, e error)
- func (self *State) GetOuts(tk *keys.Uint512) (outs []*OutState, e error)
- func (state *State) GetPkgs(tk *keys.Uint512, is_from bool) (ret []*Pkg)
- func (state *State) UpdateWitness(tks []keys.Uint512, num uint64, block *localdb.Block)
- type StateData
- type StateDataGet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(bc BlockChain)
func SortOutStats ¶
func UpdateOutStat ¶
Types ¶
type BlockChain ¶
type BlockChain interface { GetCurrenHeader() *types.Header GetHeader(hash *common.Hash) *types.Header NewState(hash *common.Hash) *zstate.ZState GetTks() []keys.Uint512 CashChose() *atomic.Value GetDB() serodb.Database }
func BC ¶
func BC() BlockChain
type OutStatWrap ¶
type OutStatWrap struct {
// contains filtered or unexported fields
}
type OutState ¶
type OutStats ¶
type OutStats []OutStatWrap
type State ¶
type State struct { State *zstate.ZState G2outs map[keys.Uint256]*OutState G2wouts []keys.Uint256 G2pkgs_from map[keys.Uint256]*Pkg G2pkgs_to map[keys.Uint256]*Pkg // contains filtered or unexported fields }
func CurrentState1 ¶
func CurrentState1() *State
type StateDataGet ¶
type StateDataGet struct {
// contains filtered or unexported fields
}
func (*StateDataGet) Unserial ¶
func (self *StateDataGet) Unserial(v []byte)
Click to show internal directories.
Click to hide internal directories.