From 14634daac58478a9e5aa3b764c5b69cdd5b8dd4a Mon Sep 17 00:00:00 2001 From: Alex Forshtat Date: Thu, 18 Jul 2024 10:56:25 +0200 Subject: [PATCH] I don't understand why would we need & 0xFF here, please elaborate --- core/state_processor_rip7560.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/state_processor_rip7560.go b/core/state_processor_rip7560.go index 8370f5046d..ba1cdcf3e5 100644 --- a/core/state_processor_rip7560.go +++ b/core/state_processor_rip7560.go @@ -31,7 +31,7 @@ func UnpackValidationData(validationData []byte) (authorizerMagic uint64, validU t := new(big.Int).SetBytes(validationData) authorizerMagic = t.Uint64() - validUntil = t.Rsh(t, 160).Uint64() & 0xffffff + validUntil = t.Rsh(t, 160).Uint64() // & 0xffffff validAfter = t.Rsh(t, 48).Uint64() return }