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

Make cosigning servers optional #112

Merged
merged 2 commits into from
Oct 26, 2021
Merged

Conversation

darosior
Copy link
Member

No description provided.

Copy link
Contributor

@danielabrozzoni danielabrozzoni left a comment

Choose a reason for hiding this comment

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

ACK 5551cd3

Comment on lines -532 to +533
.is_some() =>
.any(|sub| matches!(sub, SemanticPolicy::Older(..))) =>
{
// Now, the mans are either a Threshold or directly pks (in the case the
// thresh is an 'and()', pks are flattened in the upper 'and()').
if let Some(thresh) = subs.iter().find_map(|sub| match sub {
return subs.iter().find_map(|sub| match sub {
Copy link
Member Author

Choose a reason for hiding this comment

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

This didn't belong in this commit.

@darosior darosior merged commit c928dba into revault:master Oct 26, 2021
@darosior darosior deleted the allow_no_cosig branch October 26, 2021 10:05
darosior added a commit to revault/revaultd that referenced this pull request Oct 27, 2021
5c116f7 qa: sanity check a deployment with no cosig (Antoine Poinsot)
9fb7d2a tests: make Cosigning Servers optional in the test framework (Antoine Poinsot)
d382d46 rpc: make cosig poll optional in 'setspendtx' (Antoine Poinsot)
dab90c1 doc: small fixups to the spending process docs (Antoine Poinsot)
3bb2f81 config: make the 'cosigners' field optional (Antoine Poinsot)

Pull request description:

  Although Cosigning Server aren't necessary to a Revault deployment, `revaultd` has deliberately been assuming they were always present for simplicity.

  This fixes it by:
  - allowing managers to not specify any Cosigning Server in their config
  - polling them at spending time only if they were specified

  This is based on #278 and #282 and needs revault/revault_tx#112

ACKs for top commit:
  danielabrozzoni:
    ACK 5c116f7 - tests pass in local, I didn't test mscompiler but I guess it's used by pytest anyways. All cases seem handled when git grepping `cosigs`/`cosigners`
  darosior:
    > ACK [5c116f7](5c116f7) - tests pass in local, I didn't test mscompiler but I guess it's used by pytest anyways. All cases seem handled when git grepping cosigs/cosigners

Tree-SHA512: 0a34c4ca812c969fbb2e02cb79e843504837745772442ace531959407237bc8f2521b706bcc9be5622c7d3044c4faf4bb861a16edc6743c734e4135f6ed1db8b
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.

None yet

2 participants