Skip to content

Commit 8e2b9b0

Browse files
committed
update default null chainId value
1 parent 6529d36 commit 8e2b9b0

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
golang 1.24.1

multinode/send_only_node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (s *sendOnlyNode[CHAIN_ID, RPC]) start() {
108108
}
109109
s.setState(nodeStateDialed)
110110

111-
if s.chainID.String() == "0" {
111+
if s.chainID.String() == fmt.Sprint(NullClientChainID) {
112112
// Skip verification if chainID is zero
113113
s.log.Warn("sendonly rpc ChainID verification skipped")
114114
} else {

multinode/utils.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import (
99
"github.com/jpillora/backoff"
1010
)
1111

12+
const NullClientChainID = 1399100
13+
1214
func RandomID() ID {
1315
// #nosec G404
1416
id := rand.Int63n(math.MaxInt32) + 10000

0 commit comments

Comments
 (0)