Create a constant for 100000000 and use it
Use same name as is in bitcoind. Note that one of the constants in text.py had the wrong number of zeroes previously...
This commit is contained in:
@@ -36,7 +36,7 @@ import shutil
|
||||
|
||||
from util import *
|
||||
|
||||
bitcoin = lambda v: v * 100000000
|
||||
bitcoin = lambda v: v * COIN
|
||||
|
||||
def IconButton(filename, parent=None):
|
||||
pixmap = QPixmap(filename)
|
||||
|
||||
@@ -30,7 +30,7 @@ from PyQt4.QtGui import *
|
||||
from PyQt4.QtCore import *
|
||||
import PyQt4.QtCore as QtCore
|
||||
|
||||
from electrum.bitcoin import MIN_RELAY_TX_FEE, is_valid
|
||||
from electrum.bitcoin import MIN_RELAY_TX_FEE, COIN, is_valid
|
||||
from electrum.plugins import run_hook
|
||||
|
||||
import icons_rc
|
||||
@@ -1092,7 +1092,7 @@ class ElectrumWindow(QMainWindow):
|
||||
return
|
||||
|
||||
amount = sum(map(lambda x:x[2], outputs))
|
||||
confirm_amount = self.config.get('confirm_amount', 100000000)
|
||||
confirm_amount = self.config.get('confirm_amount', COIN)
|
||||
if amount >= confirm_amount:
|
||||
o = '\n'.join(map(lambda x:x[1], outputs))
|
||||
if not self.question(_("send %(amount)s to %(address)s?")%{ 'amount' : self.format_amount(amount) + ' '+ self.base_unit(), 'address' : o}):
|
||||
|
||||
Reference in New Issue
Block a user