Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix a bug
Browse files Browse the repository at this point in the history
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
@@ -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"
}
}

@@ -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
}

0 comments on commit bad60ec

Please sign in to comment.