Skip to content

Commit 0917569

Browse files
authored
Merge pull request #1316 from Concordium/fix-payday-update
Fix timing of payday after P7->P8 protocol update.
2 parents 514a569 + 351d0d5 commit 0917569

File tree

6 files changed

+10
-5
lines changed

6 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased changes
44

5+
## 8.0.2
6+
7+
- Fix a bug where the P7->P8 protocol update affects payday timing.
8+
59
## 8.0.1
610

711
- Fix a bug in computing the number of missed rounds in the event of a timeout.

concordium-consensus/src/Concordium/GlobalState/Persistent/BlockState.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,10 +628,10 @@ migrateBlockRewardDetails StateMigrationParametersP6ToP7{} _ _ (SomeParam TimePa
628628
(BlockRewardDetailsV1 hbr) ->
629629
BlockRewardDetailsV1
630630
<$> migrateHashedBufferedRef (migratePoolRewardsP6 oldEpoch _tpRewardPeriodLength) hbr
631-
migrateBlockRewardDetails StateMigrationParametersP7ToP8{} _ _ (SomeParam TimeParametersV1{..}) _ = \case
631+
migrateBlockRewardDetails StateMigrationParametersP7ToP8{} _ _ (SomeParam TimeParametersV1{..}) oldEpoch = \case
632632
(BlockRewardDetailsV1 hbr) ->
633633
BlockRewardDetailsV1
634-
<$> migrateHashedBufferedRef (migratePoolRewards (rewardPeriodEpochs _tpRewardPeriodLength)) hbr
634+
<$> migrateHashedBufferedRef (migratePoolRewardsP6 oldEpoch _tpRewardPeriodLength) hbr
635635

636636
instance
637637
(MonadBlobStore m, IsBlockHashVersion bhv, IsAccountVersion av) =>

concordium-node/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

concordium-node/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "concordium_node"
3-
version = "8.0.1" # must be kept in sync with 'is_compatible_version' in 'src/configuration.rs'
3+
version = "8.0.2" # must be kept in sync with 'is_compatible_version' in 'src/configuration.rs'
44
description = "Concordium Node"
55
authors = ["Concordium <[email protected]>"]
66
exclude = [".gitignore", ".gitlab-ci.yml", "test/**/*","**/**/.gitignore","**/**/.gitlab-ci.yml"]

docs/grpc2.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ If these are enabled then the following options become available
6464
instance_state_lookup = true
6565
get_next_account_sequence_number = true
6666
get_consensus_info = true
67+
get_consensus_detailed_status = true
6768
get_ancestors = true
6869
get_block_item_status = true
6970
invoke_instance = true

0 commit comments

Comments
 (0)