Example #1
0
 static void OnAccountManagerRpcTransactionReceived(object sender, TransactionReceivedEventArgs e)
 {
     Application.Instance.AsyncInvoke(() => {
         Utilities.DataSourceAccountTransactions.Add(e.Transaction);
         Utilities.BindingsToAccountTransactions.Update();
     });
 }
Example #2
0
        static void OnAccountManagerTransactionReceived(object sender, TransactionReceivedEventArgs e)
        {
            // Whether a new transaction is sent from or received by your account, its details can be viewed here
            var transaction = e.Transaction;

            Console.WriteLine(
                "New transaction: {0}" + Environment.NewLine +
                "    Spendable: {1}" + Environment.NewLine +
                "    Unspendable: {2}",
                transaction.TransactionId,
                Utilities.CoinAtomicValueToString(transaction.AmountSpendable),
                Utilities.CoinAtomicValueToString(transaction.AmountUnspendable)
                );
        }
Example #3
0
 private bool OnUnvalidatedTransactionReceived(object sender, TransactionReceivedEventArgs eventHandler)
 {
     // todo ban spamming nodes somehow..
     return(AddTransactionToPool(eventHandler.Transaction, true));
 }
Example #4
0
 static void OnAccountManagerRpcTransactionReceived(object sender, TransactionReceivedEventArgs e)
 {
     Application.Instance.AsyncInvoke(() => {
         Utilities.DataSourceAccountTransactions.Add(e.Transaction);
         Utilities.BindingsToAccountTransactions.Update();
     });
 }