Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions contrib/make_zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# swapserver_gui/manifest.json
# swapserver_gui/__init__.py
# swapserver_gui/swapserver_gui.py
# swapserver_gui/pow.py
# swapserver_gui/qt.py
#
# The zip is a plain archive: no signing key or secret is required to build it.
Expand Down
13 changes: 13 additions & 0 deletions plugins/swapserver_gui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,16 @@
type_=bool,
plugin='swapserver_gui',
)

# Resumable proof-of-work search state, as JSON (see swapserver_gui/pow.py).
# Holds the nostr pubkey the search applies to, the per-lane nonce cursors, and
# the best nonce seen so far. Persisting this means a proof-of-work that gets
# cancelled (e.g. by quitting Electrum mid-grind) is not thrown away: the next
# run continues into untested nonce space instead of re-scanning the range it
# already rejected.
SimpleConfig.SWAPSERVER_GUI_POW_STATE = ConfigVar(
'plugins.swapserver_gui.pow_state',
default='',
type_=str,
plugin='swapserver_gui',
)
Loading
Loading