BitSharper.BlockChain.SendTransactionsToWallet C# (CSharp) Method

SendTransactionsToWallet() private static method

private static SendTransactionsToWallet ( StoredBlock block, NewBlockType blockType, IDictionary newTransactions ) : void
block StoredBlock
blockType NewBlockType
newTransactions IDictionary
return void
        private static void SendTransactionsToWallet(StoredBlock block, NewBlockType blockType, IDictionary<Wallet, List<Transaction>> newTransactions)
        {
            foreach (var item in newTransactions)
            {
                try
                {
                    foreach (var tx in item.Value)
                    {
                        item.Key.Receive(tx, block, blockType);
                    }
                }
                catch (ScriptException e)
                {
                    // We don't want scripts we don't understand to break the block chain so just note that this tx was
                    // not scanned here and continue.
                    _log.WarnFormat("Failed to parse a script: {0}", e);
                }
            }
        }