Commit 58de76d9 authored by Jeremy Bokobza's avatar Jeremy Bokobza

Removed reference to HBitcoin as it confilcts with the NStratis assembly of the Full Node

parent d6b9e6fe
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="HBitcoin" Version="0.1.6" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="1.0.3" /> <PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="1.0.3" />
<PackageReference Include="NBitcoin" Version="3.0.2.15" /> <PackageReference Include="NBitcoin" Version="3.0.2.15" />
<PackageReference Include="Stratis.Bitcoin" Version="1.0.1.3-alpha" /> <PackageReference Include="Stratis.Bitcoin" Version="1.0.1.3-alpha" />
......
 using Breeze.Wallet.Models;
using Breeze.Wallet.Models;
using HBitcoin.Models;
using NBitcoin; using NBitcoin;
namespace Breeze.Wallet.Wrappers namespace Breeze.Wallet.Wrappers
......
using NBitcoin; using NBitcoin;
using HBitcoin.FullBlockSpv;
using HBitcoin.Models;
using System; using System;
namespace Breeze.Wallet.Wrappers namespace Breeze.Wallet.Wrappers
{ {
public class TrackerWrapper : ITrackerWrapper public class TrackerWrapper : ITrackerWrapper
{ {
private readonly Tracker tracker; // private readonly Tracker tracker;
public TrackerWrapper(Network network) public TrackerWrapper(Network network)
{ {
this.tracker = new Tracker(network); //this.tracker = new Tracker(network);
} }
/// <summary> /// <summary>
...@@ -26,7 +24,7 @@ namespace Breeze.Wallet.Wrappers ...@@ -26,7 +24,7 @@ namespace Breeze.Wallet.Wrappers
public void NotifyAboutBlock(int height, Block block) public void NotifyAboutBlock(int height, Block block)
{ {
this.tracker.AddOrReplaceBlock(new Height(height), block); //this.tracker.AddOrReplaceBlock(new Height(height), block);
Console.WriteLine($"height: {height}, block hash: {block.Header.GetHash()}"); Console.WriteLine($"height: {height}, block hash: {block.Header.GetHash()}");
} }
} }
......
...@@ -3,7 +3,6 @@ using System.IO; ...@@ -3,7 +3,6 @@ using System.IO;
using System.Linq; using System.Linq;
using Breeze.Wallet.Helpers; using Breeze.Wallet.Helpers;
using Breeze.Wallet.Models; using Breeze.Wallet.Models;
using HBitcoin.KeyManagement;
using NBitcoin; using NBitcoin;
namespace Breeze.Wallet.Wrappers namespace Breeze.Wallet.Wrappers
......
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