Skip to content

Commit

Permalink
fixup! Merge branch 'mariari/basic-abstraction' (#2127)
Browse files Browse the repository at this point in the history
  • Loading branch information
brentstone committed Dec 29, 2023
1 parent 40a58f9 commit 6dd4ca5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions apps/src/lib/client/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -768,10 +768,12 @@ pub async fn submit_become_validator(
&wallet.find_key_by_pk(&consensus_key, None).expect(
"unable to find consensus key pair in the wallet",
),
).unwrap();
)
.unwrap();
// To avoid wallet deadlocks in following operations
drop(wallet);
tendermint_node::write_validator_state(tendermint_home).unwrap();
tendermint_node::write_validator_state(tendermint_home)
.unwrap();

// Write Namada config stuff or figure out how to do the above
// tendermint_node things two epochs in the future!!!
Expand Down
3 changes: 2 additions & 1 deletion tests/src/e2e/ledger_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3598,7 +3598,8 @@ fn change_consensus_key() -> Result<()> {
namada_apps::node::ledger::tendermint_node::write_validator_key(
cometbft_dir,
&new_sk,
);
)
.unwrap();
println!(
"{}",
"Done setting up the new validator consensus key in CometBFT.".blue()
Expand Down

0 comments on commit 6dd4ca5

Please sign in to comment.