Skip to content

Commit

Permalink
add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski committed May 31, 2024
1 parent bf16d79 commit f235226
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
12 changes: 1 addition & 11 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
},
}
]
}
2 changes: 2 additions & 0 deletions server/v2/stf/stf.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f235226

Please sign in to comment.