Documentation
¶
Index ¶
- type Address
- type Conn
- type CreateConnF
- type IAccount
- type IActStatus
- type IBlock
- type IBlocks
- type IBody
- type ICandidate
- type ICandidates
- type IHeader
- type IMessage
- type IMessageBody
- type IMessageHeader
- type IMessageIndex
- type IRlpBlock
- type IRlpHeader
- type IRlpMessage
- type ISignature
- type IToken
- type ITokenStatus
- type Local
- type Peer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IAccount ¶
type IAccount interface {
NeedUpdate() bool
UpdateLocked(confirmed uint64) error
FromMessage(msg IMessage, height uint64) error
ToMessage(msg IMessage, height uint64) error
EaterMessage(msg IMessage, height uint64) error
Check(msg IMessage, strict bool) error
Bytes() []byte
GetAddress() arry.Address
GetBalance(tokenAddr arry.Address) uint64
}
type IActStatus ¶
type IActStatus interface {
Nonce(arry.Address) uint64
SetTrieRoot(hash arry.Hash) error
TrieRoot() arry.Hash
SetConfirmed(confirmed uint64)
Account(address arry.Address) IAccount
CheckMessage(msg IMessage, strict bool) error
FromMessage(msg IMessage, height uint64) error
ToMessage(msg IMessage, height uint64) error
Commit() (arry.Hash, error)
}
type ICandidate ¶
type ICandidates ¶
type ICandidates interface {
Len() int
List() []ICandidate
Get(int) ICandidate
GetPreHash() arry.Hash
}
type IHeader ¶
type IHeader interface {
GetHash() arry.Hash
GetPreHash() arry.Hash
GetMsgRoot() arry.Hash
GetActRoot() arry.Hash
GetDPosRoot() arry.Hash
GetTokenRoot() arry.Hash
GetSigner() arry.Address
GetSignature() ISignature
GetHeight() uint64
GetTime() uint64
GetCycle() uint64
ToRlpHeader() IRlpHeader
Bytes() []byte
}
type IMessage ¶
type IMessage interface {
IMessageHeader
MsgBody() IMessageBody
ToRlp() IRlpMessage
Check() error
}
type IMessageBody ¶
type IMessageHeader ¶
type IMessageIndex ¶
type IMessageIndex interface {
GetHeight() uint64
}
type IRlpHeader ¶
type IRlpHeader interface {
Bytes() []byte
}
type IRlpMessage ¶
type IRlpMessage interface {
Bytes() []byte
}
type ISignature ¶
type ITokenStatus ¶
type Local ¶
type Local struct {
// Node version
Version string `json:"version"`
// Node network
Network string `json:"network"`
// Node p2p id
Peer string `json:"peer"`
// Node p2p address
Address string `json:"address"`
// Linked node
Connections uint32 `json:"connections"`
// Pool message
Messages uint32 `json:"messages"`
// Current block height
Height uint64 `json:"height"`
// Current effective block height
Confirmed uint64 `json:"confirmed"`
}
Click to show internal directories.
Click to hide internal directories.