Skip to content

Followu-up un #1468#1525

Merged
serban300 merged 2 commits into
paritytech:masterfrom
serban300:refactoring
Jul 28, 2022
Merged

Followu-up un #1468#1525
serban300 merged 2 commits into
paritytech:masterfrom
serban300:refactoring

Conversation

@serban300
Copy link
Copy Markdown
Collaborator

@serban300 serban300 commented Jul 28, 2022

Addressing the comments in #1468

This PR breaks existing runtime APIs - best_finalized() now returns Option<HeaderId<BlockHash, BlockNumber> instead of Option<(BlockNumber, BlockHash)>.

Maybe we should also change the signature of HeaderId in the future from HeaderId<BlockHash, BlockNumber> to HeaderId<BlockNumber, BlockHash>. I find it strange to have pub struct HeaderId<Hash, Number>(pub Number, pub Hash);. But for the moment I used it as it is.

Signed-off-by: Serban Iorga <serban@parity.io>
Change Runtime APIs best_finalized() signature to return Option<HeaderId>

Signed-off-by: Serban Iorga <serban@parity.io>
@serban300 serban300 added the PR-breaksrelay A PR that is going to break existing relayers. I.e. some Runtime changes render old relayers unusabl label Jul 28, 2022
@serban300 serban300 requested a review from svyatonik July 28, 2022 13:12
@serban300 serban300 self-assigned this Jul 28, 2022
Copy link
Copy Markdown
Contributor

@svyatonik svyatonik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you!

@serban300 serban300 merged commit a00e7bb into paritytech:master Jul 28, 2022
svyatonik pushed a commit that referenced this pull request Jul 17, 2023
* add tag creation for the runtimes release branch

* change githab actions versions to hashes

Co-authored-by: parity-processbot <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR-breaksrelay A PR that is going to break existing relayers. I.e. some Runtime changes render old relayers unusabl

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants