mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-03-17 13:21:48 +01:00
add possibility to reannounce mints in dvms
This commit is contained in:
parent
531691243f
commit
5f6b16ce56
@ -24,6 +24,7 @@ from nostr_dvm.utils.print_utils import bcolors
|
||||
from nostr_dvm.utils.zap_utils import check_bolt11_ln_bits_is_paid, create_bolt11_ln_bits, parse_zap_event_tags, \
|
||||
parse_amount_from_bolt11_invoice, zaprequest, pay_bolt11_ln_bits, create_bolt11_lud16
|
||||
|
||||
#os.environ["RUST_BACKTRACE"] = "full"
|
||||
|
||||
class DVM:
|
||||
dvm_config: DVMConfig
|
||||
@ -84,6 +85,10 @@ class DVM:
|
||||
|
||||
await nutzap_wallet.announce_nutzap_info_event(nut_wallet, self.client, self.keys)
|
||||
|
||||
if self.dvm_config.REANNOUNCE_MINTS:
|
||||
nut_wallet.mints = dvm_config.NUZAP_MINTS
|
||||
await nutzap_wallet.announce_nutzap_info_event(nut_wallet, self.client, self.keys)
|
||||
|
||||
class NotificationHandler(HandleNotification):
|
||||
client = self.client
|
||||
dvm_config = self.dvm_config
|
||||
|
@ -72,6 +72,7 @@ class DVMConfig:
|
||||
NUZAP_MINTS = ["https://mint.minibits.cash/Bitcoin", "https://mint.gwoq.com"]
|
||||
ENABLE_AUTO_MELT = False
|
||||
AUTO_MELT_AMOUNT = 1000
|
||||
REANNOUNCE_MINTS = True
|
||||
|
||||
|
||||
def build_default_config(identifier):
|
||||
|
Loading…
x
Reference in New Issue
Block a user