Commit graph

5740 commits

Author SHA1 Message Date
Neil Booth
0fa38074de Fix menu editing 2015-09-01 17:08:12 +09:00
ThomasV
127f5f8804 Merge pull request #1434 from keepkey/master
made sure to check if x_pubkey is valid xpub before parsing it
2015-09-01 09:43:36 +02:00
ThomasV
6704844f31 Merge branch 'master' of git://github.com/spesmilo/electrum 2015-09-01 09:35:47 +02:00
ThomasV
bbe64621ca close wallet when window is closed 2015-09-01 09:35:32 +02:00
Darin Stanchfield
24af832fbd made sure to check if x_pubkey is valid xpub before parsing it 2015-09-01 00:22:42 -07:00
ThomasV
f84d873f62 rm unneeded import 2015-09-01 09:01:02 +02:00
Neil Booth
72f429c353 Remove unused callback 2015-09-01 14:41:06 +09:00
ThomasV
d4bba181c2 fix: show tabs in load_wallet 2015-09-01 01:18:02 +02:00
ThomasV
c6b5a70362 Merge pull request #1432 from romanz/remove-mmap
transaction: remove unused mmap-related code
2015-08-31 22:39:08 +02:00
ThomasV
cd734002f2 Merge pull request #1433 from romanz/master
test_transaction: fix test_sweep case
2015-08-31 22:38:57 +02:00
Roman Zeyde
a097c47b0b test_transaction: fix test_sweep case 2015-08-31 17:03:59 +03:00
Roman Zeyde
aadbcca6f0 transaction: remove unused mmap-related code 2015-08-31 16:46:51 +03:00
Neil Booth
809b4fa99f First attempt at 2.5 release notes. 2015-08-31 21:18:50 +09:00
Neil Booth
a5e0265010 Make exchange rate plugin a network thread job
This fixes a lot of thread error noise when closing down electrum.
2015-08-31 20:33:39 +09:00
Neil Booth
f5a8da43e9 Have fields update as exchange rates do
Currently the exchange rates plugin shows the converted
rate at the time of last user input.  If the fx rate
changes the send and receive tabs do not update.

This makes them update.  It also means that when enabling
the plugin, if the user had input a BTC amount in the send
or receive, the other fields will refresh.  This didn't
used to happen - they stayed blank.
2015-08-31 20:14:44 +09:00
Neil Booth
cd83b93e98 Return the result not the full dictionary 2015-08-31 18:26:14 +09:00
Neil Booth
f11e46e479 Remove unused import 2015-08-31 18:14:07 +09:00
Neil Booth
be7cb011a3 Simply verifier now network is in-process 2015-08-31 18:12:02 +09:00
Neil Booth
be8a87c322 Remove redundant line 2015-08-31 17:48:03 +09:00
Neil Booth
2a1b717a21 Fix scripts/peers
Needed an almost complete rewrite now we use select.
2015-08-31 17:44:50 +09:00
Neil Booth
748662dede Add a debugging traceback. 2015-08-31 14:38:19 +09:00
Neil Booth
2ee506ac03 Fix typo. 2015-08-31 14:05:38 +09:00
Neil Booth
768adfb337 Fix "restore" further by accepting --mpk 2015-08-31 13:52:18 +09:00
Neil Booth
2d05e7d891 Merge the network and network_proxy 2015-08-31 12:00:38 +09:00
Neil Booth
4d6a0f29ee Fix 'restore' command line to take -C. 2015-08-31 11:34:44 +09:00
ThomasV
9e71ef2d68 Merge pull request #1430 from keepkey/master
Added a "Cancel" button to transaction dialog
2015-08-30 19:01:56 +02:00
Darin Stanchfield
c73ea700e1 cleanup on error handling when a transaction is cancelled 2015-08-30 09:36:13 -07:00
Darin Stanchfield
0d4805f6fd added cancel button to transactional dialogs 2015-08-30 09:24:31 -07:00
ThomasV
8b7a8b1337 decode json args after sendind over socket 2015-08-30 17:46:51 +02:00
ThomasV
c7f5e3c2d5 deprecate lite gui (unmaintained) 2015-08-30 12:04:23 +02:00
ThomasV
92e0744470 Refactoring of daemon:
* gui and daemon are in the same process
 * commands that require network are sent to the daemon
 * open only one gui window per wallet
2015-08-30 11:31:51 +02:00
Neil Booth
f68c04e251 Only pass user edits to item_edited()
It was picking up changes made when the history tab updates when
a transaction changes confirmation state
2015-08-30 18:19:27 +09:00
Neil Booth
32c1b9cd59 Handle openalias properly in contacts tab
- Filter out of block explorer URLs
- Make them uneditable
2015-08-29 21:55:17 +09:00
Neil Booth
62fe37a863 Permit multiselect in contacts tab
You can select multiple contacts, and still do all the actions
you could do on a single contact.  In particular, paying to them
all and removing them all.

This covers the first two bullet points of #1372.

Finally, make the new contact dialog box have a sensible width
that can display a full address without scrolling
2015-08-29 21:36:42 +09:00
Neil Booth
607664e663 Fix contact editing.
This fixes some bugs in contact editing:

- a changed address is now checked for validity. Shows
  error if invalid and restores prior value
- the changes are saved, before they were dropped
- adding a new contact switches to the contacts tab,
  it used to switch to the address tab

As an enhancement, the contact name, as well as its address,
can be edited and updated.

Finally, the platform edit key can also be used to edit,
in adition to double-clicking.  This is typically the F2 key.
2015-08-29 21:22:08 +09:00
Neil Booth
851db130ea Cleaner column editing in MyTreeWidget
Also enables arbitrary columns to be edited, but nothing
uses that yet.
2015-08-29 20:58:08 +09:00
Neil Booth
f32cb71ed5 Clean up MyTreeWidget item editing 2015-08-28 22:55:25 +09:00
Neil Booth
351272f0b6 Small optimization for large wallets
Previously the verifier job would scan all transactions in
unverified_tx each time it ran.
Nothing was ever removed from this map; it would essentially
be the full set of transactions.
As the job runs about 10 times a second, for a wallet with 500 txs
this would be 5,000 useless loops a second.
This patch makes unverified_tx be simply the set of confirmed
transactions that haven't yet been verified.  txs are added once
confirmed, and removed once verified.  Hence it will almost always be
empty.
2015-08-28 12:39:19 +09:00
Neil Booth
478bde8afa Access to unverified_tx no longer needs a lock
Once the proxy thread jobs are created only they access this,
and they all run under the proxy thread, so there is no contention.
2015-08-28 11:10:50 +09:00
ThomasV
b7555240ef message reformatting 2015-08-27 08:24:49 +02:00
ThomasV
578a83fa30 show error message raised during sign_transaction. see issue #1422 2015-08-27 08:22:02 +02:00
Neil Booth
695aebaa80 Clean up imports; use self.print_error 2015-08-27 15:12:54 +09:00
Neil Booth
91049c8af8 Protect proxy against ill-formed server responses 2015-08-27 15:09:00 +09:00
Neil Booth
68e57bbaa7 Don't let the "send from list" sort itself
Order matters for correspondence of display position to internal list.
Fixes #1420.
2015-08-27 11:01:49 +09:00
ThomasV
85cc7b281b Merge pull request #1425 from kizmc/wizard-layout
Fixed GroupBox layout in installwizard
2015-08-26 19:33:33 +02:00
kizmc
77ebea15d0 Fixed GroupBox layout in installwizard 2015-08-26 18:35:21 +02:00
Neil Booth
9455815ad0 Merge requested_merkle and merkle_roots. 2015-08-26 17:12:40 +09:00
Neil Booth
b64c42b1eb Make the verifier a thread job instead of a thread
The verifier, like the synchronizer, now runs as part of the
network proxy thread.
2015-08-26 17:07:36 +09:00
Neil Booth
01491dd1d0 Have network_proxy use ThreadJob framework
Rename WalletSynchronizer to Synchronizer so that diagnostic messages,
which are based on class name, still refer to Synchronizer.
2015-08-26 16:50:40 +09:00
Neil Booth
56654ec4e9 Introduce thread job framework.
This is a cleaner generalization of the functionality added
to network_proxy.py a few months ago, whereby jobs can be
added and removed from a thread's main loop.  This allows
us to cut down on unnecessary threads.

A follow-up patch will update the proxy to this framework.
2015-08-26 16:41:12 +09:00