You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
389 B
14 lines
389 B
6 years ago
|
package syncing
|
||
|
|
||
|
import (
|
||
6 years ago
|
"github.com/harmony-one/harmony/core"
|
||
6 years ago
|
"github.com/harmony-one/harmony/p2p"
|
||
|
)
|
||
|
|
||
6 years ago
|
// StateSyncInterface is the interface to do state-sync.
|
||
6 years ago
|
type StateSyncInterface interface {
|
||
6 years ago
|
// Syncing blockchain from other peers.
|
||
|
// The returned channel is the signal of syncing finish.
|
||
6 years ago
|
ProcessStateSyncFromPeers(peers []p2p.Peer, bc *core.BlockChain) (chan struct{}, error)
|
||
6 years ago
|
}
|