def on_btnSendUpdateTx_clicked(self, enabled): self.read_data_from_network() self.validate_data() if self.dmn_prev_payout_address == self.dmn_new_payout_address and \ self.dmn_prev_operator_pubkey == self.dmn_new_operator_pubkey and \ self.dmn_prev_voting_address == self.dmn_new_voting_address: WndUtils.warn_msg( 'Nothing is changed compared to the data stored in the Dash network.' ) else: self.send_upd_tx()
def apply_entropy_input(self) -> bool: success = True ent_str = self.edtHexEntropy.text() try: entropy = bytes.fromhex(ent_str) if len(entropy) not in (32, 24, 16): WndUtils.warn_msg( 'The entropy hex-string can only have 16, 24 or 32 bytes.') success = False else: self.entropy = entropy words = self.entropy_to_mnemonic(entropy) self.words_wdg.set_words(words) self.words_wdg.set_word_count(len(words)) except Exception as e: WndUtils.warn_msg(str(e)) success = False return success