Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions NBitcoin.TestFramework/WellknownNodeDownloadData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,34 @@ public class BitcoinNodeDownloadData : NodeDownloadDataBase
UseSectionInConfigFile = true,
CreateWallet = true
};

public NodeDownloadData v28_1 = new NodeDownloadData()
{
Version = "28.1",
Linux = new NodeOSDownloadData()
{
Archive = "bitcoin-{0}-x86_64-linux-gnu.tar.gz",
DownloadLink = "https://bitcoincore.org/bin/bitcoin-core-{0}/bitcoin-{0}-x86_64-linux-gnu.tar.gz",
Executable = "bitcoin-{0}/bin/bitcoind",
Hash = "07f77afd326639145b9ba9562912b2ad2ccec47b8a305bd075b4f4cb127b7ed7"
},
Mac = new NodeOSDownloadData()
{
Archive = "bitcoin-{0}-x86_64-apple-darwin.tar.gz",
DownloadLink = "https://bitcoincore.org/bin/bitcoin-core-{0}/bitcoin-{0}-x86_64-apple-darwin.tar.gz",
Executable = "bitcoin-{0}/bin/bitcoind",
Hash = "c85d1a0ebedeff43b99db2c906b50f14547b84175a4d0ebb039a9809789af280"
},
Windows = new NodeOSDownloadData()
{
Executable = "bitcoin-{0}/bin/bitcoind.exe",
DownloadLink = "https://bitcoincore.org/bin/bitcoin-core-{0}/bitcoin-{0}-win64.zip",
Archive = "bitcoin-{0}-win64.zip",
Hash = "2d636ad562b347c96d36870d6ed810f4a364f446ca208258299f41048b35eab0"
},
UseSectionInConfigFile = true,
CreateWallet = true
};
}

public class LitecoinNodeDownloadData : NodeDownloadDataBase
Expand Down
4 changes: 2 additions & 2 deletions NBitcoin.Tests/RPCClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1478,13 +1478,13 @@ public void DoubleSpendThrows()

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

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

Expand Down
Loading