Update NBitcoin version
Given a big refactoring that is ongoing over NBitcoin codebase, for
supporting altcoins,  a couple of things have changed.
ProtocolVersion has  been removed.
MODIFY
MagicalCryptoWallet.Tests/P2pTests.cs
MagicalCryptoWallet.Tests/P2pTests.cs
@@ -21,6 +21,7 @@ namespace MagicalCryptoWallet.Tests
{
public class P2pTests : IClassFixture<SharedFixture>
{
+ public const uint ProtocolVersion_WITNESS_VERSION = 70012;
private SharedFixture SharedFixture { get; }
public P2pTests(SharedFixture sharedFixture)
@@ -83,7 +84,7 @@ namespace MagicalCryptoWallet.Tests
new NodeRequirement
{
RequiredServices = NodeServices.Network,
- MinVersion = ProtocolVersion.WITNESS_VERSION
+ MinVersion = ProtocolVersion_WITNESS_VERSION
});
WalletService walletService = new WalletService(
KeyManager.CreateNew(out Mnemonic mnemonic, "password"),

MODIFY
MagicalCryptoWallet.Tests/RegTests.cs
MagicalCryptoWallet.Tests/RegTests.cs
@@ -30,6 +30,7 @@ namespace MagicalCryptoWallet.Tests
[Collection("RegTest collection")]
public class RegTests : IClassFixture<SharedFixture>
{
+ public const uint ProtocolVersion_WITNESS_VERSION = 70012;
private SharedFixture SharedFixture { get; }
private RegTestFixture RegTestFixture { get; }
@@ -398,7 +399,7 @@ namespace MagicalCryptoWallet.Tests
requirements: new NodeRequirement
{
RequiredServices = NodeServices.Network,
- MinVersion = ProtocolVersion.WITNESS_VERSION
+ MinVersion = ProtocolVersion_WITNESS_VERSION
});
nodes.ConnectedNodes.Add(RegTestFixture.BackendRegTestNode.CreateNodeClient());
@@ -627,7 +628,7 @@ namespace MagicalCryptoWallet.Tests
requirements: new NodeRequirement
{
RequiredServices = NodeServices.Network,
- MinVersion = ProtocolVersion.WITNESS_VERSION
+ MinVersion = ProtocolVersion_WITNESS_VERSION
});
nodes.ConnectedNodes.Add(RegTestFixture.BackendRegTestNode.CreateNodeClient());
@@ -994,7 +995,7 @@ namespace MagicalCryptoWallet.Tests
requirements: new NodeRequirement
{
RequiredServices = NodeServices.Network,
- MinVersion = ProtocolVersion.WITNESS_VERSION
+ MinVersion = ProtocolVersion_WITNESS_VERSION
});
nodes.ConnectedNodes.Add(RegTestFixture.BackendRegTestNode.CreateNodeClient());

MODIFY
MagicalCryptoWallet/MagicalCryptoWallet.csproj
MagicalCryptoWallet/MagicalCryptoWallet.csproj
<ItemGroup>
<PackageReference Include="ConcurrentHashSet" Version="1.0.2" />
- <PackageReference Include="NBitcoin" Version="4.0.0.65" />
+ <PackageReference Include="NBitcoin" Version="4.1.0.3" />
<PackageReference Include="Nito.AsyncEx.Coordination" Version="1.0.2" />
</ItemGroup>

Update NBitcoin version

Given a big refactoring that is ongoing over NBitcoin codebase, for
supporting altcoins,  a couple of things have changed.
ProtocolVersion has  been removed.