rm experiment test

This commit is contained in:
Sina Mahmoodi 2025-02-03 18:21:32 +01:00 committed by lightclient
parent 52e834b087
commit 3754be00f3
No known key found for this signature in database
GPG key ID: 657913021EF45A6A

View file

@ -17,11 +17,9 @@
package ethapi package ethapi
import ( import (
"fmt"
"math/big" "math/big"
"testing" "testing"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/internal/ethapi/override" "github.com/ethereum/go-ethereum/internal/ethapi/override"
@ -121,18 +119,3 @@ func TestSimulateSanitizeBlockOrder(t *testing.T) {
func newInt(n int64) *hexutil.Big { func newInt(n int64) *hexutil.Big {
return (*hexutil.Big)(big.NewInt(n)) return (*hexutil.Big)(big.NewInt(n))
} }
func TestHeaderPassing(t *testing.T) {
sl := []*types.Header{new(types.Header)}
procHeader(sl[0])
fmt.Printf("sl[0].Number: %v\n", sl[0].Number)
fmt.Printf("sl[0].ParentHash: %v\n", sl[0].ParentHash)
if sl[0].Number.Cmp(big.NewInt(100)) != 0 {
t.Errorf("Header not processed")
}
}
func procHeader(h *types.Header) {
h.Number = big.NewInt(100)
h.ParentHash = common.HexToHash("0x1")
}