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();
 }