Skip to content
This repository was archived by the owner on Nov 30, 2021. It is now read-only.

Commit 9e6a38a

Browse files
committed
Updated vague comment
1 parent c0b6153 commit 9e6a38a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/ethermint.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,15 +277,17 @@ func (app *EthermintApp) LoadHeight(height int64) error {
277277
func (app *EthermintApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string,
278278
) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error) {
279279

280-
// as if they could withdraw from the start of the next block
280+
// Creates context with current height and checks txs to be functional by next block
281281
ctx := app.NewContext(true, abci.Header{Height: app.LastBlockHeight()})
282282

283+
// Export genesis to be used by SDK modules
283284
genState := app.mm.ExportGenesis(ctx)
284285
appState, err = codec.MarshalJSONIndent(app.cdc, genState)
285286
if err != nil {
286287
return nil, nil, err
287288
}
288289

290+
// Write validators to staking module to be used by TM node
289291
validators = staking.WriteValidators(ctx, app.stakingKeeper)
290292

291293
return appState, validators, nil

0 commit comments

Comments
 (0)