Exemplo n.º 1
0
        public void PushEntry(WalletEntry entry, BlockType?blockType)
        {
            if (blockType == null && entry.Block != null)
            {
                throw new ArgumentException("An entry coming from a block should have a blocktype");
            }

            Unconfirmed.PushEntry(entry);
            if (entry.Type == WalletEntryType.Outcome)
            {
                Available.PushEntry(entry);
            }
            if (entry.Block != null && blockType == BlockType.Main)
            {
                Available.PushEntry(entry);
                Confirmed.PushEntry(entry);
            }
        }