forked from TrueCloudLab/neoneo-go
Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
|
feb24678b2 | ||
|
3582572c30 |
1 changed files with 4 additions and 0 deletions
|
@ -3,6 +3,7 @@ package network
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
|
"encoding/base64"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
@ -1179,6 +1180,9 @@ func (s *Server) RelayP2PNotaryRequest(r *payload.P2PNotaryRequest) error {
|
||||||
err := s.verifyAndPoolNotaryRequest(r)
|
err := s.verifyAndPoolNotaryRequest(r)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
s.broadcastP2PNotaryRequestPayload(nil, r)
|
s.broadcastP2PNotaryRequestPayload(nil, r)
|
||||||
|
} else {
|
||||||
|
b, _ := r.Bytes()
|
||||||
|
s.log.Info("p2p request", zap.Error(err), zap.String("payload", base64.StdEncoding.EncodeToString(b)))
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue