Skip to content

Commit 17b822f

Browse files
committed
hardfork test > ledger.go: document GenerateForkConfigAndLedgers
1 parent 744f1b6 commit 17b822f

File tree

1 file changed

+4
-1
lines changed
  • src/app/hardfork_test/src/internal/hardfork

1 file changed

+4
-1
lines changed

src/app/hardfork_test/src/internal/hardfork/ledger.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ func (t *HardforkTest) GenerateAndValidatePreforkLedgers(analysis *BlockAnalysis
6464
return nil
6565
}
6666

67-
// GenerateForkConfigAndLedgers generates the fork configuration and ledgers
67+
// GenerateForkConfigAndLedgers does the following:
68+
// 1. generate fork ledgers with runtime-genesis-ledger
69+
// 2. patch the genesis time & slot for fork config with create_runtime_config.sh
70+
// 3. perform some base sanity check on the fork config
6871
func (t *HardforkTest) GenerateForkConfigAndLedgers(analysis *BlockAnalysisResult, forkConfigPath, forkLedgersDir, forkHashesFile, configFile, preforkGenesisConfigFile string, forkGenesisTs, mainGenesisTs int64) error {
6972
// Generate fork ledgers using fork network executable
7073
if err := t.GenerateForkLedgers(t.Config.ForkRuntimeGenesisLedger, forkConfigPath, forkLedgersDir, forkHashesFile); err != nil {

0 commit comments

Comments
 (0)