Skip to content

Commit

Permalink
Merge pull request #297 from chainbound/nico/chore/bolt-boost-delegat…
Browse files Browse the repository at this point in the history
…ions

feat(bolt-boost): delegations/revocations update
  • Loading branch information
thedevbirb authored Oct 17, 2024
2 parents 0fd6b97 + 91249f2 commit a5daabb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bolt-boost/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ async fn submit_constraints(
#[tracing::instrument(skip_all)]
async fn delegate(
State(state): State<PbsState<BuilderState>>,
Json(delegation): Json<SignedDelegation>,
Json(delegations): Json<Vec<SignedDelegation>>,
) -> Result<impl IntoResponse, PbsClientError> {
info!(delegatee = %delegation.message.delegatee_pubkey, validator = %delegation.message.validator_pubkey, "Delegating signing rights");
post_request(state, DELEGATE_PATH, &delegation).await?;
info!(count = %delegations.len(), "Delegating signing rights");
post_request(state, DELEGATE_PATH, &delegations).await?;
Ok(StatusCode::OK)
}

Expand All @@ -157,10 +157,10 @@ async fn delegate(
#[tracing::instrument(skip_all)]
async fn revoke(
State(state): State<PbsState<BuilderState>>,
Json(revocation): Json<SignedRevocation>,
Json(revocations): Json<Vec<SignedRevocation>>,
) -> Result<impl IntoResponse, PbsClientError> {
info!(delegatee = %revocation.message.delegatee_pubkey, validator = %revocation.message.validator_pubkey, "Revoking signing rights");
post_request(state, REVOKE_PATH, &revocation).await?;
info!(count = %revocations.len(), "Revoking signing rights");
post_request(state, REVOKE_PATH, &revocations).await?;
Ok(StatusCode::OK)
}

Expand Down

0 comments on commit a5daabb

Please sign in to comment.