Skip to content

Commit

Permalink
tests(app): do not return spend key from generate_penumbra_validator
Browse files Browse the repository at this point in the history
  • Loading branch information
cratelyn committed Mar 18, 2024
1 parent a6584c6 commit 3ca8c46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/core/app/tests/common/test_node_builder_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl BuilderExt for Builder {
for (consensus_vk, _) in keyring {
// Generate a penumbra validator with this consensus key, and a corresponding
// allocation of delegation tokens.
let (validator, allocation, _) = generate_penumbra_validator(consensus_vk);
let (validator, allocation) = generate_penumbra_validator(consensus_vk);

// Add the validator to the staking component's genesis content.
trace!(?validator, "adding validator to staking genesis content");
Expand All @@ -56,7 +56,7 @@ impl BuilderExt for Builder {
/// Generates a [`Validator`][PenumbraValidator] given a consensus verification key.
fn generate_penumbra_validator(
consensus_key: &ed25519_consensus::VerificationKey,
) -> (PenumbraValidator, Allocation, penumbra_keys::keys::SpendKey) {
) -> (PenumbraValidator, Allocation) {
use decaf377_rdsa::VerificationKey;
use penumbra_keys::keys::{SpendKey, SpendKeyBytes};
use penumbra_stake::DelegationToken;
Expand Down Expand Up @@ -100,7 +100,7 @@ fn generate_penumbra_validator(
address,
};

(v, allocation, spend_key)
(v, allocation)
}

fn log_validator(
Expand Down

0 comments on commit 3ca8c46

Please sign in to comment.