Built this PR on top of #17167 (that’s been closed due to inactivity but had some Concept ACK). So, it allows whitelisting outbound peers.
This PR adds a new RPC addpermissionflags
to be able to set up permission flags -whitelist
thru RPC, so we don’t need to restart our node if we want to add new flags.
E.g.
0$ ./src/bitcoin-cli addpermissionflags ["noban", "mempool", "in", "out"] "127.0.0.1"