Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Aug 22, 2024
1 parent 52eee15 commit bad60ec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion common/forks/forks.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ func GetHardforkName(config *params.ChainConfig, blockHeight, blockTimestamp uin
return "bernoulli"
} else if !config.IsDarwin(blockTimestamp) {
return "curie"
} else {
} else if !config.IsDarwinV2(blockTimestamp) {
return "darwin"
} else {
return "darwin-v2"
}
}

Expand Down Expand Up @@ -46,6 +48,8 @@ func GetMaxChunksPerBatch(config *params.ChainConfig, blockHeight, blockTimestam
return 15
} else if !config.IsDarwin(blockTimestamp) {
return 45
} else if !config.IsDarwinV2(blockTimestamp) {
return 45
} else {
return 45
}
Expand Down

0 comments on commit bad60ec

Please sign in to comment.