Skip to content

Commit 3833be5

Browse files
committed
add flag
1 parent 5ef2633 commit 3833be5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/config/config.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ const (
101101
FlagTrustedHeight = FlagPrefixEvnode + "p2p.trusted_height"
102102
// FlagTrustedHeaderHash is a flag for specifying the trusted header hash for verification
103103
FlagTrustedHeaderHash = FlagPrefixEvnode + "p2p.trusted_header_hash"
104+
// FlagTrustedDataHash is a flag for specifying the trusted data hash for verification
105+
FlagTrustedDataHash = FlagPrefixEvnode + "p2p.trusted_data_hash"
104106

105107
// Instrumentation configuration flags
106108

@@ -474,7 +476,8 @@ func AddFlags(cmd *cobra.Command) {
474476
cmd.Flags().String(FlagP2PBlockedPeers, def.P2P.BlockedPeers, "Comma separated list of nodes to ignore")
475477
cmd.Flags().String(FlagP2PAllowedPeers, def.P2P.AllowedPeers, "Comma separated list of nodes to whitelist")
476478
cmd.Flags().Uint64(FlagTrustedHeight, def.P2P.TrustedHeight, "block height to trust for sync initialization (0 = start from genesis)")
477-
cmd.Flags().String(FlagTrustedHeaderHash, def.P2P.TrustedHeaderHash, "hash of the trusted header for security verification (hex-encoded)")
479+
cmd.Flags().String(FlagTrustedHeaderHash, def.P2P.TrustedHeaderHash, "hash of the trusted header for security verification")
480+
cmd.Flags().String(FlagTrustedDataHash, def.P2P.TrustedDataHash, "hash of the trusted data for security verification")
478481

479482
// RPC configuration flags
480483
cmd.Flags().String(FlagRPCAddress, def.RPC.Address, "RPC server address (host:port)")

0 commit comments

Comments
 (0)