Commit Graph

734 Commits

Author SHA1 Message Date
Neil Booth
889174ae19 Show wallet basename in tray tooltip for those of us using multiple wallets
Move basename (and title) logic to the wallet and use those member functions.
2015-04-28 19:32:56 +09:00
ThomasV
cb09d88322 fix bug introduced in 21673c95f4 2015-04-24 21:01:34 +02:00
Maran
21673c95f4 Fix wallet write to support windows 2015-04-24 13:14:17 +02:00
ThomasV
4a28c88946 atomic write wallet file 2015-04-23 17:12:02 +02:00
ThomasV
e8189490e9 store contacts in a separate file, shared between wallets 2015-04-23 12:16:46 +02:00
ThomasV
065145e557 get_history: return empty history if balance check fails 2015-04-23 09:49:24 +02:00
ThomasV
524db55b90 don't display hashes or addresses as default labels 2015-04-19 14:30:44 +02:00
ThomasV
eac3129cba Merge pull request #1135 from Kausheel/get_addr_received
Add wallet function get_addr_received()
2015-04-19 13:38:45 +02:00
ThomasV
036f96cf35 store invoices in a separate file, with their status 2015-04-13 14:19:59 +02:00
ThomasV
eb9802356a fix variable name in from_seed 2015-04-09 18:59:51 +02:00
Kausheel Kumar
8cf793ab98 Add wallet function get_addr_received() 2015-04-09 01:44:44 +10:00
ThomasV
b8a72180c7 HistoryWidget class; address history window 2015-04-04 18:26:52 +02:00
ThomasV
0a7b585b6c redo default labels with incoming tx outputs 2015-04-04 15:55:28 +02:00
ThomasV
75cf142be0 fix typo 2015-04-03 11:30:36 +02:00
ThomasV
a3422d3fae generic multisig wallet constructor. fixes #1129 2015-04-03 11:27:57 +02:00
ThomasV
e3e5d95794 fix account key bug 2015-03-31 22:44:00 +02:00
ThomasV
a44f1bc4d3 Merge pull request #1115 from romanz/offline-mode-fix
Offline mode fixes
2015-03-31 13:57:27 +02:00
ThomasV
f77311328a add get_completions to wallet 2015-03-31 12:01:42 +02:00
ThomasV
4d7b68658b fix delete_contact 2015-03-31 11:29:18 +02:00
Roman Zeyde
a7440fc89c wallet: skip history sort when verifier is not set 2015-03-31 09:32:21 +03:00
ThomasV
da502076bd fix get_history 2015-03-30 20:39:06 +02:00
ThomasV
2d84deeaad sanity check history 2015-03-30 14:10:46 +02:00
ThomasV
ec11e58add handle pruning in wallet.txi/txo 2015-03-30 14:10:46 +02:00
ThomasV
3d1fa1e27f find_pay_to_pubkey_address 2015-03-30 14:10:46 +02:00
ThomasV
bc3ed470e1 use hash as default label 2015-03-30 14:10:46 +02:00
ThomasV
e3de121be9 store deserialized tx in/out in wallet file for fast computation 2015-03-30 14:10:46 +02:00
ThomasV
973f7f9fe5 mpk window: detect self and cosigner keys 2015-03-24 17:33:08 +01:00
ThomasV
1369c02011 safeguard: do not let daemon treads write wallet file 2015-03-24 12:23:11 +01:00
ThomasV
a5a7a34c2d IOError: add file path to exception message 2015-03-15 08:04:02 +01:00
ThomasV
5b8588ee90 rename spv class, use own print_error 2015-03-14 09:20:27 +01:00
ThomasV
72688a5cfa clean implementation of daemon threads 2015-03-13 23:04:29 +01:00
ThomasV
58f9ab3492 add a lock to wallet.synchronize() and fix #1049 2015-03-13 16:51:31 +01:00
Christopher Gurnee
4ba4611599 check arg type in change_gap_limit() 2015-03-07 12:51:35 -05:00
ThomasV
15636282e4 fix issue #1061: normalize trezor passphrases. Add passphrases to restore from seed with trezor. 2015-03-05 17:09:39 +01:00
ThomasV
490de0d8ce fix password bug with xprv wallet 2015-03-04 18:57:28 +01:00
ThomasV
78573e202d add try..except arount get_next_account 2015-02-27 21:35:50 +01:00
ThomasV
52b43c57b8 android create and restore 2015-02-25 22:48:47 +01:00
ThomasV
18d16ba82c bugfix: add pubkey to PendingAccount, to be able to spend from it 2015-02-23 19:33:31 +01:00
ThomasV
0934976f3a fix #1011 2015-02-17 10:30:10 +01:00
ThomasV
76cbafe754 fix Master Public Keys dialog 2015-02-05 13:29:18 +01:00
ThomasV
8982a463a4 allow change_gap_limit in bip32 wallets 2015-02-03 16:26:00 +01:00
ThomasV
036147db44 fix: change_gap_limit 2015-02-03 16:18:42 +01:00
ThomasV
2f7b8ce864 fix wallet.can_sign: use isinstance with BIP32 class 2015-02-03 13:14:35 +01:00
ThomasV
ca01e1d7be handle 1.9.8 bug that created seed_v6 wallets 2015-02-03 12:20:03 +01:00
ThomasV
0b674eb35d fix can_sign: detect if OldWallet is used 2015-02-02 16:06:29 +01:00
ThomasV
395312e70f fix: add wallet types only if available 2015-02-01 10:44:29 +01:00
ThomasV
4ce699bf25 disable key import in all bip32 wallet classes; users should create an ImportedWallet 2015-01-23 13:54:33 +01:00
ThomasV
84fc4574d6 add password when creating imported wallet 2015-01-23 00:06:17 +01:00
ThomasV
8863b6f294 remove remaining instances of op_return type 2015-01-18 17:23:21 +01:00
Charles Lehner
6d2d53b43f Move root_name to parent class 2015-01-11 13:58:03 -05:00
ThomasV
da968b60e4 drop support for multiple accounts (bip44) in standard wallets 2015-01-05 00:33:10 +01:00
ThomasV
9f9bab6cf0 fix issue #968 2014-12-31 19:21:54 +01:00
ThomasV
63c7a27d7e add InvalidPassword exception 2014-12-03 22:35:05 +01:00
ThomasV
7ca3ba4e80 various fixes for reveive_requests 2014-11-24 12:28:11 +01:00
ThomasV
f2988b657b Merge branch 'contacts' of github.com:Tafelpoot/electrum into Tafelpoot-contacts 2014-11-24 11:55:57 +01:00
ThomasV
01cf04079f add NotEnoughFunds exception 2014-11-20 19:10:43 +01:00
ThomasV
6d8eebe2db raise exception when seed version does not match 2014-11-15 14:42:35 +01:00
Tafelpoot
218a1ee2f7 Updated Requests
- added Date and Account field to Saved Requests
- requests are now saved as dict()
  old requests will be deleted!!
- Account field is hidden when only 1 account is available
- address line now follows the current_account
- saved requests is sortable, default sorted by date
- saved requests only shows request for current_account
2014-11-14 19:47:34 +01:00
ThomasV
9b28ed9ba0 do not require name to create an account 2014-11-14 14:08:28 +01:00
ThomasV
c5b47bd513 always store next_account a PendinfAccount is created 2014-11-14 13:48:15 +01:00
Tafelpoot
b6f0f8c02c Merge branch 'master' of https://github.com/spesmilo/electrum into showaccount 2014-11-05 00:38:02 +01:00
Tafelpoot
5c12c2bc2f optimized, cleaned up, commented 2014-11-05 00:37:43 +01:00
ThomasV
fb75e2e53d fix get_private_key_from_xpubkey 2014-11-04 10:50:28 +01:00
ThomasV
e6317ceca1 Merge pull request #909 from Tafelpoot/showaccount
add account info for internal transfer description
2014-10-31 15:01:22 +01:00
ThomasV
16f36ee6e2 Extend transaction serialization, format to handle unsigned inputs where only the address is known, the public key is unknown. 2014-10-31 13:01:16 +01:00
Tafelpoot
b3684ad40a add account info for internal transfer description 2014-10-30 17:56:36 +01:00
ThomasV
581ed1ed26 separate signtxwithkey and signtxwithwallet, and simplify sign_transaction 2014-10-30 16:36:29 +01:00
ThomasV
cf1fbbf3ad fix is_watching_only for imported wallets 2014-10-27 15:47:10 +01:00
ThomasV
063fc4bb2e fix #895 2014-10-24 18:50:57 +02:00
Tafelpoot
d9c5250a6f removed trailing whitespace and fixed indentation in history widget 2014-10-21 19:05:51 +02:00
ThomasV
590659ff4d get_tx_fee 2014-09-15 12:57:56 +02:00
ThomasV
bde0ca3ea1 set default fee to 0.5mBTC/kb 2014-09-15 07:35:05 +02:00
ThomasV
8d396997dc fee estimate: kilobyte 2014-09-14 21:58:13 +02:00
ThomasV
ad4449dc38 add v9 to list of tagged versions 2014-09-13 19:37:42 +02:00
ThomasV
1df007483e check seed_version first 2014-09-13 19:28:09 +02:00
ThomasV
5c5bb6ae3a make estimated fee higher than MIN_RELAY 2014-09-13 15:25:26 +02:00
ThomasV
5f4bcb420b param to addresses is optional 2014-09-13 14:54:02 +02:00
ThomasV
b22048fdfb fix wallet constructor 2014-09-13 10:16:09 +02:00
ThomasV
43513adb5c seed_v9: strip whitespaces before hashing 2014-09-11 15:15:50 +02:00
ThomasV
f3e2e7b501 fix for seed_version 2014-09-11 15:11:46 +02:00
ThomasV
e22dfc443c check seed_version before wallet_type 2014-09-11 15:04:42 +02:00
ThomasV
93d073457c add spanish wordlist and remove accents 2014-09-11 14:20:10 +02:00
ThomasV
e7c7dc8cc9 init fee variable in make_unsigned_transaction 2014-09-11 11:04:45 +02:00
ThomasV
be1a21d974 call add_address in get_next_account 2014-09-10 10:33:49 +02:00
ThomasV
374daa25af create a PendingAccount if coins have been sent to next_account 2014-09-10 10:09:13 +02:00
ThomasV
d2f4eed1f7 multi-account synchronization 2014-09-10 01:33:52 +02:00
ThomasV
0b7f8e74d5 move synchronize_account logic to account.py 2014-09-09 17:31:15 +02:00
ThomasV
1fb8af40c5 disable privkey export menu in trezor wallets 2014-09-09 14:30:57 +02:00
ThomasV
c657212e5b fix: do not add zero change 2014-09-08 20:44:19 +02:00
ThomasV
01ad103c37 don't change fee if it is fixed by user 2014-09-08 09:29:25 +02:00
ThomasV
bd6f21232d fix restore from mpk command line 2014-09-08 05:17:56 +02:00
ThomasV
67b9a59d34 better fees estimates 2014-09-07 20:36:29 +02:00
ThomasV
62179fad58 Merge pull request #772 from dabura667/fiximportchange
Make change address for imported keys the same
2014-09-06 16:59:53 +02:00
ThomasV
b1ecb61105 fix oldwallet master_public_key 2014-09-05 17:30:19 +02:00
ThomasV
2b10ccdcc4 fix 2014-09-05 16:31:57 +02:00
ThomasV
622fb6c08b add wallet categories 2014-09-05 16:28:53 +02:00
ThomasV
0c8c21f64d minor fix 2014-09-05 12:08:09 +02:00
ThomasV
65d0560475 storage: deepcopy and sanitize json 2014-09-05 12:04:03 +02:00
ThomasV
6e363bc097 check length in OP_RETURN 2014-09-03 16:35:35 +02:00
ThomasV
a2065eff72 use language in config to choose wordlist 2014-09-02 15:34:11 +02:00
ThomasV
5a20d07fb8 add hook: make_unsigned_transaction 2014-09-02 07:47:54 +02:00
ThomasV
79588eb4da init plugins before gui. register wallet types in plugin constructor 2014-08-31 15:33:20 +02:00
ThomasV
c7f667e2ed separate add_seed from create_master_keys 2014-08-29 14:11:59 +02:00
ThomasV
4dcdcbc068 move mnemonic to separate class and use slush's wordlist. new commands: make_seed and check_seed 2014-08-28 15:37:42 +02:00
ThomasV
744eee6858 wizard integration 2014-08-26 16:23:24 +02:00
ThomasV
ef74ae57ff fix tests 2014-08-25 15:32:21 +02:00
ThomasV
91723999aa add_cosigner_seed 2014-08-22 17:22:08 +02:00
ThomasV
b63fcde503 root_name 2014-08-21 18:24:47 +02:00
ThomasV
8df2179025 class for xpub wallets 2014-08-21 18:24:47 +02:00
ThomasV
3a5f64fcc7 account key must be a string (json) 2014-08-21 18:24:47 +02:00
ThomasV
58e1dd2a24 update trezor plugin 2014-08-21 18:24:47 +02:00
ThomasV
61e737c380 wallet types 2014-08-21 18:24:47 +02:00
ThomasV
83b9ecac76 save wallet file as json 2014-08-21 18:24:47 +02:00
ThomasV
f4b390a79f bip44 2014-08-21 18:24:47 +02:00
ThomasV
1d4631d647 bugfix for seed_v7 2014-08-21 18:19:56 +02:00
ThomasV
f400e69d51 move two methods in subclasses 2014-08-19 13:03:29 +02:00
ThomasV
cebc942ccb separate class for bip32 HD 2014-08-19 12:38:01 +02:00
ThomasV
20f93f7df0 set wallet.can_change_password and wallet.has_seed for trezor 2014-08-19 10:36:55 +02:00
ThomasV
cf03f153d9 fix: get_master_public_key 2014-08-13 16:28:27 +02:00
ThomasV
bf3f67c043 do not expose mnemonic_to_seed 2014-08-13 15:43:54 +02:00
ThomasV
606f1cd3f8 prevent seed collisions 2014-08-05 10:00:15 +02:00
ThomasV
b93cde14e7 custom entropy in make_seed 2014-08-01 12:04:38 +02:00
ThomasV
10faf75ee7 wallet fixes 2014-07-30 12:46:03 +02:00
ThomasV
ea29d9009d wallet.can_sign 2014-07-28 08:27:21 +02:00
ThomasV
035ecbc7cd redo inter-thread communication using pipes 2014-07-27 17:13:46 +02:00
dabura667
8722a37f13 Make change address for imported keys the same
Fixes #769
2014-07-26 15:24:55 +09:00
ThomasV
a195ca5c07 fix: check if wallet has master_private_keys 2014-07-14 03:21:51 +02:00
ThomasV
43d2fab9a0 get_seed -> check_password 2014-07-14 02:57:12 +02:00
ThomasV
98acf49b4e fix get_pubkeys call 2014-07-14 02:39:14 +02:00
ThomasV
20c7bef7ac rm dead code 2014-07-14 02:27:51 +02:00
ThomasV
b8f64ad46f rm get_address_flags (no longer used) 2014-07-14 02:23:27 +02:00
ThomasV
b04256b474 load_transactions 2014-07-14 02:20:24 +02:00
ThomasV
3c7346ee9c load imported_keys outside of load_accounts 2014-07-14 02:15:29 +02:00
ThomasV
a471859a3a move master_private_keys and master_public_keys to NewWallet 2014-07-14 02:08:21 +02:00
ThomasV
e2717284eb Merge pull request #749 from chrisglass/clean-tests-wallet
Add tests to the wallet.py module.
2014-07-10 02:58:51 +02:00
ThomasV
042c65939d don't use address_is_old in code that can be run offline 2014-07-09 18:23:33 +02:00
Chris Glass
a9592459ed Add tests to the wallet.py module.
This increases test coverage a lot.
2014-07-09 11:03:44 +02:00
ThomasV
6ad1c46aa5 fix: add type 'aaddress' in change output 2014-07-08 23:53:20 +02:00
ThomasV
1bb00ff5af store output type explicitly in tuple 2014-07-08 19:38:16 +02:00
ThomasV
769b4002cd fix: get_action 2014-07-07 23:35:01 +02:00
ThomasV
0ce2c870bb fixes for pending accounts 2014-07-07 15:43:02 +02:00
ThomasV
5ce50f4421 get_master_public_key: always return xpub of main account 2014-07-06 23:20:27 +02:00
ThomasV
2e1d24939c rm duplicate method getpubkey 2014-07-06 22:24:09 +02:00
ThomasV
b5b5edbee7 add_keypairs: simplification 2014-07-06 22:10:26 +02:00
ThomasV
a89abee969 Rewrite accounts and transactions: store pubkeys instead of addresses in order to avoid unnecessary derivations. 2014-07-06 21:10:41 +02:00
ThomasV
0511d7e76f fix: get_action should call get_master_public_key 2014-07-01 19:17:43 +02:00
ThomasV
2c38e85a50 better integration of plugins in installwizard (for 2fa, trezor plugins) 2014-07-01 18:46:11 +02:00
ThomasV
20060a1177 fix #745 2014-06-30 17:59:36 +02:00
ThomasV
2efad717d8 support for OP_RETURN 2014-06-27 17:08:20 +02:00
ThomasV
7a7e65d66c optional parameters for create_new_address 2014-06-27 11:38:35 +02:00