static void OnAccountManagerRpcTransactionReceived(object sender, TransactionReceivedEventArgs e) { Application.Instance.AsyncInvoke(() => { Utilities.DataSourceAccountTransactions.Add(e.Transaction); Utilities.BindingsToAccountTransactions.Update(); }); }
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) ); }
private bool OnUnvalidatedTransactionReceived(object sender, TransactionReceivedEventArgs eventHandler) { // todo ban spamming nodes somehow.. return(AddTransactionToPool(eventHandler.Transaction, true)); }