from decimal import Decimal
_ = lambda x:x
#from i18n import _
-from electrum.util import format_satoshis, set_verbosity
-from electrum.bitcoin import is_valid
+from electrum_nvc.util import format_satoshis, set_verbosity
+from electrum_nvc.bitcoin import is_valid
-from electrum import Wallet, WalletStorage
+from electrum_nvc import Wallet, WalletStorage
import tty, sys
self.network = network
storage = WalletStorage(config)
if not storage.file_exists:
- print "Wallet not found. try 'electrum create'"
+ print "Wallet not found. try 'electrum-nvc create'"
exit()
self.wallet = Wallet(storage)
msg = _("Synchronizing...")
else:
c, u = self.wallet.get_balance()
- msg = _("Balance")+": %f "%(Decimal( c ) / 100000000)
- if u: msg += " [%f unconfirmed]"%(Decimal( u ) / 100000000)
+ msg = _("Balance")+": %f "%(Decimal( c ) / 1000000)
+ if u: msg += " [%f unconfirmed]"%(Decimal( u ) / 1000000)
else:
msg = _("Not connected")
def do_send(self):
if not is_valid(self.str_recipient):
- self.show_message(_('Invalid Bitcoin address'))
+ self.show_message(_('Invalid Novacoin address'))
return
try:
- amount = int( Decimal( self.str_amount) * 100000000 )
+ amount = int( Decimal( self.str_amount) * 1000000 )
except Exception:
self.show_message(_('Invalid Amount'))
return
try:
- fee = int( Decimal( self.str_fee) * 100000000 )
+ fee = int( Decimal( self.str_fee) * 1000000 )
except Exception:
self.show_message(_('Invalid Fee'))
return