Documentation ¶
Index ¶
- type AccountBlocks
- type GetAccountBlocks
- type GetHashHeightList
- type GetSnapshotBlocks
- type HashHeightPoint
- type HashHeightPointList
- type NewAccountBlock
- type NewSnapshotBlock
- type SnapshotBlocks
- type Trace
- func (*Trace) Descriptor() ([]byte, []int)
- func (m *Trace) GetHash() []byte
- func (m *Trace) GetPath() []string
- func (m *Trace) GetTTL() uint32
- func (*Trace) ProtoMessage()
- func (m *Trace) Reset()
- func (m *Trace) String() string
- func (m *Trace) XXX_DiscardUnknown()
- func (m *Trace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Trace) XXX_Merge(src proto.Message)
- func (m *Trace) XXX_Size() int
- func (m *Trace) XXX_Unmarshal(b []byte) error
- type Tracer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountBlocks ¶
type AccountBlocks struct { Blocks []*ledger.AccountBlock TTL int32 }
AccountBlocks is batch of account blocks
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 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 GetHashHeightList ¶
type GetHashHeightList struct { From []*ledger.HashHeight // from high to low Step uint64 To uint64 }
func (*GetHashHeightList) Deserialize ¶
func (c *GetHashHeightList) Deserialize(data []byte) (err error)
func (*GetHashHeightList) Serialize ¶
func (c *GetHashHeightList) Serialize() ([]byte, error)
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 HashHeightPoint ¶
type HashHeightPoint struct { ledger.HashHeight Size uint64 }
func (*HashHeightPoint) DeProto ¶
func (p *HashHeightPoint) DeProto(pb *vitepb.HashHeightPoint) (err error)
func (*HashHeightPoint) Proto ¶
func (p *HashHeightPoint) Proto() *vitepb.HashHeightPoint
type HashHeightPointList ¶
type HashHeightPointList struct {
Points []*HashHeightPoint // from low to high
}
func (*HashHeightPointList) Deserialize ¶
func (c *HashHeightPointList) Deserialize(data []byte) (err error)
func (*HashHeightPointList) Serialize ¶
func (c *HashHeightPointList) Serialize() ([]byte, error)
type NewAccountBlock ¶
type NewAccountBlock struct { Block *ledger.AccountBlock TTL int32 }
NewAccountBlock is use to propagate block, stop propagate when TTL is decrease to zero
func (*NewAccountBlock) Deserialize ¶
func (b *NewAccountBlock) Deserialize(buf []byte) error
func (*NewAccountBlock) Serialize ¶
func (b *NewAccountBlock) Serialize() ([]byte, error)
type NewSnapshotBlock ¶
type NewSnapshotBlock struct { Block *ledger.SnapshotBlock TTL int32 }
NewSnapshotBlock is use to propagate block, stop propagate when TTL is decrease to zero
func (*NewSnapshotBlock) Deserialize ¶
func (b *NewSnapshotBlock) Deserialize(buf []byte) error
func (*NewSnapshotBlock) Serialize ¶
func (b *NewSnapshotBlock) Serialize() ([]byte, error)
type SnapshotBlocks ¶
type SnapshotBlocks struct {
Blocks []*ledger.SnapshotBlock
}
SnapshotBlocks is batch of snapshot blocks
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 Trace ¶
type Trace struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Path []string `protobuf:"bytes,2,rep,name=path,proto3" json:"path,omitempty"` TTL uint32 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Trace) Descriptor ¶
func (*Trace) ProtoMessage ¶
func (*Trace) ProtoMessage()
func (*Trace) XXX_DiscardUnknown ¶
func (m *Trace) XXX_DiscardUnknown()
func (*Trace) XXX_Marshal ¶
func (*Trace) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.