NBXplorer: fails to load chain if any onion peers connected

``info: Configuration: BTC: Loading chain from node… fail: Configuration: BTC: Unhandled exception in BitcoinDWaiter System.OperationCanceledException: Loading the chain from the node timed out at NBXplorer.BitcoinDWaiter.<ConnectToBitcoinD>d__36.MoveNext() in /path/to/NBxplorer/NBXplorer/BitcoinDWaiter.cs:line 349 — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NBXplorer.BitcoinDWaiter.<StepAsync>d__35.MoveNext() in /path/to/NBxplorer/NBXplorer/BitcoinDWaiter.cs:line 263 — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at NBXplorer.BitcoinDWaiter.<StartLoop>d__27.MoveNext() in /path/to/NBxplorer/NBXplorer/BitcoinDWaiter.cs:line 183

I believe this is a bug in underlying NBitcoin library. However since I do not have the NBitcoin installed and am using it through NBXplorer, which downloaded NBitcoin for me into my .nuget directory, maybe you should check what version of NBitcoin you are using and possibly update, or report more details upstream. NBitcoin appears to run a getpeerinfo and then immediately throw the cancelled exception if any onion peers are connected to the bitcoin node. It’s not a timeout, the error is misleading. Reproduce by running a bitcoin node with -onion=127.0.0.1:9050 and -onlynet=onion and wait for a peer and then run NBxplorer.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 18 (9 by maintainers)

Most upvoted comments

Calm down, 99% of the issues I get come from stupid oversight which can be cleared out with simple questions. I am trying to reproduce your case now.