Exemplo n.º 1
0
        private void updateIncomingList()
        {
            TransactionAbstract trxAbstract = new TransactionAbstract();

            trxAbstract = getTransactionAbstract(incomingTransactions[incomingTransactions.Count - 1]);

            List <TransactionAbstract> absList = new List <TransactionAbstract>();

            absList.Add(trxAbstract);
            incomingDt.Rows.Add(ToDataTable(absList).Rows[0].ItemArray);
            datagrid_incomingTrx.Refresh();
        }
Exemplo n.º 2
0
        public TransactionAbstract getTransactionAbstract(Transaction trx)
        {
            TransactionAbstract trxAbstract = new TransactionAbstract();
            List <Output>       outputList  = new List <Output>();
            DataAccess          da          = new DataAccess();
            Output outp = new Output();

            outp = da.getOutput(trx.Inputs[0].PrevTransactionHash, 0);
            trxAbstract.Amount          = outp.Value;
            trxAbstract.ReceiverAddress = outp.ScriptSignKey;
            trxAbstract.SenderAddress   = "noaddress";

            return(trxAbstract);
        }