func NewRelayerSyncManager(hostNode *p2p.HostNode, mempool *mempool.ShardMempool, shardNumber uint64) (*RelayerSyncManager, error) {
	r := &RelayerSyncManager{
		hostNode:    hostNode,
		mempool:     mempool,
		shardNumber: shardNumber,
	}
	if err := r.registerP2P(); err != nil {
		return nil, err
	}
	return r, nil
}
// NewRelayerSyncManager constructs a new relayer sync manager.
NewRelayerSyncManager constructs a new relayer sync manager.
// NewRelayerSyncManager constructs a new relayer sync manager .
func NewRelayerSyncManager(hostNode *p2p.HostNode, mempool *mempool.ShardMempool, shardNumber uint64) (*RelayerSyncManager, error) {
	r := &RelayerSyncManager{
		hostNode:    hostNode,
		mempool:     mempool,
		shardNumber: shardNumber,
	}
	if err := r.registerP2P(); err != nil {
		return nil, err
	}
	return r, nil
}
func NewRelayerSyncManager ( hostNode * p2p . HostNode , mempool * mempool . ShardMempool , shardNumber uint64 ) ( * RelayerSyncManager , error ) { r := & RelayerSyncManager { hostNode : hostNode , mempool : mempool , shardNumber : shardNumber , } if err := r . registerP2P ( ) ; err != nil { return nil , err } return r , nil }
NewRelayerSyncManager constructs a new relayer sync manager.
NewRelayerSyncManager constructs a new relayer sync manager .