--private-keybased on the key you created prior.
admin.addTrustedPeer(<gateway_enode>)Note that the IP address and port do not need to be included.
admin.addTrustedPeerdoesn’t retain after a node restarts. To keep the Gateway as a trusted peer after a restart, you need to add it as trusted in the config file.
gethconfig file and add the Gateway to TrustedNodes in the
[Node.P2P]section. You can generate a config file that match your current configuration by running