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 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="HBitcoin" Version="0.1.6" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="1.0.3" />
<PackageReference Include="NBitcoin" Version="3.0.2.15" />
<PackageReference Include="Stratis.Bitcoin" Version="1.0.1.3-alpha" />
......

using Breeze.Wallet.Models;
using HBitcoin.Models;
using Breeze.Wallet.Models;
using NBitcoin;
namespace Breeze.Wallet.Wrappers
......
using NBitcoin;
using HBitcoin.FullBlockSpv;
using HBitcoin.Models;
using System;
namespace Breeze.Wallet.Wrappers
{
public class TrackerWrapper : ITrackerWrapper
{
private readonly Tracker tracker;
// private readonly Tracker tracker;
public TrackerWrapper(Network network)
{
this.tracker = new Tracker(network);
//this.tracker = new Tracker(network);
}
/// <summary>
......@@ -26,7 +24,7 @@ namespace Breeze.Wallet.Wrappers
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()}");
}
}
......
......@@ -3,7 +3,6 @@ using System.IO;
using System.Linq;
using Breeze.Wallet.Helpers;
using Breeze.Wallet.Models;
using HBitcoin.KeyManagement;
using NBitcoin;
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