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:
parent
ecb0654da7
commit
f5c69f372a
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue