Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountBlocks ¶
type AccountBlocks struct {
Blocks []*ledger.AccountBlock
}
func (*AccountBlocks) Deserialize ¶
func (a *AccountBlocks) Deserialize(buf []byte) error
func (*AccountBlocks) Serialize ¶
func (a *AccountBlocks) Serialize() ([]byte, error)
func (*AccountBlocks) String ¶
func (a *AccountBlocks) String() string
type Exception ¶
type Exception uint64
const ( Missing Exception = iota // I don`t have the resource you requested Canceled // the request have been canceled Unsolicited // the request must have pre-checked Blocked // you have been blocked RepetitiveHandshake // handshake should happen only once, as the first msg Connected // you have been connected with me DifferentNet UnMatchedMsgVersion UnIdenticalGenesis FileTransDone )
type FileList ¶
type FileList struct { Files []*ledger.CompressedFileMeta Chunks [][2]uint64 // because files don`t contain the latest snapshotblocks Nonce uint64 // use only once }
@section FileList
type GetAccountBlocks ¶
type GetAccountBlocks struct { Address types.Address From ledger.HashHeight Count uint64 Forward bool }
func (*GetAccountBlocks) Deserialize ¶
func (b *GetAccountBlocks) Deserialize(buf []byte) error
func (*GetAccountBlocks) Serialize ¶
func (b *GetAccountBlocks) Serialize() ([]byte, error)
func (*GetAccountBlocks) String ¶
func (b *GetAccountBlocks) String() string
type GetFiles ¶
type GetSnapshotBlocks ¶
type GetSnapshotBlocks struct { From ledger.HashHeight Count uint64 Forward bool }
func (*GetSnapshotBlocks) Deserialize ¶
func (b *GetSnapshotBlocks) Deserialize(buf []byte) error
func (*GetSnapshotBlocks) Serialize ¶
func (b *GetSnapshotBlocks) Serialize() ([]byte, error)
func (*GetSnapshotBlocks) String ¶
func (b *GetSnapshotBlocks) String() string
type GetSubLedger ¶
type GetSubLedger = GetSnapshotBlocks
@section GetSubLedger response consist of fileList and chunk
type HandShake ¶
type SnapshotBlocks ¶
type SnapshotBlocks struct {
Blocks []*ledger.SnapshotBlock
}
func (*SnapshotBlocks) Deserialize ¶
func (b *SnapshotBlocks) Deserialize(buf []byte) error
func (*SnapshotBlocks) Serialize ¶
func (b *SnapshotBlocks) Serialize() ([]byte, error)
func (*SnapshotBlocks) String ¶
func (b *SnapshotBlocks) String() string
type SubLedger ¶
type SubLedger struct { SBlocks []*ledger.SnapshotBlock ABlocks []*ledger.AccountBlock AblockNum uint64 }
Click to show internal directories.
Click to hide internal directories.