Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
58de76d9
Commit
58de76d9
authored
Apr 21, 2017
by
Jeremy Bokobza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed reference to HBitcoin as it confilcts with the NStratis assembly of the Full Node
parent
d6b9e6fe
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
10 deletions
+4
-10
Breeze.Wallet.csproj
Breeze/src/Breeze.Wallet/Breeze.Wallet.csproj
+0
-1
IWalletWrapper.cs
Breeze/src/Breeze.Wallet/Wrappers/IWalletWrapper.cs
+1
-3
TrackerWrapper.cs
Breeze/src/Breeze.Wallet/Wrappers/TrackerWrapper.cs
+3
-5
WalletWrapper.cs
Breeze/src/Breeze.Wallet/Wrappers/WalletWrapper.cs
+0
-1
No files found.
Breeze/src/Breeze.Wallet/Breeze.Wallet.csproj
View file @
58de76d9
...
@@ -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" />
...
...
Breeze/src/Breeze.Wallet/Wrappers/IWalletWrapper.cs
View file @
58de76d9
using
Breeze.Wallet.Models
;
using
Breeze.Wallet.Models
;
using
HBitcoin.Models
;
using
NBitcoin
;
using
NBitcoin
;
namespace
Breeze.Wallet.Wrappers
namespace
Breeze.Wallet.Wrappers
...
...
Breeze/src/Breeze.Wallet/Wrappers/TrackerWrapper.cs
View file @
58de76d9
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
()}
"
);
}
}
}
}
...
...
Breeze/src/Breeze.Wallet/Wrappers/WalletWrapper.cs
View file @
58de76d9
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment