Ejemplo n.º 1
0
        public string StartTransaction(AgentId clientId, params Transfer[] transfers)
        {
            if (!Verify(transfers))
            {
                return(null);
            }
            var transactionKey = _transactionFactory.CreateTransactionKey();
            var transaction    = new Transaction
            {
                Key       = transactionKey,
                Transfers = transfers
            };

            Account.AddPendingTransaction(transaction);
            SendTransaction(ProducePeer(clientId), transaction);
            return(transactionKey);
        }