mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
rm experiment test
This commit is contained in:
parent
52e834b087
commit
3754be00f3
1 changed files with 0 additions and 17 deletions
|
|
@ -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")
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue