Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
dadf4d53
Commit
dadf4d53
authored
Feb 27, 2018
by
Vlad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whisper: mailserver no longer supports the signature vaidation
parent
4c845bdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
mailserver.go
whisper/mailserver/mailserver.go
+4
-2
No files found.
whisper/mailserver/mailserver.go
View file @
dadf4d53
...
...
@@ -17,7 +17,6 @@
package
mailserver
import
(
"bytes"
"encoding/binary"
"fmt"
...
...
@@ -175,7 +174,10 @@ func (s *WMailServer) validateRequest(peerID []byte, request *whisper.Envelope)
if
len
(
src
)
-
len
(
peerID
)
==
1
{
src
=
src
[
1
:
]
}
if
!
bytes
.
Equal
(
peerID
,
src
)
{
// if you want to check the signature, you can do it here. e.g.:
// if !bytes.Equal(peerID, src) {
if
src
==
nil
{
log
.
Warn
(
fmt
.
Sprintf
(
"Wrong signature of p2p request"
))
return
false
,
0
,
0
,
topic
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment