From f2352269131aa251596b3b94e4fa04bb77e7620d Mon Sep 17 00:00:00 2001 From: Matt Kocubinski Date: Fri, 31 May 2024 13:36:05 -0500 Subject: [PATCH] add TODO --- .vscode/launch.json | 12 +----------- server/v2/stf/stf.go | 2 ++ 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 42346a639ccb..f334bdcedfce 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -11,16 +11,6 @@ "program": "${fileDirname}", "args": ["-test.timeout", "30m", "-test.v"], "buildFlags": "-tags e2e" - }, - { - "name": "simapp v2", - "type": "go", - "request": "launch", - "mode": "debug", - "program": "simapp/v2/simdv2", - // "args": ["init", "--chain-id", "aurn-chain", "aurn-node"], - "args": ["start"], - // "args": ["genesis", "add-genesis-account", "cosmos130ch823d2pwh9wpfm335plg6ktatzw7j427qgs", "1000000000stake"], - }, + } ] } diff --git a/server/v2/stf/stf.go b/server/v2/stf/stf.go index 380bdc742a59..059569e81101 100644 --- a/server/v2/stf/stf.go +++ b/server/v2/stf/stf.go @@ -411,6 +411,8 @@ const headerInfoPrefix = 0x37 // setHeaderInfo sets the header info in the state to be used by queries in the future. func (s STF[T]) setHeaderInfo(state store.WriterMap, headerInfo header.Info) error { + // TODO storing header info is too low level here, stf should be stateless. + // We should have a keeper that does this. runtimeStore, err := state.GetWriter(appmanager.ConsensusIdentity) if err != nil { return err