func (s *server) SubmitTransaction(ctx context.Context, tx *pb.SubmitTransactionRequest) (*empty.Empty, error) {
	if r, found := s.relayers[tx.ShardID]; found {
		err := r.GetMempool().Add(tx.Transaction.TransactionData)
		return &empty.Empty{}, err
	}
	return nil, fmt.Errorf("not tracking shard %d", tx.ShardID)
}
// SubmitTransaction submits a transaction to the relayer.
SubmitTransaction submits a transaction to the relayer.
// SubmitTransaction submits a transaction to the relayer .
func (s *server) SubmitTransaction(ctx context.Context, tx *pb.SubmitTransactionRequest) (*empty.Empty, error) {
	if r, found := s.relayers[tx.ShardID]; found {
		err := r.GetMempool().Add(tx.Transaction.TransactionData)
		return &empty.Empty{}, err
	}
	return nil, fmt.Errorf("not tracking shard %d", tx.ShardID)
}
func ( s * server ) SubmitTransaction ( ctx context . Context , tx * pb . SubmitTransactionRequest ) ( * empty . Empty , error ) { if r , found := s . relayers [ tx . ShardID ] ; found { err := r . GetMempool ( ) . Add ( tx . Transaction . TransactionData ) return & empty . Empty { } , err } return nil , fmt . Errorf ( " " , tx . ShardID ) }
SubmitTransaction submits a transaction to the relayer.
SubmitTransaction submits a transaction to the relayer .