Bitcoin Forum
May 28, 2024, 06:18:59 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [ Core 23.0 Regtest ] Debug logs spammed with "Selected address from new"  (Read 120 times)
cmdcode (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 2


View Profile
May 10, 2022, 07:30:08 PM
Merited by Welsh (1), ABCbits (1)
 #1

Hello. Not sure if this is a bug or standard procedure.

I have two regtest nodes, one connected to the other through the "addnode" RPC command. Both nodes are using Tor.

When reading the debug logs for the connecting node, it will spam repeatedly this line, about twice a second:

"{date string} Selected {onion address} from new" I have redacted the date and onion address.

The debug logs for the node being connected to will show something similar, unless I add "connect=0" to the config.

I didn't have this experience with Core version 22.0. Is this normal behavior for the node, or is this a bug?

Thank you for reading!
BitMaxz
Legendary
*
Offline Offline

Activity: 3262
Merit: 2979


:( My PC broke due trying to recover an old wallet


View Profile WWW
May 10, 2022, 11:18:41 PM
 #2

That is misconfiguration if you use only the onion address on "addnode" it should be the Ip address: Port
Your Bitcoin core is trying to connect on that set up it's rejected which is why it keeps spamming repeatedly.

Sample of IP address: Port

Code:
192.168.1.1:8777

Can you read this maybe this guide below will help you to set up your config?

- https://github.com/bitcoin/bitcoin/blob/master/doc/tor.md

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
cmdcode (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 2


View Profile
May 10, 2022, 11:47:13 PM
Last edit: May 11, 2022, 12:05:00 AM by cmdcode
 #3

That is misconfiguration if you use only the onion address on "addnode" it should be the Ip address: Port
Your Bitcoin core is trying to connect on that set up it's rejected which is why it keeps spamming repeatedly.

Sample of IP address: Port

Code:
192.168.1.1:8777

Can you read this maybe this guide below will help you to set up your config?

- https://github.com/bitcoin/bitcoin/blob/master/doc/tor.md

Thank you for the reply. I am surprised that it is a misconfiguration, because the status of the peer is connected and I receive transactions / blocks between the nodes.

Is it possible for it to be misconfigured yet the nodes still connect over tor?

I will try adding the port designation. I did not add it previously because bitcoind is a little weird with regards to how it handles incoming tor connections (moving between 18445-18444 on regtest).

Edit: When I add the port designation, the peer connection no longer works.
vv181
Legendary
*
Offline Offline

Activity: 1932
Merit: 1273


View Profile
May 11, 2022, 12:58:30 AM
Merited by Welsh (3), ABCbits (1)
 #4

That is misconfiguration if you use only the onion address on "addnode" it should be the Ip address: Port

Code:
192.168.1.1:8777
Addnode configuration can be used with its own respective network type(IPv4, CJDNS, onion, etc).


Is it possible for it to be misconfigured yet the nodes still connect over tor?
I don't think that is where the problem relies on, though I'm also not sure about the OP problem.  I don't particularly have an experience with regtest, maybe you can wait for someone else or try to set up a more log level might help. You can use debug=net on the bitcoin.conf.
nc50lc
Legendary
*
Offline Offline

Activity: 2422
Merit: 5652


Self-proclaimed Genius


View Profile
May 11, 2022, 06:19:29 AM
 #5

I have two regtest nodes, one connected to the other through the "addnode" RPC command. Both nodes are using Tor.
-snip-
unless I add "connect=0" to the config.

I didn't have this experience with Core version 22.0. Is this normal behavior for the node, or is this a bug?
Have you enabled debugging?
I have tested it and it shows in v23.0 with either -debug or -debug=addrman active but it's not showing in v22.0.
So it might be something new that's added in the latest version.

Also, by adding "connect=0", you have disabled "automatic connections" so it might have something to do with it.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
cmdcode (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 2


View Profile
May 13, 2022, 04:44:06 AM
 #6

I have two regtest nodes, one connected to the other through the "addnode" RPC command. Both nodes are using Tor.
-snip-
unless I add "connect=0" to the config.

I didn't have this experience with Core version 22.0. Is this normal behavior for the node, or is this a bug?
Have you enabled debugging?
I have tested it and it shows in v23.0 with either -debug or -debug=addrman active but it's not showing in v22.0.
So it might be something new that's added in the latest version.

Also, by adding "connect=0", you have disabled "automatic connections" so it might have something to do with it.

Thank you for taking the time to test that! I do have "debug=addrman" enabled. The output is not interfering with anything, but it does seem quite spammy so I was wondering if maybe it was a bug.
nc50lc
Legendary
*
Offline Offline

Activity: 2422
Merit: 5652


Self-proclaimed Genius


View Profile
May 13, 2022, 05:20:30 AM
 #7

-snip-
Thank you for taking the time to test that! I do have "debug=addrman" enabled. The output is not interfering with anything, but it does seem quite spammy so I was wondering if maybe it was a bug.
I've searched for related Pull Requests after v22.0 and found this: https://github.com/bitcoin/bitcoin/pull/22839/files
Apparently, it's added as an improvement to "Address Manager" logging.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!