aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorGuillaume Ballet <gballet@gmail.com>2018-02-15 20:43:48 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-02-15 20:43:48 +0800
commit5f9b01a2839111a97cfecdb9d746025f433c5276 (patch)
tree151351a22447f64f1c7d71a690b88bdef6031e3e /cmd
parentfac6d9ce77b636013013cce8eff9f6b218bdf380 (diff)
downloadgo-tangerine-5f9b01a2839111a97cfecdb9d746025f433c5276.tar
go-tangerine-5f9b01a2839111a97cfecdb9d746025f433c5276.tar.gz
go-tangerine-5f9b01a2839111a97cfecdb9d746025f433c5276.tar.bz2
go-tangerine-5f9b01a2839111a97cfecdb9d746025f433c5276.tar.lz
go-tangerine-5f9b01a2839111a97cfecdb9d746025f433c5276.tar.xz
go-tangerine-5f9b01a2839111a97cfecdb9d746025f433c5276.tar.zst
go-tangerine-5f9b01a2839111a97cfecdb9d746025f433c5276.zip
whisper: only use the node id as a p2p id, not for sending messages (#16102)
This is in preparation for the switch to libp2p: the ID generated will be from a private key created with the help of libp2p's crypto library, while Whisper will still use Go's default crypto libraries for encrypting its messages. This change removes a conflict. It shouldn't have any impact as the person receiving emails is the user, not the node.
Diffstat (limited to 'cmd')
-rw-r--r--cmd/wnode/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/wnode/main.go b/cmd/wnode/main.go
index 68e6971da..971b1c0ab 100644
--- a/cmd/wnode/main.go
+++ b/cmd/wnode/main.go
@@ -265,7 +265,7 @@ func initialize() {
Config: p2p.Config{
PrivateKey: nodeid,
MaxPeers: maxPeers,
- Name: common.MakeName("wnode", "5.0"),
+ Name: common.MakeName("wnode", "6.0"),
Protocols: shh.Protocols(),
ListenAddr: *argIP,
NAT: nat.Any(),
@@ -656,7 +656,7 @@ func requestExpiredMessagesLoop() {
params.PoW = *argServerPoW
params.Payload = data
params.KeySym = key
- params.Src = nodeid
+ params.Src = asymKey
params.WorkTime = 5
msg, err := whisper.NewSentMessage(&params)