Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: norwayfalcon on July 29, 2024, 04:43:39 PM



Title: Any one?
Post by: norwayfalcon on July 29, 2024, 04:43:39 PM
is it normal to have 13 peers and 50mb mempool?


Title: Re: Any one?
Post by: NotATether on July 29, 2024, 05:44:35 PM
You have 13 outbound peers only or is it in total?

The mempool takes several minutes to a few hours to build up after you start the node, even if the IBD is finished then you still have to wait for your peers to send you unconfirmed transactions that should be placed in there.


Title: Re: Any one?
Post by: STINKYBEE on July 30, 2024, 03:27:00 AM
you can manually adjust the size of your mempool and having 13 peers sounds reasonable. The default value is 300 so probably you changed to 500, perhaps you copied a config that set it to 500?
Refer the document for more info: https://github.com/bitcoin/bitcoin/blob/master/doc/reduce-memory.md


Title: Re: Any one?
Post by: norwayfalcon on July 30, 2024, 09:12:13 AM
 ah yes it's set to max 300 mb.


Title: Re: Any one?
Post by: nc50lc on July 31, 2024, 03:59:20 AM
is it normal to have 13 peers and 50mb mempool?
Anything 125 peers and below is "normal",
Are you asking why you have 13 outbound peers instead of the "8+2(+1 temp)" maximum?
If so, you might have used "addnode" that included the extra 2 or 3 more peers, it can include additional 8 peers.
Reference: github.com/bitcoin/bitcoin/blob/master/doc/reduce-memory.md?plain=1#L25-L33 (https://github.com/bitcoin/bitcoin/blob/d367a4e36f7357c4ebd018e8e1c9c5071db2e1c2/doc/reduce-memory.md?plain=1#L25-L33)

For the 50MB mempool, that depends on how many unconfirmed transaction your node has accepted so far.
Question; is your node still in 'initial block download' state?

And you put little to no information; settings, command line args?