From c94a8f3a6e44be1e1333ce1c287a3af47d25f000 Mon Sep 17 00:00:00 2001 From: maskpp Date: Wed, 24 Sep 2025 08:41:51 +0800 Subject: [PATCH] delete witness encode and decode methods --- core/stateless/encoding.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/core/stateless/encoding.go b/core/stateless/encoding.go index 8aa98a0682..750b78798a 100644 --- a/core/stateless/encoding.go +++ b/core/stateless/encoding.go @@ -17,12 +17,10 @@ package stateless import ( - "io" "slices" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/rlp" ) // ToExtWitness converts our internal witness representation to the consensus one. @@ -34,16 +32,6 @@ func (w *Witness) ToExtWitness() *ExtWitness { } } -// EncodeRLP serializes a witness as RLP. -func (w *Witness) EncodeRLP(wr io.Writer) error { - return rlp.Encode(wr, w) -} - -// DecodeRLP decodes a witness from RLP. -func (w *Witness) DecodeRLP(s *rlp.Stream) error { - return s.Decode(&w) -} - // ExtWitness is a witness RLP encoding for transferring across clients. type ExtWitness struct { Headers []*types.Header `json:"headers"`