Commit 93f633d0 authored by Sebastian Stammler's avatar Sebastian Stammler

op-node: Remove L1BlockRefFromHeader

parent 3cfb6624
......@@ -4,7 +4,6 @@ import (
"fmt"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
)
type BlockID struct {
......@@ -48,15 +47,6 @@ type L1BlockRef struct {
Time uint64 `json:"timestamp"`
}
func L1BlockRefFromHeader(block *types.Header) L1BlockRef {
return L1BlockRef{
Hash: block.Hash(),
Number: block.Number.Uint64(),
ParentHash: block.ParentHash,
Time: block.Time,
}
}
func (id L1BlockRef) String() string {
return fmt.Sprintf("%s:%d", id.Hash.String(), id.Number)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment