Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-pubsub
Commits
84302e96
Commit
84302e96
authored
Mar 26, 2021
by
vyzo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename checkSignature to checkSigningPolicy
parent
175d43f4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
pubsub.go
pubsub.go
+2
-2
validation.go
validation.go
+1
-1
No files found.
pubsub.go
View file @
84302e96
...
...
@@ -991,7 +991,7 @@ func (p *PubSub) pushMsg(msg *Message) {
return
}
err := p.checkSign
ature
(msg)
err := p.checkSign
ingPolicy
(msg)
if
err != nil {
log.Debugf(
"dropping message from %s: %s"
, src, err)
return
...
...
@@ -1021,7 +1021,7 @@ func (p *PubSub) pushMsg(msg *Message) {
}
}
func
(p *PubSub) checkSign
ature
(msg *Message)
error
{
func
(p *PubSub) checkSign
ingPolicy
(msg *Message)
error
{
// reject unsigned messages when strict before we even process the id
if
p.signPolicy.mustVerify() {
if
p.signPolicy.mustSign() {
...
...
validation.go
View file @
84302e96
...
...
@@ -216,7 +216,7 @@ func (v *validation) RemoveValidator(req *rmValReq) {
func
(v *validation) PushLocal(msg *Message)
error
{
v.p.tracer.PublishMessage(msg)
err := v.p.checkSign
ature
(msg)
err := v.p.checkSign
ingPolicy
(msg)
if
err != nil {
return
err
}
...
...
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