Documentation ¶
Index ¶
- Constants
- func PeerIDToKey(p module.PeerID) string
- type Callback
- type Manager
- func (m *Manager) AddRequest(id db.BucketID, key []byte) error
- func (m *Manager) NewSyncer(ah, prh, nrh, vh, ed []byte, noBuffer bool) Syncer
- func (m *Manager) OnJoin(id module.PeerID)
- func (m *Manager) OnLeave(id module.PeerID)
- func (m *Manager) OnReceive(pi module.ProtocolInfo, b []byte, id module.PeerID) (bool, error)
- func (m *Manager) SetSyncHandler(sh SyncerImpl, on bool)
- func (m *Manager) Start()
- func (m *Manager) Term()
- type Platform
- type Result
- type Syncer
- type SyncerImpl
Constants ¶
View Source
const ( DataRequestEntryLimit = 20 DataRequestNodeLimit = 3 DataRequestNodeInterval = time.Millisecond * 300 DataRequestRoundInterval = time.Second * 3 )
View Source
const ( NoError errCode = iota ErrTimeExpired ErrNoData )
Variables ¶
This section is empty.
Functions ¶
func PeerIDToKey ¶ added in v1.2.9
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewSyncManager ¶
func (*Manager) AddRequest ¶ added in v1.2.9
func (*Manager) SetSyncHandler ¶ added in v1.2.9
func (m *Manager) SetSyncHandler(sh SyncerImpl, on bool)
type Platform ¶ added in v0.9.1
type Platform interface {
NewExtensionWithBuilder(builder merkle.Builder, raw []byte) state.ExtensionSnapshot
}
type Result ¶
type Result struct { Wss state.WorldSnapshot PatchReceipts module.ReceiptList NormalReceipts module.ReceiptList }
type SyncerImpl ¶ added in v1.2.9
type SyncerImpl interface {
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.