Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!(chain): Make spk revelation return owned spks #1341

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LLFourn
Copy link
Contributor

@LLFourn LLFourn commented Feb 12, 2024

Unfortunately there's no way to return a lifetime to something from a &mut self that doesn't extend the lifetime of the mutable borrow. So it's better not borrow at all here.

I think @evanlinjin tried to make this change some time ago but I NACK'd it. Now I understand why it's unavoidable. Sorry!

Unfortunately there's no way to return a lifetime to something from a
&mut self that doesn't extend the lifetime of the mutable borrow.
@notmandatory notmandatory added module-blockchain api A breaking API change labels Mar 18, 2024
@notmandatory notmandatory added this to the 1.0.0-alpha milestone Apr 22, 2024
@notmandatory
Copy link
Member

This needs a rebase but otherwise looks good to me.

Copy link
Contributor

@oleonardolima oleonardolima left a comment

Choose a reason for hiding this comment

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

Concept ACK

@notmandatory
Copy link
Member

@LLFourn is it OK if someone else takes this over and rebases it?

@ValuedMammal
Copy link
Contributor

I think it can be done in #1438

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api A breaking API change module-blockchain
Projects
Status: Needs Review
Development

Successfully merging this pull request may close these issues.

None yet

4 participants