Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
type Fetcher interface {
FetchAccount(address common.Address, hash common.HashHeight, prevCnt uint64)
FetchSnapshot(hash common.HashHeight, prevCnt uint64)
Fetch(request face.FetchRequest)
}
type Handlers ¶
type Handlers interface {
RegisterHandler(MsgHandler)
UnRegisterHandler(MsgHandler)
}
type MsgHandler ¶
type MsgHandler interface {
Handle(common.NetMsgType, []byte, p2p.Peer)
Types() []common.NetMsgType
Id() string
}
type RetryStatus ¶
type RetryStatus struct {
// contains filtered or unexported fields
}
type Sender ¶
type Sender interface {
// when new block create
BroadcastAccountBlocks(common.Address, []*common.AccountStateBlock) error
BroadcastSnapshotBlocks([]*common.SnapshotBlock) error
// when fetch block message be arrived
SendAccountBlocks(common.Address, []*common.AccountStateBlock, p2p.Peer) error
SendSnapshotBlocks([]*common.SnapshotBlock, p2p.Peer) error
SendAccountHashes(common.Address, []common.HashHeight, p2p.Peer) error
SendSnapshotHashes([]common.HashHeight, p2p.Peer) error
RequestAccountHash(common.Address, common.HashHeight, uint64) error
RequestSnapshotHash(common.HashHeight, uint64) error
RequestAccountBlocks(common.Address, []common.HashHeight) error
RequestSnapshotBlocks([]common.HashHeight) error
}
Source Files
¶
- fetcher.go
- handler_account_blocks.go
- handler_account_hash.go
- handler_reqs.go
- handler_snapshot_blocks.go
- handler_snapshot_hash.go
- receiver.go
- sender.go
- state.go
- syncer.go
- types.go
Click to show internal directories.
Click to hide internal directories.