Skip to content

Commit

Permalink
Adding the "Legacy operator key" option to the "Update Payout Address…
Browse files Browse the repository at this point in the history
…" and "Update Voting Key" dialogs.
  • Loading branch information
Bertrand256 committed Sep 6, 2023
1 parent ca6b367 commit 12819c8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
27 changes: 12 additions & 15 deletions src/upd_mn_registrar_dlg.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,10 @@ def setupUi(self, dialog: QDialog):
self.setWindowTitle("Update voting key")
elif self.show_upd_operator:
self.setWindowTitle("Update operator key")
if self.show_upd_operator:
if not self.new_bls_scheme_active:
self.chbLegacyOperatorKey.hide()
else:
self.chbLegacyOperatorKey.show()
else:
if not self.new_bls_scheme_active:
self.chbLegacyOperatorKey.hide()
else:
self.chbLegacyOperatorKey.show()
self.restore_cache_settings()
try:
self.read_data_from_network()
Expand Down Expand Up @@ -437,16 +434,16 @@ def validate_data(self) -> bool:
self.dmn_new_payout_address = ''

self.update_registrar_rpc_command = 'update_registrar'
if self.show_upd_operator:
if self.new_bls_scheme_active:
self.legacy_operator_key = self.chbLegacyOperatorKey.isChecked()
if self.legacy_operator_key:
# Use the "update_registrar_legacy" call only when v19 fork is active, otherwise the "update_registrar"
# call is used and basically does the same
self.update_registrar_rpc_command = 'update_registrar_legacy'
else:
self.legacy_operator_key = True
if self.new_bls_scheme_active:
self.legacy_operator_key = self.chbLegacyOperatorKey.isChecked()
if self.legacy_operator_key:
# Use the "update_registrar_legacy" call only when v19 fork is active, otherwise the "update_registrar"
# call is used and basically does the same
self.update_registrar_rpc_command = 'update_registrar_legacy'
else:
self.legacy_operator_key = True

if self.show_upd_operator:
key = self.edtOperatorKey.text().strip()
if key:
self.operator_key_err_msg = ''
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version_str = '0.9.36'
version_str = '0.9.37'

0 comments on commit 12819c8

Please sign in to comment.