mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
add recipient to addressbook
This commit is contained in:
parent
368fa7980f
commit
89d6971b8c
2 changed files with 5 additions and 1 deletions
|
@ -561,6 +561,9 @@ class Wallet:
|
||||||
out = self.send_tx(tx)
|
out = self.send_tx(tx)
|
||||||
if out != tx_hash:
|
if out != tx_hash:
|
||||||
return False, "error: hash mismatch"
|
return False, "error: hash mismatch"
|
||||||
|
if to_address not in self.addressbook:
|
||||||
|
self.addressbook.append(to_address)
|
||||||
|
if label:
|
||||||
wallet.labels[tx_hash] = label
|
wallet.labels[tx_hash] = label
|
||||||
wallet.save()
|
wallet.save()
|
||||||
return True, tx_hash
|
return True, tx_hash
|
||||||
|
|
|
@ -462,6 +462,7 @@ class BitcoinGUI:
|
||||||
payto_entry.set_text("")
|
payto_entry.set_text("")
|
||||||
label_entry.set_text("")
|
label_entry.set_text("")
|
||||||
amount_entry.set_text("")
|
amount_entry.set_text("")
|
||||||
|
self.update_sending_tab()
|
||||||
else:
|
else:
|
||||||
show_message( msg )
|
show_message( msg )
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue