Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
believethehype committed Jan 2, 2025
1 parent fc2fa91 commit 7b55e27
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions nostr_dvm/dvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ async def run_dvm(self, dvm_config, admin_config, stop_thread):
self.dvm_config = dvm_config
self.admin_config = admin_config
self.keys = Keys.parse(dvm_config.PRIVATE_KEY)
self.stop_thread = stop_thread
relaylimits = RelayLimits.disable()
opts = Options().relay_limits(relaylimits) #.difficulty(28)

Expand Down Expand Up @@ -925,7 +924,7 @@ async def do_work(job_event, amount):

try:

while not self.stop_thread:
while self.stop_thread is False:
for dvm in self.dvm_config.SUPPORTED_DVMS:
await dvm.schedule(self.dvm_config)

Expand Down Expand Up @@ -966,3 +965,5 @@ async def do_work(job_event, amount):
except BaseException:
print("ende")

print("and now my watch has ended.")

4 changes: 2 additions & 2 deletions nostr_dvm/interfaces/dvmtaskinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ async def run_dvm(self, dvm_config, admin_config):
pass

def run(self):

stop_threads = False

try:
self.nostr_dvm_thread = Thread(target=self.DVM, args=[self.dvm_config, self.admin_config, lambda: self.stop_threads], daemon=False)
self.nostr_dvm_thread = Thread(target=self.DVM, args=[self.dvm_config, self.admin_config, lambda: stop_threads], daemon=False)
self.nostr_dvm_thread.start()
except BaseException as e:
print("gone")
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

VERSION = '1.0.8'
VERSION = '1.0.9'
DESCRIPTION = 'A framework to build and run Nostr NIP90 Data Vending Machines'
LONG_DESCRIPTION = ('A framework to build and run Nostr NIP90 Data Vending Machines. See the github repository for more information')

Expand Down
1 change: 1 addition & 0 deletions tests/discovery_on_this_day_and_olas.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def build_example_gallery(name, identifier, admin_config, options, image, cost=0
dvm_config.UPDATE_DATABASE = update_db
dvm_config.FIX_COST = cost
dvm_config.CUSTOM_PROCESSING_MESSAGE = processing_msg
dvm_config.SEND_FEEDBACK_EVENTS = False
dvm_config.DELETE_ANNOUNCEMENT_ON_SHUTDOWN = delete_nip_89_on_shutdown
admin_config.LUD16 = dvm_config.LN_ADDRESS

Expand Down

0 comments on commit 7b55e27

Please sign in to comment.