Go to file
Gergely Imreh 3c3d064cad Fix "Invalid Fee" issue when start with fiat in send (exchange rate plugin)
Problem:

Using the exchange rate plugin in the send dialog one can start with
entering a fiat amount, e.g. 5 USD, and the BTC amount is updated,
but no fee is calculated.

In this case can get "Invalid fee" error until the BTC amount is
touched manually and fee is calculated. This can cause confusion
when "set transaction fees manually" is disabled.

Reproducing:

* enable exchange rate plugin
* start Electrum
* in send dialog fill out any receive address
* add a value (e.g. 5) into the fiat dialog and see the BTC value filled out
* fee is not filled out, or if disabled the manual transaction fees then directly
  get "Invalid Fee" error

Expectation:

* Fees are calculated just as it would be by filling out the BTC field

Fix:

Fixed by triggering a fee setting the same way as it is done when
the BTC field is edited, by calling `textEdited.emit("")` of the relevant
`BTCAmountEdit` element. One problematic  thing is that this also triggers
a change on the fiat we just edited, and thus cursor positions need to be saved
and restored. This is not ideal, there should be a way to avoid such cascades
and trigger fee calculation directly instead of by proxy.

Editing the fiat field with these changes is more or less okay, there can be
some strange steps when the decimal point is edited, but IMHO not worse
than the BTC field when the decimal point is edited there.
2014-09-30 11:28:42 +08:00
contrib update web script 2013-11-23 15:47:00 +01:00
data Update Japanese wordlist 2014-09-28 22:11:08 +09:00
docs docs 2014-07-30 12:59:40 +02:00
gui fix #849 2014-09-19 20:23:24 +02:00
icons add trustedcoin icon 2014-08-26 17:17:17 +02:00
lib rm print statement 2014-09-28 23:20:52 +02:00
plugins Fix "Invalid Fee" issue when start with fiat in send (exchange rate plugin) 2014-09-30 11:28:42 +08:00
pubkeys Add @wozz GPG Public Key 2014-04-01 08:49:28 -04:00
scripts add dump and getrequest to merchant script 2014-09-18 12:59:29 +02:00
.gitignore Added _trial_temp to .gitignore 2014-06-25 07:25:04 +02:00
.travis.yml add socks 2014-09-19 05:18:42 +02:00
AUTHORS update / merge authors from webpage 2013-04-30 00:48:04 +02:00
Info.plist Make sure we specify dual-arch 2013-07-16 12:15:23 +02:00
LICENCE mv client/* . && rm -fr client 2012-04-29 17:49:41 +01:00
MANIFEST.in fix: wordlists are in data 2014-09-18 23:43:25 +02:00
README update readme 2014-04-18 09:46:32 +02:00
RELEASE-NOTES release notes for 2.0 2014-08-21 23:58:31 +02:00
app.fil updated app.fil to new gui folder structure 2013-10-03 01:56:45 +02:00
electrum set env to python2 2014-09-19 14:05:00 +02:00
electrum.conf.sample more settings and comments 2012-10-12 18:15:58 +02:00
electrum.desktop electrum.desktop: Add as protocol handler for bitcoin: URIs. 2013-04-17 20:45:28 +02:00
electrum.icns New app icons 2013-10-23 01:10:52 +02:00
icons.qrc add trustedcoin icon 2014-08-26 17:17:17 +02:00
make_packages update packages script 2014-06-20 11:55:58 +02:00
mki18n.py move api key path 2014-01-27 10:37:25 +01:00
setup-release.py Coinbase BuyBack plugin 2014-01-05 00:19:23 -08:00
setup.py setup.py: Install qrscanner (it's a library now) 2014-09-21 00:58:31 +02:00

README

Electrum - lightweight Bitcoin client

Licence: GNU GPL v3
Author: Thomas Voegtlin
Language: Python
Homepage: https://electrum.org/


1. GETTING STARTED
------------------

To run Electrum from this directory, just do:

  ./electrum

If you install Electrum on your system, you can run it from any
directory:

  sudo python setup.py install
  electrum


To start Electrum from your web browser, see
http://electrum.org/bitcoin_URIs.html



2. HOW OFFICIAL PACKAGES ARE CREATED
------------------------------------

python mki18n.py
pyrcc4 icons.qrc -o gui/qt/icons_rc.py
python setup.py sdist --format=zip,gztar

On Mac OS X:

  # On port based installs
  sudo python setup-release.py py2app

  # On brew installs
  ARCHFLAGS="-arch i386 -arch x86_64" sudo python setup-release.py py2app --includes sip

  sudo hdiutil create -fs HFS+ -volname "Electrum" -srcfolder dist/Electrum.app dist/electrum-VERSION-macosx.dmg