From d439476ea96a7c8f859ccd639f42cb1955d87ee9 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 23 Jan 2025 22:31:52 +0800 Subject: [PATCH] feat: new defs --- params/taiko_config.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/params/taiko_config.go b/params/taiko_config.go index 6908471d81b0..4e04c81d8239 100644 --- a/params/taiko_config.go +++ b/params/taiko_config.go @@ -6,6 +6,14 @@ import ( "github.com/ethereum/go-ethereum/common" ) +// To make taiko-geth compatible with the op-service library, we need to define the following constants and functions. +type ProtocolVersion [32]byte + +type ProtocolVersionV0 struct { + Build [8]byte + Major, Minor, Patch, PreRelease uint32 +} + func u64(val uint64) *uint64 { return &val } // Network IDs