drk: dropped useless dao update-key functionality

This commit is contained in:
skoupidi
2025-10-30 17:47:10 +02:00
parent ae4ae3e9ec
commit 31d364e478
4 changed files with 6 additions and 105 deletions

View File

@@ -301,9 +301,6 @@ enum DaoSubcmd {
name: String,
},
/// Update DAO keys from stdin
UpdateKeys,
/// List imported DAOs (or info about a specific one)
List {
/// Name identifier for the DAO (optional)
@@ -1300,31 +1297,6 @@ async fn realmain(args: Args, ex: ExecutorPtr) -> Result<()> {
Ok(())
}
DaoSubcmd::UpdateKeys => {
let mut buf = String::new();
stdin().read_to_string(&mut buf)?;
let params = DaoParams::from_toml_str(&buf)?;
let drk = new_wallet(
blockchain_config.cache_path,
blockchain_config.wallet_path,
blockchain_config.wallet_pass,
None,
&ex,
args.fun,
)
.await;
let mut output = vec![];
if let Err(e) = drk.update_dao_keys(&params, &mut output).await {
print_output(&output);
eprintln!("Failed to update DAO keys: {e}");
exit(2);
}
print_output(&output);
Ok(())
}
DaoSubcmd::List { name } => {
let drk = new_wallet(
blockchain_config.cache_path,