Skip to content

Commit 01e2a0b

Browse files
committed
docs(evm): correct the blockTag field comment to list all three accepted tags
FinalityConfig.BlockTag's own comment said state is read at finalized or safe, but Validate has accepted latest as a third legal value since it was introduced for the local, instant-mining test harness. The comment now names all three and repeats, next to the field itself, what BlockTagLatest's own doc comment already says: it carries no reorg protection and is only appropriate for a local chain. No behavior changes; latest was already accepted before this commit. Signed-off-by: atharrva01 <atharvaborade568@gmail.com>
1 parent b59d821 commit 01e2a0b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

x/token/services/network/evm/config.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ type ContractsConfig struct {
8080

8181
// FinalityConfig controls how transaction finality is observed.
8282
type FinalityConfig struct {
83-
// BlockTag is the tag state is read at (finalized or safe).
83+
// BlockTag is the tag state is read at: finalized (default, no reorg risk), safe, or latest (no
84+
// reorg protection at all; only appropriate for a local, instant-mining chain).
8485
BlockTag string `yaml:"blockTag"`
8586
// PollInterval is the delay between status polls.
8687
PollInterval time.Duration `yaml:"pollInterval"`

0 commit comments

Comments
 (0)