Skip to content

Commit 9474f32

Browse files
committed
p2p/enr: update python test
1 parent 08cdd66 commit 9474f32

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

p2p/enr/enr.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,6 @@ func (r *Record) verifySignature() error {
281281
list = r.appendPairs(list)
282282
h := sha3.NewKeccak256()
283283
rlp.Encode(h, list)
284-
fmt.Printf("sig: %x\n", r.signature)
285-
fmt.Printf("key: %x\n", key)
286-
fmt.Printf("hash: %x\n", h.Sum(nil))
287284
if !crypto.VerifySignature(key, h.Sum(nil), r.signature) {
288285
return errInvalidSig
289286
}

p2p/enr/enr_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ func TestNodeAddr(t *testing.T) {
238238
// TestPythonInterop checks that we can decode and verify a record produced by the Python
239239
// implementation.
240240
func TestPythonInterop(t *testing.T) {
241-
enc, _ := hex.DecodeString("f896b840638a54215d80a6713c8d523a6adc4e6e73652d859103a36b700851cb0e61b66b8ebfc1a610c57d732ec6e0a8f06a9a7a28df5051ece514702ff9cdff0b11f454018664697363763582765f82696490736563703235366b312d6b656363616b83697034847f00000189736563703235366b31a103ca634cae0d49acb401d8a4c6b6fe8c55b70d115bf400769cc1400f3258cd3138")
241+
enc, _ := hex.DecodeString("f896b840954dc36583c1f4b69ab59b1375f362f06ee99f3723cd77e64b6de6d211c27d7870642a79d4516997f94091325d2a7ca6215376971455fb221d34f35b277149a1018664697363763582765f82696490736563703235366b312d6b656363616b83697034847f00000189736563703235366b31a103ca634cae0d49acb401d8a4c6b6fe8c55b70d115bf400769cc1400f3258cd3138")
242242
var r Record
243243
if err := rlp.DecodeBytes(enc, &r); err != nil {
244244
t.Fatalf("can't decode: %v", err)

0 commit comments

Comments
 (0)