Commit Graph

5325 Commits

Author SHA1 Message Date
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
ThomasV 6682135a23 Merge pull request #1424 from romanz/typo_fix
typo fix: rename pay_from_URI() -> pay_to_URI()
2015-08-25 16:37:49 +02:00
ThomasV bbe5cbecfd Merge pull request #1423 from romanz/tests
Add more unit tests for lib.transaction
2015-08-25 16:34:30 +02:00
Roman Zeyde fea97454b1 typo fix: rename pay_from_URI() -> pay_to_URI() 2015-08-25 17:29:52 +03:00
Roman Zeyde eb66289314 test_transaction: add BCDataStream test case 2015-08-25 15:51:22 +03:00
Roman Zeyde 33b78551a3 test_transaction: add Transaction.sweep() test case 2015-08-25 15:21:44 +03:00
ThomasV 023cd9eeb0 Merge pull request #1421 from romanz/tests
test_transaction: add unit tests for lib.transaction module
2015-08-25 11:12:26 +02:00
Roman Zeyde 6a7e145053 test_transaction: add test suite for lib.transaction module 2015-08-25 12:05:49 +03:00
Neil Booth a056f9804b Notify when a chunk of headers is validated
And a couple of cosmetic changes.
This should fix #1379.
2015-08-25 14:27:53 +09:00
ThomasV f9ab33592f Merge pull request #1419 from romanz/tests
test_mnemonic: add tests for mnemonics
2015-08-24 17:09:31 +02:00
Roman Zeyde 3c3d96f69e test_mnemonic: add tests for mnemonics 2015-08-24 17:35:17 +03:00
ThomasV 686153bed3 Merge pull request #1418 from romanz/tests
Add test_account for testing lib.account module
2015-08-24 14:52:39 +02:00
ThomasV a28cb7d970 Merge branch 'master' of git://github.com/spesmilo/electrum 2015-08-24 14:41:40 +02:00
ThomasV 1cd9cb5d2b backport release notes 2015-08-24 14:41:28 +02:00
Roman Zeyde bb97624de2 test_account: add test case for OldAccount 2015-08-24 10:57:41 +03:00
Roman Zeyde 893849ab39 test_account: add test case for BIP32_Account 2015-08-24 10:57:41 +03:00