Skip to content

Commit

Permalink
fix(sidecar): validator and not delegatee again
Browse files Browse the repository at this point in the history
  • Loading branch information
thedevbirb committed Oct 30, 2024
1 parent 0db859f commit 0398974
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bolt-sidecar/src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@ impl<C: StateFetcher, ECDSA: SignerECDSA> SidecarDriver<C, ECDSA> {
opts.constraint_signing.delegations_path.as_ref()
{
let delegations = read_signed_delegations_from_file(delegations_file_path)?;
let delegatees =
delegations.iter().map(|d| d.message.delegatee_pubkey.clone()).collect::<Vec<_>>();
let validator_public_keys =
delegations.iter().map(|d| d.message.validator_pubkey.clone()).collect::<Vec<_>>();
constraints_client.add_delegations(delegations);
delegatees
validator_public_keys
} else {
Vec::from_iter(constraint_signer.available_pubkeys())
};
Expand Down

0 comments on commit 0398974

Please sign in to comment.