diff --git a/types/chain_id.go b/types/chain_id.go index 5e15faab19a1..aa1be8bcab93 100644 --- a/types/chain_id.go +++ b/types/chain_id.go @@ -10,6 +10,8 @@ import ( const ChainIDFieldName = "chain_id" // ParseChainIDFromGenesis parses the chain-id from the genesis file using constant memory. +// +// TODO consider [encoding/json/v2](https://github.com/golang/go/discussions/63397) when it's ready. func ParseChainIDFromGenesis(reader io.Reader) (string, error) { decoder := jstream.NewDecoder(reader, 1).EmitKV() var chain_id string