Skip to content

Commit

Permalink
Merge pull request #5784 from oasisprotocol/peternose/trivial/churp-r…
Browse files Browse the repository at this point in the history
…etain-shareholder

keymanager/src/churp: Serve key shares to lagging clients
  • Loading branch information
peternose authored Jul 24, 2024
2 parents 255937f + ba2b014 commit 190a5db
Show file tree
Hide file tree
Showing 7 changed files with 863 additions and 836 deletions.
1 change: 1 addition & 0 deletions .changelog/5784.trivial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
keymanager/src/churp: Serve key shares to lagging clients
4 changes: 2 additions & 2 deletions go/keymanager/churp/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
)

var (
// RPCMethodInit is the name of the `init` method.
RPCMethodInit = "churp/init"
// RPCMethodApply is the name of the `apply` method.
RPCMethodApply = "churp/apply"

// RPCMethodShareReduction is the name of the `share_reduction` method.
RPCMethodShareReduction = "churp/share_reduction"
Expand Down
2 changes: 1 addition & 1 deletion go/worker/keymanager/churp.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ func (s *submissionScheduler) trySubmitApplication(ctx context.Context, status *
Epoch: status.NextHandoff,
}
var rsp churp.SignedApplicationRequest
if err := timeCallEnclaveLocal(ctx, s.kmWorker, churp.RPCMethodInit, req, &rsp, status); err != nil {
if err := timeCallEnclaveLocal(ctx, s.kmWorker, churp.RPCMethodApply, req, &rsp, status); err != nil {
return fmt.Errorf("failed to generate verification matrix: %w", err)
}

Expand Down
Loading

0 comments on commit 190a5db

Please sign in to comment.