Skip to content

Commit 4e677b7

Browse files
committed
Bump tests Bitcoin Core 18.1
1 parent bbcaf18 commit 4e677b7

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

NBitcoin.TestFramework/WellknownNodeDownloadData.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,34 @@ public class BitcoinNodeDownloadData : NodeDownloadDataBase
476476
UseSectionInConfigFile = true,
477477
CreateWallet = true
478478
};
479+
480+
public NodeDownloadData v28_1 = new NodeDownloadData()
481+
{
482+
Version = "28.1",
483+
Linux = new NodeOSDownloadData()
484+
{
485+
Archive = "bitcoin-{0}-x86_64-linux-gnu.tar.gz",
486+
DownloadLink = "https://bitcoincore.org/bin/bitcoin-core-{0}/bitcoin-{0}-x86_64-linux-gnu.tar.gz",
487+
Executable = "bitcoin-{0}/bin/bitcoind",
488+
Hash = "07f77afd326639145b9ba9562912b2ad2ccec47b8a305bd075b4f4cb127b7ed7"
489+
},
490+
Mac = new NodeOSDownloadData()
491+
{
492+
Archive = "bitcoin-{0}-x86_64-apple-darwin.tar.gz",
493+
DownloadLink = "https://bitcoincore.org/bin/bitcoin-core-{0}/bitcoin-{0}-x86_64-apple-darwin.tar.gz",
494+
Executable = "bitcoin-{0}/bin/bitcoind",
495+
Hash = "c85d1a0ebedeff43b99db2c906b50f14547b84175a4d0ebb039a9809789af280"
496+
},
497+
Windows = new NodeOSDownloadData()
498+
{
499+
Executable = "bitcoin-{0}/bin/bitcoind.exe",
500+
DownloadLink = "https://bitcoincore.org/bin/bitcoin-core-{0}/bitcoin-{0}-win64.zip",
501+
Archive = "bitcoin-{0}-win64.zip",
502+
Hash = "2d636ad562b347c96d36870d6ed810f4a364f446ca208258299f41048b35eab0"
503+
},
504+
UseSectionInConfigFile = true,
505+
CreateWallet = true
506+
};
479507
}
480508

481509
public class LitecoinNodeDownloadData : NodeDownloadDataBase

NBitcoin.Tests/RPCClientTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,13 +1478,13 @@ public void DoubleSpendThrows()
14781478

14791479
var tx = Transaction.Create(network);
14801480
tx.Inputs.Add(coinBaseTx, 0);
1481-
tx.Outputs.Add(Money.Coins(49.9999m), new Key().PubKey.WitHash.GetAddress(network));
1481+
tx.Outputs.Add(Money.Coins(49.998m), new Key().PubKey.WitHash.GetAddress(network));
14821482
tx.Sign(key.GetBitcoinSecret(network), coinBaseTx.Outputs.AsCoins().First());
14831483
var valid = tx.Check();
14841484

14851485
var doubleSpend = Transaction.Create(network);
14861486
doubleSpend.Inputs.Add(coinBaseTx, 0);
1487-
doubleSpend.Outputs.Add(Money.Coins(49.998m), new Key().PubKey.WitHash.GetAddress(network));
1487+
doubleSpend.Outputs.Add(Money.Coins(49.9999m), new Key().PubKey.WitHash.GetAddress(network));
14881488
doubleSpend.Sign(key.GetBitcoinSecret(network), coinBaseTx.Outputs.AsCoins().First());
14891489
valid = doubleSpend.Check();
14901490

0 commit comments

Comments
 (0)