Closed canndrew closed 3 years ago
@NicolasDorier any clue about why the CI timed out here?
No idea, but probably a bug in this PR. This also need tests
Tests are passing for this now, except for one of the pipelines though that appears to be a random failure unrelated to the PR.
The test failure seems indeed unrelated:
[xUnit.net 00:03:42.20] /home/runner/work/NBitcoin/NBitcoin/NBitcoin.Tests/ProtocolTests.cs(702,0): at NBitcoin.Tests.ProtocolTests.CanConnectToRandomNode()
X NBitcoin.Tests.ProtocolTests.CanConnectToRandomNode [27s 138ms]
Error Message:
System.InvalidOperationException : The node is not in a connected state
Stack Trace:
at NBitcoin.Protocol.NodeListener.ReceivePayload[TPayload](CancellationToken cancellationToken) in /home/runner/work/NBitcoin/NBitcoin/NBitcoin/Protocol/NodeListener.cs:line 69
at NBitcoin.Protocol.Node.VersionHandshake(NodeRequirement requirements, CancellationToken cancellationToken) in /home/runner/work/NBitcoin/NBitcoin/NBitcoin/Protocol/Node.cs:line 1045
at NBitcoin.Protocol.Node.VersionHandshake(CancellationToken cancellationToken) in /home/runner/work/NBitcoin/NBitcoin/NBitcoin/Protocol/Node.cs:line 1034
at NBitcoin.Tests.ProtocolTests.CanConnectToRandomNode() in /home/runner/work/NBitcoin/NBitcoin/NBitcoin.Tests/ProtocolTests.cs:line 702
Maybe this test should be retried several times in the test suite? So long as it can connect once successfully, it should pass.
@NicolasDorier can you review/merge?
Awesome, merging. I will change 2 or 3 things about it but that's great.
I released 5.0.74
This PR adds a new
CoinOptions
type defined as:As well a new
AddCoin
method toTransactionBuilder
which takes an additionalCoinOptions
argument. This allows setting the sequence number on transaction inputs.Fixes #973