Skip to content

Commit

Permalink
Fix Build after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
fassadlr committed Nov 29, 2021
1 parent 7e89fde commit e01ed20
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using NBitcoin;
using Stratis.Bitcoin;
using Stratis.Bitcoin.Configuration;
Expand Down Expand Up @@ -31,19 +30,17 @@ public sealed class JoinFederationRequestService : IJoinFederationRequestService
private readonly IFullNode fullNode;
private readonly IHttpClientFactory httpClientFactory;
private readonly IInitialBlockDownloadState initialBlockDownloadState;
private readonly ILoggerFactory loggerFactory;
private readonly PoANetwork network;
private readonly NodeSettings nodeSettings;
private readonly VotingManager votingManager;

public JoinFederationRequestService(ICounterChainSettings counterChainSettings, IFederationManager federationManager, IFullNode fullNode, IInitialBlockDownloadState initialBlockDownloadState, IHttpClientFactory httpClientFactory, ILoggerFactory loggerFactory, Network network, NodeSettings nodeSettings, VotingManager votingManager)
public JoinFederationRequestService(ICounterChainSettings counterChainSettings, IFederationManager federationManager, IFullNode fullNode, IInitialBlockDownloadState initialBlockDownloadState, IHttpClientFactory httpClientFactory, Network network, NodeSettings nodeSettings, VotingManager votingManager)
{
this.counterChainSettings = counterChainSettings;
this.federationManager = federationManager;
this.fullNode = fullNode;
this.initialBlockDownloadState = initialBlockDownloadState;
this.httpClientFactory = httpClientFactory;
this.loggerFactory = loggerFactory;
this.network = network as PoANetwork;
this.nodeSettings = nodeSettings;
this.votingManager = votingManager;
Expand Down Expand Up @@ -91,7 +88,7 @@ public async Task<PubKey> JoinFederationAsync(JoinFederationRequestModel request
ExternalAddress = request.CollateralAddress
};

var walletClient = new WalletClient(this.loggerFactory, this.httpClientFactory, $"http://{this.counterChainSettings.CounterChainApiHost}", this.counterChainSettings.CounterChainApiPort);
var walletClient = new WalletClient(this.httpClientFactory, $"http://{this.counterChainSettings.CounterChainApiHost}", this.counterChainSettings.CounterChainApiPort);

try
{
Expand Down
20 changes: 0 additions & 20 deletions src/Stratis.Bitcoin/EventBus/InMemoryEventBus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,26 +66,6 @@ public SubscriptionToken Subscribe(Type eventType, Func<EventBase, Task> handler
}
}

/// <inheritdoc />
public SubscriptionToken Subscribe(Type eventType, Func<EventBase, Task> handler)
{
if (handler == null)
throw new ArgumentNullException(nameof(handler));

lock (this.subscriptionsLock)
{
if (!this.subscriptions.ContainsKey(eventType))
{
this.subscriptions.Add(eventType, new List<ISubscription>());
}

var subscriptionToken = new SubscriptionToken(this, eventType);
this.subscriptions[eventType].Add(new Subscription(handler, subscriptionToken));

return subscriptionToken;
}
}

/// <inheritdoc />
public SubscriptionToken Subscribe<TEvent>(Action<TEvent> handler) where TEvent : EventBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using Stratis.Bitcoin.Primitives;
using Stratis.Bitcoin.Tests.Common;
using Stratis.Bitcoin.Utilities;
using Stratis.Features.FederatedPeg.Conversion;
using Stratis.Features.FederatedPeg.Interfaces;
using Stratis.Features.FederatedPeg.Models;
using Stratis.Features.FederatedPeg.SourceChain;
Expand Down

0 comments on commit e01ed20

Please sign in to comment.