feat: New config pow command to set the default PoW difficulty

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb
2025-06-07 19:54:40 +00:00
parent 53a2eb5bda
commit 51bd239024
8 changed files with 100 additions and 7 deletions

View File

@@ -126,7 +126,7 @@ impl CommandRunner for NewArgs {
self.label,
)?
.dedup_tags()
.pow(options.pow)
.pow(options.pow.unwrap_or_default())
.tags(content_details.clone().into_tags())
// p-tag the reset of the reposotoies owners
.tags(naddrs_iter.clone().map(|n| Tag::public_key(n.public_key)))