|
|
@ -264,6 +264,14 @@ class SendScreen(CScreen): |
|
|
|
outputs = [(bitcoin.TYPE_ADDRESS, address, amount)] |
|
|
|
message = unicode(self.screen.message) |
|
|
|
amount = sum(map(lambda x:x[2], outputs)) |
|
|
|
if self.app.electrum_config.get('use_rbf'): |
|
|
|
from dialogs.question import Question |
|
|
|
d = Question(_('Should this transaction be replaceable?'), lambda b: self._do_send(amount, message, outputs, b)) |
|
|
|
d.open() |
|
|
|
else: |
|
|
|
self._do_send(amount, message, outputs, False) |
|
|
|
|
|
|
|
def _do_send(self, amount, message, outputs, rbf): |
|
|
|
# make unsigned transaction |
|
|
|
coins = self.app.wallet.get_spendable_coins() |
|
|
|
config = self.app.electrum_config |
|
|
@ -276,7 +284,7 @@ class SendScreen(CScreen): |
|
|
|
traceback.print_exc(file=sys.stdout) |
|
|
|
self.app.show_error(str(e)) |
|
|
|
return |
|
|
|
if self.app.electrum_config.get('use_rbf'): |
|
|
|
if rbf: |
|
|
|
tx.set_sequence(0) |
|
|
|
fee = tx.get_fee() |
|
|
|
msg = [ |
|
|
@ -458,9 +466,10 @@ class InvoicesScreen(CScreen): |
|
|
|
|
|
|
|
def do_delete(self, obj): |
|
|
|
from dialogs.question import Question |
|
|
|
def cb(): |
|
|
|
self.app.invoices.remove(obj.key) |
|
|
|
self.app.update_tab('invoices') |
|
|
|
def cb(result): |
|
|
|
if result: |
|
|
|
self.app.invoices.remove(obj.key) |
|
|
|
self.app.update_tab('invoices') |
|
|
|
d = Question(_('Delete invoice?'), cb) |
|
|
|
d.open() |
|
|
|
|
|
|
@ -527,9 +536,10 @@ class RequestsScreen(CScreen): |
|
|
|
|
|
|
|
def do_delete(self, obj): |
|
|
|
from dialogs.question import Question |
|
|
|
def cb(): |
|
|
|
self.app.wallet.remove_payment_request(obj.address, self.app.electrum_config) |
|
|
|
self.update() |
|
|
|
def cb(result): |
|
|
|
if result: |
|
|
|
self.app.wallet.remove_payment_request(obj.address, self.app.electrum_config) |
|
|
|
self.update() |
|
|
|
d = Question(_('Delete request?'), cb) |
|
|
|
d.open() |
|
|
|
|
|
|
|