github.com/aergoio/aergo@v1.3.1/message/syncermsg.go (about) 1 package message 2 3 import ( 4 "github.com/aergoio/aergo/types" 5 ) 6 7 const SyncerSvc = "SyncerSvc" 8 9 //Syncer 10 type SyncStart struct { 11 PeerID types.PeerID 12 TargetNo types.BlockNo 13 NotifyC chan error 14 } 15 16 type FinderResult struct { 17 Seq uint64 18 Ancestor *types.BlockInfo 19 Err error 20 } 21 22 //HashDownloader 23 type SyncStop struct { 24 Seq uint64 25 FromWho string 26 Err error 27 } 28 29 type CloseFetcher struct { 30 Seq uint64 31 FromWho string 32 }