Commit Graph

3668 Commits

Author SHA1 Message Date
ThomasV c4923ac99d
Merge pull request #3182 from SomberNight/storage_upgrade_manual_for_qt
wallet storage upgrade will now happen silently whenever possible
2017-11-11 11:40:19 +01:00
SomberNight 9e2cd17790 sweeping minikeys: search for both compressed and uncompressed pubkeys 2017-11-11 11:02:30 +01:00
SomberNight 07e9415c2d interface ssl: besides TLS 1.1, also allow later versions 2017-11-10 21:39:20 +01:00
ThomasV 0ecb665b95
Merge pull request #3257 from SomberNight/bitcoin_network_constants
bitcoin.NetworkConstants: easier changing between testnet and mainnet
2017-11-10 09:15:40 +01:00
ThomasV 23c0269252
Merge pull request #3258 from SomberNight/wallet_check_password_dedup
wallet.check_password() remove code duplication
2017-11-09 22:21:01 +01:00
SomberNight f8518c78d8 remove Transaction.requires_fee() 2017-11-09 22:15:47 +01:00
SomberNight bdfd3e7190 wallet.check_password() remove code duplication 2017-11-09 19:15:36 +01:00
Antoine Riard 213798cfce [fix clearrequests] error iteration dictionary changed size 2017-11-09 11:54:25 -05:00
SomberNight 0db5ea67a0 bitcoin.NetworkConstants: easier changing between testnet and mainnet 2017-11-09 17:47:57 +01:00
ThomasV bf2c07ff2a fix #3244 2017-11-08 14:48:46 +01:00
ThomasV c8f3666f76 increase version number 2017-11-06 19:13:14 +01:00
SomberNight 0ee18f9837 fix tests 2017-11-06 12:44:36 +01:00
SomberNight b28f8b3ebd make tx deserialization more robust to ill-formed tx 2017-11-06 12:27:47 +01:00
ThomasV 46b8436693 fix #2562: show error message if hardware library is missing 2017-11-05 12:49:38 +01:00
ThomasV 3083b8dd8a
Merge pull request #3194 from SomberNight/storage
storage upgrade v16: fix flawed v14 upgrade for imported addresses
2017-11-03 18:36:50 +01:00
SomberNight e5d84e41ec storage: remove previously imported fake-addresses 2017-11-03 17:46:25 +01:00
ThomasV 0a10d6512b follow up previous commit 2017-11-03 17:13:49 +01:00
ThomasV f7ecfd104d fix #3201 2017-11-03 17:08:13 +01:00
ThomasV a70970ca20
Merge pull request #3205 from SomberNight/delete_address_proper
proper address deletion for imported wallets
2017-11-03 16:53:10 +01:00
SomberNight a328f83797 proper address deletion for imported wallets 2017-11-03 16:36:16 +01:00
ThomasV 358068a0c1 fix #3197: parse pubkey 2017-11-03 15:31:20 +01:00
ThomasV 036d5746a3 fix verified_tx iteration 2017-11-03 14:08:46 +01:00
ThomasV e65b99564d Merge branch 'master' of github.com:spesmilo/electrum 2017-11-03 10:35:00 +01:00
ThomasV 70d23f9e3b fix #3189: do not silence exceptions in get_xpub 2017-11-03 10:34:25 +01:00
SomberNight 04640b952b storage upgrade v16: fix flawed v14 upgrade for imported addresses 2017-11-03 09:12:17 +01:00
SomberNight 9bbb3f81b3 fix: import_address() for existing Imported_Wallet was willing to import anything 2017-11-03 07:42:38 +01:00
SomberNight 115ef54c0c fix: wallet storage upgrade happening silently even when using QT GUI 2017-11-02 12:11:36 +01:00
ThomasV 7e4e96e5eb
Merge pull request #3180 from SomberNight/fix_storage_upgrade_13b
fix: wallet storage upgrade 13b had incorrect assumptions
2017-11-02 09:54:43 +01:00
SomberNight 3b26beac9e fix: wallet storage upgrade 13b had incorrect assumptions 2017-11-02 09:49:11 +01:00
ThomasV d96561bc9d fix #3175 2017-11-02 09:40:11 +01:00
ThomasV 2774126db6 fix #3170 2017-11-01 22:44:13 +01:00
ThomasV 8623d8c258 fix magic number for p2wsh-p2sh 2017-11-01 21:25:43 +01:00
ThomasV d4b1c66168
Merge pull request #2906 from SomberNight/polling_fees
Periodically poll fee estimates from server
2017-11-01 20:53:01 +01:00
ThomasV f36024e216 hardware wallets: pass xtype to get_xpub 2017-10-31 11:45:25 +01:00
SomberNight c05549c8cd follow-up prev commit: revert "strict checks" for old seeds 2017-10-29 20:04:31 +01:00
SomberNight d45e13553a old seeds: normalize, and stricter is_old_seed() 2017-10-29 17:34:45 +01:00
ThomasV 8467663448
Merge pull request #3141 from SomberNight/locktime_local_height
txn: set locktime to local height for RBF, CPFP, sweep
2017-10-28 22:41:48 +02:00
SomberNight 211fa9a062 txn: set locktime to local height for RBF, CPFP, sweep 2017-10-28 10:02:37 +02:00
SomberNight 5109075e4f fix: sweep p2pk - small display bug (unknown -> pubkey) 2017-10-28 08:59:44 +02:00
ThomasV 6f3c822867
Merge pull request #3125 from SomberNight/sweep_p2pk
try to sweep p2pk outputs from old type WIF privkeys
2017-10-27 21:01:56 +02:00
SomberNight aad83a71c8 tests: have bip39 multisig wallet unit test mirror hw wallet behaviour 2017-10-27 19:57:43 +02:00
ThomasV f7b14cb27f Merge branch 'master' of github.com:spesmilo/electrum 2017-10-27 16:28:55 +02:00
ThomasV e607a499c1 check seed_version is not too high 2017-10-27 16:26:01 +02:00
SomberNight a40ab01210 seed_version: separate methods for v14 and v15 conversion (storage) 2017-10-27 16:06:36 +02:00
ThomasV 348f66b8a5 fix requires_upgrade 2017-10-27 15:00:46 +02:00
ThomasV a1f91ee49e Revert "Revert "bump seed_version""
This reverts commit ce5ab39ba2.
2017-10-27 15:00:09 +02:00
ThomasV ce5ab39ba2 Revert "bump seed_version"
This reverts commit 64b7a89abc.
2017-10-27 12:38:50 +02:00
ThomasV 64b7a89abc bump seed_version 2017-10-27 12:06:26 +02:00
SomberNight 5e5191d25c base_wizard: only check xpub type if have xpub 2017-10-27 12:04:26 +02:00
SomberNight 4a383af872 fix tests 2017-10-27 12:04:26 +02:00
ThomasV 11bbe31ae3 wizard: check xpub types before adding keystore 2017-10-27 12:04:26 +02:00
ThomasV a10e6b6436 fix xtype of ypub keys in plugins and bip39 seeds 2017-10-27 12:04:26 +02:00
ThomasV 0af700bda0 fix typo 2017-10-27 12:04:26 +02:00
ThomasV a220932711 serialize txin-type in xpub/xprv 2017-10-27 12:04:26 +02:00
SomberNight 0d0f8c5842 fix: payment request related stuff (qt crash, exporting, refresh bug) 2017-10-27 02:32:49 +02:00
ThomasV f6cc37d1d2 Merge branch 'master' of github.com:spesmilo/electrum 2017-10-26 11:23:41 +02:00
ThomasV ffc0cc3c1f Merge pull request #3123 from SomberNight/fix_parse_witness_coinbase
fix: transaction.parse_witness() for coinbase
2017-10-26 11:23:28 +02:00
SomberNight 1c31177d03 try to sweep p2pk outputs from old type WIF privkeys 2017-10-26 01:17:46 +02:00
SomberNight 32e88495ae fix: transaction.parse_witness() for coinbase 2017-10-26 00:40:08 +02:00
SomberNight fb47dbb75a tests: transaction.txid() 2017-10-26 00:35:18 +02:00
ThomasV 89240571d4 py3: socket.error is deprecated 2017-10-25 18:22:54 +02:00
ThomasV 1cbc794229 interface: catch py3 exceptions 2017-10-25 17:43:30 +02:00
SomberNight 1f102913e9 typo in wallet.import_private_key() 2017-10-25 06:54:51 +02:00
ThomasV 5665b42999 remove six 2017-10-24 14:04:16 +02:00
SomberNight 523de69b5e Introduced BasePlugin.can_user_disable(). TrustedCoin plugin can't be disabled by user. 2017-10-24 04:42:52 +02:00
ThomasV 6e0e5a8d57 wizard: allow segwit seed as cosigner 2017-10-23 06:42:34 +02:00
SomberNight 2457ac8774 fix #3091 2017-10-22 23:47:11 +02:00
ThomasV 7cf075c754 follow up b8c7edf070 2017-10-22 15:14:09 +02:00
SomberNight 29c34332ac fix: contacts import 2017-10-22 13:46:05 +02:00
ThomasV 8683d71711 fix: witness serialization 2017-10-22 12:39:36 +02:00
ThomasV b8c7edf070 return bytes in scan_barcode 2017-10-22 12:04:00 +02:00
SomberNight aa1289fa5d bitcoin.py AES: implement our own PKCS7 padding 2017-10-22 02:32:58 +02:00
ThomasV 198cc9d737 fix #2614: define non-linear scale for static fees 2017-10-21 11:15:59 +02:00
Dan Haiduc 5e589133c9 Update commands: output str(Decimals), not floats
The commands `listunspent` and `history` were using float.
Patched to consistently return strings of Decimal objects.
2017-10-20 21:35:18 +03:00
Antoine Riard 9ebca74724 fix: check_seed command import path 2017-10-20 12:03:02 -04:00
ThomasV 24442de8df fix command line interface for hardware wallets. fixes #3056 2017-10-19 11:59:36 +02:00
SomberNight f69f6a88e0 py3: signmessage cmd now again returns str 2017-10-17 20:15:33 +02:00
ThomasV 0a648e2b1c cleanup commented lines 2017-10-17 12:59:59 +02:00
ThomasV ed6b2d0abf add comment about pyaes issue 2017-10-17 12:55:13 +02:00
ThomasV a2048feb24 add segwit option for cmdline create 2017-10-17 11:45:55 +02:00
SomberNight 8a07c2654c fix: py3 in bitcoin.py: aes_encrypt_with_iv() and aes_decrypt_with_iv() 2017-10-17 07:36:04 +02:00
SomberNight d5dcdb01dd follow-up of prev commit: fix travis build (take 2) 2017-10-16 05:23:51 +02:00
SomberNight 3fe2af242e follow-up of prev commit: fix travis build 2017-10-16 05:11:05 +02:00
SomberNight 7ba233f2ab fix: storage upgrade of pre-2.8 imported key wallets, and tests 2017-10-16 04:37:01 +02:00
ThomasV ccf1f0f5d1 add class Simple_Wallet 2017-10-15 10:14:55 +02:00
ThomasV dc553ff108 fix #2991: encrypt wallet files created with command line 2017-10-15 09:18:14 +02:00
ThomasV 8d307ce1e8 rm failing test 2017-10-14 16:08:03 +02:00
ThomasV 0dbb976baf update unsigned tx format, so that imported wallets can sign all address types 2017-10-14 15:47:36 +02:00
SomberNight 26f439f34d tests: WalletStorage upgrades 2017-10-14 03:29:08 +02:00
ThomasV 319a31e64c Merge branch 'master' of github.com:spesmilo/electrum 2017-10-13 13:47:41 +02:00
ThomasV 3b8c8c712d fix #3038 2017-10-13 13:47:32 +02:00
SomberNight 8025d81ec0 fix #3035 2017-10-13 12:38:19 +02:00
ThomasV 628a9e0521 follow up afcc37ec34 2017-10-13 10:56:59 +02:00
ThomasV afcc37ec34 Merge pull request #3026 from SomberNight/missing_import_stat
fix: missing import 'stat' in network.py and simple_config.py
2017-10-13 10:55:18 +02:00
SomberNight f22f8c614f fix tests 2017-10-13 05:52:58 +02:00
SomberNight a5ffa69a3e storage: upgrade format version automatically in load_data() 2017-10-13 05:44:19 +02:00
ThomasV 1320b18d7e Merge pull request #3020 from SomberNight/tests_bitcoin1
tests: bitcoin.py
2017-10-13 04:39:01 +02:00
ThomasV 6a876775c4 Merge pull request #3024 from SomberNight/fix_convert_v14_redeem
fix: storage.convert_version_14() is missing redeem_scripts
2017-10-13 04:37:39 +02:00
SomberNight 8e007f026d fix: witness for non-segwit txins 2017-10-12 21:44:08 +02:00
SomberNight 0510bdb85b fix: missing import 'stat' in network.py and simple_config.py 2017-10-12 08:04:55 +02:00
SomberNight 2ad061eead fix: storage.convert_version_14() was missing redeem_scripts 2017-10-12 06:40:41 +02:00
SomberNight 681eb1ccb8 tests: for bitcoin.py, added new ones, and some refactoring for existing
new ones mainly include:
- privkey -> pubkey -> addr conversions
- xprv, xpub operations
2017-10-11 18:46:52 +02:00
SomberNight 843aec80d7 fix: bitcoin.is_minikey() was broken 2017-10-11 16:27:39 +02:00
SomberNight e406829904 fix: Imported_Wallet cannot spend from p2wpkh or p2wpkh-p2sh 2017-10-11 14:00:38 +02:00
ThomasV 6656154b78 add 'createnewaddress' command, separate from getunusedaddress 2017-10-11 12:24:55 +02:00
ThomasV de85b56e0a re-enable locktime 2017-10-11 12:24:55 +02:00
ThomasV d1657cd62c rm deprecated functions 2017-10-11 12:24:44 +02:00
ThomasV c72123d708 fix #3014 2017-10-11 01:04:46 +02:00
ThomasV e0635f5d08 Merge pull request #2320 from da2x/bugfixes
Tighten directory permissions
2017-10-10 20:11:26 +02:00
SomberNight 0a1ebea669 sweep txs are now always RBF 2017-10-10 19:53:28 +02:00
ThomasV 4836adff84 add cmdline support for 2fa wallets 2017-10-10 13:44:25 +02:00
ThomasV 401d8bc534 fix #2890 2017-10-10 11:48:27 +02:00
ThomasV 8fbabfd796 update delete_address for imported wallets 2017-10-10 11:38:30 +02:00
ThomasV 3f3d249ed1 follow up c810c6a356 2017-10-09 11:54:17 +02:00
ThomasV 26becedfb2 fix privkey serialization in commands 2017-10-09 11:53:47 +02:00
ThomasV 5873fe8eaf follow up previous commit 2017-10-09 10:45:43 +02:00
ThomasV b1cc81a6f6 fix #3011 2017-10-09 10:42:43 +02:00
ThomasV 5480b7dff5 add_input_info: add txin value for RBF with segwit inputs 2017-10-07 12:54:50 +02:00
ThomasV 332c5d41e6 return dict in get_addr_utxo 2017-10-07 12:52:52 +02:00
ThomasV 9aa3f2d9e2 add txin_type in add_input_info, remove inefficient search 2017-10-07 12:15:18 +02:00
ThomasV d28f603483 Allow comma separated address lists for from_addr 2017-10-07 11:54:28 +02:00
ThomasV c810c6a356 commands: use the same option names for RPC and command line. fixes #2875 2017-10-07 09:48:20 +02:00
ThomasV 6dd2b8b471 fix #2861: error message when password is missing 2017-10-07 08:19:14 +02:00
ThomasV fefcd7bbcd sweep: use scripthash rpc 2017-10-06 09:56:54 +02:00
SomberNight da480b1209 fix: v13 to v14 wallet (with Imported_KeyStore) conversion 2017-10-06 01:55:30 +02:00
gdvine 5ce8508cd5 Fix low value error message 2017-10-05 20:06:26 +01:00
ThomasV 15ab48aaa8 fix sweep 2017-10-05 20:08:16 +02:00
ThomasV 3dabb94046 convert wallet format for imported wallets 2017-10-05 19:40:41 +02:00
ThomasV 30069324d5 fix #2995 2017-10-05 17:10:30 +02:00
ThomasV e299df7b82 add message signing/decryption for segwit addresses 2017-10-05 14:44:44 +02:00
ThomasV 0bc53d34d1 improve error message (see #2991) 2017-10-05 10:34:20 +02:00
ThomasV 73c7fbcc69 Merge pull request #2964 from SomberNight/tests_wallet_keystore_bip39
tests: wallet-keystore integrity (bip39)
2017-10-05 10:10:57 +02:00
ThomasV 34a786ee43 fix export_private_key of Imported_Wallet 2017-10-05 09:44:37 +02:00
SomberNight 4aa385e0b3 follow-up of wallet.get_private_key() -> wallet.export_private_key() 2017-10-04 23:22:33 +02:00
ThomasV 901dda0898 Merge pull request #2981 from SomberNight/fix_tests_msg_signing
fix tests: message signing
2017-10-04 14:49:01 +02:00
ThomasV 988fb4e413 follow up 0f4b5abc15 2017-10-04 14:46:56 +02:00
SomberNight f917a565b3 fix tests: message signing 2017-10-04 13:28:00 +02:00
ThomasV 0f4b5abc15 add use_compressed_pubkeys field to keystores. fix #2973 2017-10-04 13:04:21 +02:00
ThomasV 6c215c895a Merge pull request #2971 from SomberNight/fix_saving_bip70_payreq
fix: saving payment request as bip70 file
2017-10-04 12:34:24 +02:00
ThomasV 9f6e174b4f fix #2961 2017-10-04 09:24:34 +02:00
SomberNight 67f418e94d fix: saving payment request as bip70 file 2017-10-04 02:12:52 +02:00
ThomasV 91ed74a95f Merge branch 'master' of github.com:spesmilo/electrum 2017-10-03 14:16:55 +02:00
ThomasV 4273c607b7 fix #2961 2017-10-03 14:16:43 +02:00
SomberNight 751be88059 tests: wallet-keystore integrity (bip39) 2017-10-03 03:30:40 +02:00
SomberNight 902ec2dc69 fix: unresolved variable _bytes in transaction.parse_redeemScript() 2017-10-03 01:34:45 +02:00
ThomasV 031b911dce fix cache with h2addr 2017-09-30 13:01:33 +02:00
ThomasV 34628533fb fix typo 2017-09-30 13:00:52 +02:00
ThomasV 1daecf285d Merge pull request #2950 from SomberNight/tests_wallet_keystore
tests: wallet-keystore integrity (seed->address)
2017-09-29 20:12:42 +02:00
ThomasV c73819a3d4 fix tests 2017-09-29 17:49:29 +02:00
ThomasV fed76bfffc Merge branch 'master' of github.com:spesmilo/electrum 2017-09-29 15:36:01 +02:00