@@ -59,6 +59,9 @@ pub struct CliOptions {
|
||||
/// Where your relays list. And repository relays if not included in naddr
|
||||
#[arg(short, long, required = true)]
|
||||
pub relays: Vec<RelayUrl>,
|
||||
/// Proof of Work difficulty when creatring events
|
||||
#[arg(long, default_value_t = 0)]
|
||||
pub pow: u8,
|
||||
}
|
||||
|
||||
#[derive(Parser, Debug)]
|
||||
|
||||
@@ -91,6 +91,7 @@ impl CommandRunner for AnnounceArgs {
|
||||
maintainers,
|
||||
self.labels.into_iter().map(utils::str_trim).collect(),
|
||||
)?
|
||||
.pow(options.pow)
|
||||
.build(user_pubk);
|
||||
let nevent = Nip19Event::new(event.id.expect("There is an id"))
|
||||
.relays(write_relays.iter().take(3).cloned())
|
||||
|
||||
Reference in New Issue
Block a user