Skip to content

Commit

Permalink
Give 40 sec for a node to handshake
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasDorier committed Oct 23, 2014
1 parent 553f773 commit f10d35a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NBitcoin/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.5.8")]
[assembly: AssemblyVersion("1.0.5.9")]
[assembly: AssemblyFileVersion("1.0.0.0")]
2 changes: 1 addition & 1 deletion NBitcoin/Protocol/NodeServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,6 @@ public void DiscoverPeers(int peerToFind = 990)
while(CountPeerRequired(peerToFind) != 0)
{
NodeServerTrace.PeerTableRemainingPeerToGet(CountPeerRequired(peerToFind));
CancellationTokenSource cancellation = new CancellationTokenSource(TimeSpan.FromSeconds(40));
var peers = PeerTable.GetActivePeers(1000);
if(peers.Length == 0)
{
Expand All @@ -696,6 +695,7 @@ public void DiscoverPeers(int peerToFind = 990)
CancellationToken = peerTableFull.Token,
}, p =>
{
CancellationTokenSource cancellation = new CancellationTokenSource(TimeSpan.FromSeconds(40));
Node n = null;
try
{
Expand Down

0 comments on commit f10d35a

Please sign in to comment.