Versions in this module Expand all Collapse all v0 v0.1.0 Feb 15, 2016 Changes in this version + type Listener interface + Completed func(uint64, []byte, []*protos.PeerID, interface{}) + Errored func(uint64, []byte, []*protos.PeerID, interface{}, error) + Initiated func() + type ProtoListener struct + CompletedImpl func(uint64, []byte, []*protos.PeerID, interface{}) + ErroredImpl func(uint64, []byte, []*protos.PeerID, interface{}, error) + InitiatedImpl func() + func (pstl *ProtoListener) Completed(bn uint64, bh []byte, pids []*protos.PeerID, m interface{}) + func (pstl *ProtoListener) Errored(bn uint64, bh []byte, pids []*protos.PeerID, m interface{}, e error) + func (pstl *ProtoListener) Initiated() + type StateTransferState struct + BlockRequestTimeout time.Duration + RecoverDamage bool + StateDeltaRequestTimeout time.Duration + StateSnapshotRequestTimeout time.Duration + func NewStateTransferState(id *protos.PeerID, config *viper.Viper, ledger consensus.LedgerStack, ...) *StateTransferState + func ThreadlessNewStateTransferState(id *protos.PeerID, config *viper.Viper, ledger consensus.LedgerStack, ...) *StateTransferState + func (sts *StateTransferState) AddTarget(blockNumber uint64, blockHash []byte, peerIDs []*protos.PeerID, ...) + func (sts *StateTransferState) BlockingAddTarget(blockNumber uint64, blockHash []byte, peerIDs []*protos.PeerID) error + func (sts *StateTransferState) BlockingUntilSuccessAddTarget(blockNumber uint64, blockHash []byte, peerIDs []*protos.PeerID) + func (sts *StateTransferState) CompletionChannel() chan struct{} + func (sts *StateTransferState) InProgress() bool + func (sts *StateTransferState) Initiate(peerIDs []*protos.PeerID) + func (sts *StateTransferState) InvalidateState() + func (sts *StateTransferState) RegisterListener(listener Listener) + func (sts *StateTransferState) Stop() + func (sts *StateTransferState) UnregisterListener(listener Listener) + func (sts *StateTransferState) VerifyAndRecoverBlockchain() bool + type StateTransferUpdate int + const Completed + const Errored + const Initiated