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

Stub out places where we need to add logic for 3PH #469

Merged
merged 4 commits into from
Feb 26, 2023

Conversation

zenhack
Copy link
Contributor

@zenhack zenhack commented Feb 25, 2023

Should have no functional change, except for:

  • The exact text of some errors
  • Some codepaths will panic if a network is provided in rpc.Options; should not affect any existing applications, obviously.

This patch just stubs out the places where logic will need to be modified to support 3PH; I think it will be helpful to have these enumerated up front. I took some pointers from the Haskell implementation on this, since I added similar markers as comments when I was writing that in the first place.

I plan on adding panic("TODO: 3PH") everywhere we need to add some 3PH
related logic; this shouldn't affect existing applications, since these
are all conditional on us actually having a non-nil network.
I went through the Haskell implementation to help enumerate these,
having done something similar when I was writing that.
@zenhack zenhack merged commit b6125ce into capnproto:main Feb 26, 2023
@zenhack zenhack deleted the mark-3ph branch February 26, 2023 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants