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

Add orphan leader proofs import #600

Merged
merged 2 commits into from
Mar 4, 2024
Merged

Add orphan leader proofs import #600

merged 2 commits into from
Mar 4, 2024

Conversation

zeegomo
Copy link
Contributor

@zeegomo zeegomo commented Feb 29, 2024

No description provided.

Comment on lines +416 to +421
engine.receive_block(block_with_orphans(
1,
*engine.genesis(),
coin_new,
vec![fork_1.header().clone()]
)),
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't this clearer?

Suggested change
engine.receive_block(block_with_orphans(
1,
*engine.genesis(),
coin_new,
vec![fork_1.header().clone()]
)),
engine.receive_block(
block(1, *engine.genesis(), coin_new)
.with_orphans(vec![fork_1.header().clone()])
),

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would prefer not to provide an api to change the header of a block after it has been created

Copy link
Contributor

@davidrusu davidrusu left a comment

Choose a reason for hiding this comment

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

looks good

@zeegomo zeegomo merged commit 31c5f69 into master Mar 4, 2024
7 checks passed
@zeegomo zeegomo deleted the cryptarchia-engine branch March 4, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants