Commit 153c7361 authored by Sergei Zubov's avatar Sergei Zubov

Fix fee wallets collection

parent 04878de6
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using NBitcoin.BouncyCastle.Math;
......@@ -10,9 +10,16 @@ namespace NBitcoin
{
protected LinkedList<string> DeStreamWallets;
private LinkedListNode<string> DeStreamWalletsNode => this.DeStreamWallets.First;
private LinkedListNode<string> DeStreamWalletsNode { get; set; }
public string DeStreamWallet => this.DeStreamWalletsNode.NextOrFirst().Value;
public string DeStreamWallet
{
get
{
this.DeStreamWalletsNode = this.DeStreamWalletsNode.NextOrFirst() ?? this.DeStreamWallets.First;
return this.DeStreamWalletsNode.Value;
}
}
/// <summary>
/// </summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment