Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWalletHeight ¶
func GetWalletHeight() uint64
GetWalletHeight return wallet on current height
Types ¶
type StatusInfo ¶
StatusInfo is base valid block info to handle orphan block rollback
type Wallet ¶
type Wallet struct { DB db.DB Ind *query.Indexer StatusInfo // contains filtered or unexported fields }
Wallet is related to storing account unspent outputs
var GlobalWallet Wallet
GlobalWallet for sourceReserve heightFn
func InitWallet ¶
InitWallet return a new wallet instance
func (*Wallet) GetWalletInfo ¶
func (w *Wallet) GetWalletInfo() (StatusInfo, error)
GetWalletInfo return stored wallet info and nil,if error, return initial wallet info and err
func (*Wallet) WalletUpdate ¶
WalletUpdate process every valid block and reverse every invalid block which need to rollback
Click to show internal directories.
Click to hide internal directories.