I followed the bitcoin.it guide to setup a node over Tor on Linux and got everything working, and then asked some AI to optimize my bitcoin.conf, and ended up with this :
# Enable Tor hidden service
proxy=127.0.0.1:9050
listen=1
bind=127.0.0.1
debug=tor
# Increase outbound connections (default is 8 )
maxconnections=125
maxuploadtarget=0 # No upload limit
# Additional performance settings
dbcache=1000 # Allocate more memory for the database cache (in MB, adjust based on your RAM)
maxmempool=300 # Maximum memory for the mempool (in MB)
# To be a good network citizen
blocksonly=0 # Set to 1 if you have bandwidth concerns
txindex=1 # Build a transaction index (helpful for the network)
There's no problem with this configuration, but
1.
maxconnections=125,
maxuploadtarget=0,
maxmempool=300 and
blocksonly=0 actually are the default value used by Bitcoin Core. So adding those have no impact.
2.
maxconnections actually only set maximum total connection (both incoming and outgoing), where Bitcoin Core already make up to 10 outbound/outgoing connection by default.
3. AFAIK
txindex=1 doesn't help Bitcoin network or other node in any way.
But looking at my peer window in Qt after 30 minutes of my node running, there's only one inbound Onion connection, with some occasionally coming in but disappearing the next second.
I want to know if I can add/remove/change anything in my config to contribute more to the network.
Both Tor and Bitcoin Core already have good default configuration. So if you already receive incoming connection, realistically you only could wait until you receive more incoming connection.
Few member may mention that manually connect to well-connected node (using
addnode=NODE_IP_OR_ONION) may help you receive more incoming connection faster. But i don't know whether it actually works.