Skip to content

Commit 24fd19d

Browse files
committed
hf test go: add a note for further refactoring on legacy fork
1 parent 9156190 commit 24fd19d

File tree

1 file changed

+3
-0
lines changed
  • src/app/hardfork_test/src/internal/hardfork

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ func (t *HardforkTest) Run() error {
125125
case config.Legacy:
126126

127127
beforeShutdown = func(t *HardforkTest, analysis *BlockAnalysisResult) error {
128+
// TODO: refactor so that:
129+
// 1. stuff here go into LegacyForkPhase
130+
// 2. fork validation is agnostic to fork method and it's checked regardless of fork method
128131
t.Logger.Info("Phase 2: Forking the legacy way...")
129132

130133
forkConfigBytes, err := t.GetForkConfig(t.AnyPortOfType(PORT_REST))

0 commit comments

Comments
 (0)