Skip to content

Commit

Permalink
Merge pull request #1316 from Concordium/fix-payday-update
Browse files Browse the repository at this point in the history
Fix timing of payday after P7->P8 protocol update.
  • Loading branch information
td202 authored Jan 20, 2025
2 parents 514a569 + 351d0d5 commit 0917569
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased changes

## 8.0.2

- Fix a bug where the P7->P8 protocol update affects payday timing.

## 8.0.1

- Fix a bug in computing the number of missed rounds in the event of a timeout.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -628,10 +628,10 @@ migrateBlockRewardDetails StateMigrationParametersP6ToP7{} _ _ (SomeParam TimePa
(BlockRewardDetailsV1 hbr) ->
BlockRewardDetailsV1
<$> migrateHashedBufferedRef (migratePoolRewardsP6 oldEpoch _tpRewardPeriodLength) hbr
migrateBlockRewardDetails StateMigrationParametersP7ToP8{} _ _ (SomeParam TimeParametersV1{..}) _ = \case
migrateBlockRewardDetails StateMigrationParametersP7ToP8{} _ _ (SomeParam TimeParametersV1{..}) oldEpoch = \case
(BlockRewardDetailsV1 hbr) ->
BlockRewardDetailsV1
<$> migrateHashedBufferedRef (migratePoolRewards (rewardPeriodEpochs _tpRewardPeriodLength)) hbr
<$> migrateHashedBufferedRef (migratePoolRewardsP6 oldEpoch _tpRewardPeriodLength) hbr

instance
(MonadBlobStore m, IsBlockHashVersion bhv, IsAccountVersion av) =>
Expand Down
2 changes: 1 addition & 1 deletion concordium-node/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion concordium-node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "concordium_node"
version = "8.0.1" # must be kept in sync with 'is_compatible_version' in 'src/configuration.rs'
version = "8.0.2" # must be kept in sync with 'is_compatible_version' in 'src/configuration.rs'
description = "Concordium Node"
authors = ["Concordium <[email protected]>"]
exclude = [".gitignore", ".gitlab-ci.yml", "test/**/*","**/**/.gitignore","**/**/.gitlab-ci.yml"]
Expand Down
1 change: 1 addition & 0 deletions docs/grpc2.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ If these are enabled then the following options become available
instance_state_lookup = true
get_next_account_sequence_number = true
get_consensus_info = true
get_consensus_detailed_status = true
get_ancestors = true
get_block_item_status = true
invoke_instance = true
Expand Down

0 comments on commit 0917569

Please sign in to comment.