public BroadcastHubBehavior(BroadcastHub hub) { BroadcastHub = hub ?? new BroadcastHub(); foreach (var tx in BroadcastHub.BroadcastedTransaction) { _hashToTransaction.TryAdd(tx.Key, new TransactionBroadcast { State = BroadcastState.NotSent, Transaction = tx.Value }); } }
public BroadcastHubBehavior() { BroadcastHub = new BroadcastHub(); }