func NewShardSyncManager(hn *p2p.HostNode, manager *ShardManager, shardID uint64) (*ShardSyncManager, error) {

	sm := &ShardSyncManager{
		hostNode: hn,
		manager:  manager,
		shardID:  shardID,
	}

	manager.RegisterNotifee(sm)

	if err := sm.registerP2P(); err != nil {
		return nil, err
	}

	return sm, nil
}
// NewShardSyncManager creates a new shard sync manager.
NewShardSyncManager creates a new shard sync manager.
// NewShardSyncManager creates a new shard sync manager .
func NewShardSyncManager(hn *p2p.HostNode, manager *ShardManager, shardID uint64) (*ShardSyncManager, error) {
	sm := &ShardSyncManager{
		hostNode: hn,
		manager:  manager,
		shardID:  shardID,
	}
	manager.RegisterNotifee(sm)
	if err := sm.registerP2P(); err != nil {
		return nil, err
	}
	return sm, nil
}
func NewShardSyncManager ( hn * p2p . HostNode , manager * ShardManager , shardID uint64 ) ( * ShardSyncManager , error ) { sm := & ShardSyncManager { hostNode : hn , manager : manager , shardID : shardID , } manager . RegisterNotifee ( sm ) if err := sm . registerP2P ( ) ; err != nil { return nil , err } return sm , nil }
NewShardSyncManager creates a new shard sync manager.
NewShardSyncManager creates a new shard sync manager .