Whisper: Remove all code which starts Whisper running

This is the patch which removes Whisper functionality from `nimbus-eth1`,
even though the code has yet to be removed after.

After this change, enabling Whisper has no effect.  Its configuration is
ignored and it won't be started.

Signed-off-by: Jamie Lokier <jamie@shareable.org>
This commit is contained in:
Jamie Lokier 2021-06-01 14:57:33 +01:00
parent ecb0654da7
commit f5c69f372a
No known key found for this signature in database
GPG Key ID: CBC25C68435C30A2
1 changed files with 0 additions and 6 deletions

View File

@ -115,9 +115,6 @@ proc start(nimbus: NimbusNode) =
# Add protocol capabilities based on protocol flags
if ProtocolFlags.Eth in conf.net.protocols:
nimbus.ethNode.addCapability eth
if ProtocolFlags.Shh in conf.net.protocols:
nimbus.ethNode.addCapability Whisper
nimbus.ethNode.configureWhisper(conf.shh)
if ProtocolFlags.Les in conf.net.protocols:
nimbus.ethNode.addCapability les
@ -131,9 +128,6 @@ proc start(nimbus: NimbusNode) =
# Enable RPC APIs based on RPC flags and protocol flags
if RpcFlags.Eth in conf.rpc.flags and ProtocolFlags.Eth in conf.net.protocols:
setupEthRpc(nimbus.ethNode, chainDB, nimbus.rpcServer)
if RpcFlags.Shh in conf.rpc.flags and ProtocolFlags.Shh in conf.net.protocols:
let keys = newKeyStorage()
setupWhisperRPC(nimbus.ethNode, keys, nimbus.rpcServer)
if RpcFlags.Debug in conf.rpc.flags:
setupDebugRpc(chainDB, nimbus.rpcServer)