Commit Graph

4234 Commits

Author SHA1 Message Date
SomberNight
7e77baf4fb fix #3890 2018-02-12 23:20:58 +01:00
SomberNight
2914090879 wallet.synchronize: remove dead code 2018-02-12 16:12:16 +01:00
ThomasV
4cbdd25c93 Capital gains: Let user enter fiat value of transactions. 2018-02-11 18:11:50 +01:00
SomberNight
4cc2575d72 cli support for hw encrypted wallets 2018-02-10 20:07:06 +01:00
ThomasV
264e80a7b7 cache historical exchange rates 2018-02-10 15:56:05 +01:00
ThomasV
0df42fe046 use Decimal for exchange rates 2018-02-10 15:03:45 +01:00
ThomasV
42a16d9c3e computation of capital gains for outgoing transactions 2018-02-09 20:43:42 +01:00
ThomasV
c32435c15e
Merge pull request #3737 from SomberNight/fix_sweep_into_same_wallet
fix: sweeping into same wallet
2018-02-09 15:48:12 +01:00
ThomasV
3f954a8b3d Factorize history export code used in GUI and command line.
Add options to export history limits and exchange rate.
Closes: #1752, #2604,
Replaces: #2715, 3724
2018-02-09 15:28:28 +01:00
ThomasV
670194b920
Merge pull request #3867 from SomberNight/check_trezor_version
check trezorlib version
2018-02-09 12:15:15 +01:00
ThomasV
94ebfd578d
Merge pull request #3879 from SomberNight/fee_calc_integer_satbyte
fee calculation: force back-end to use integer sat/bytes
2018-02-09 12:13:49 +01:00
ThomasV
cccf380753
Merge pull request #3878 from SomberNight/coinchooser_output_rounding
coinchooser: make output value rounding configurable
2018-02-09 12:13:26 +01:00
SomberNight
d8dad74267 fee calculation: force back-end to use integer sat/bytes 2018-02-09 00:16:11 +01:00
SomberNight
710eda1a56 coinchooser: make output value rounding configurable (config var, qt) 2018-02-08 23:10:44 +01:00
ThomasV
95c5815fe3 Fix CoinDesk exchange rates and update currencies.json 2018-02-08 22:39:55 +01:00
SomberNight
f4363e7967 zbar for windows 2018-02-08 05:56:54 +01:00
SomberNight
6c4756dc3d check trezorlib version 2018-02-07 17:51:52 +01:00
ThomasV
81bd8d8d67 fix: fee_to_depth 2018-02-07 17:30:08 +01:00
ThomasV
08bf966f32
Merge pull request #3863 from slush0/master
trezor: Add support for non-HID devices
2018-02-07 17:03:23 +01:00
SomberNight
41e836a9f4 storage upgrade: don't run older upgrade methods on newer version storage 2018-02-06 23:15:08 +01:00
slush
460e88ee53 hw plugins: Allow custom enumerate functions
trezor: Adding support for all supported transports (HID, WebUSB, UDP, Bridge)
2018-02-06 19:13:05 +01:00
ThomasV
aafd3b929b config: sanitize fee_level and depth_level 2018-02-06 11:09:42 +01:00
ThomasV
d9cf4c2b63
Merge pull request #3810 from SomberNight/conflicting_txns
conflicting transactions
2018-02-06 06:16:19 +01:00
SomberNight
ca19a36478 conflicting transactions 2018-02-06 05:39:40 +01:00
SomberNight
d6c1a933fe some local txns are not getting SPV verified 2018-02-06 05:13:37 +01:00
SomberNight
245cd24f34 follow-up f39f43d58c 2018-02-05 20:15:00 +01:00
ThomasV
73cc1293f1 initial release notes for version 3.1 2018-02-05 17:47:15 +01:00
ThomasV
f39f43d58c fix #3845 2018-02-05 16:08:57 +01:00
ThomasV
c3f3843cc3 Add memory pool based fee estimates
- fee estimates can use ETA or mempool
 - require protocol version 1.2
 - remove fee_unit preference
2018-02-05 12:23:32 +01:00
ThomasV
2c619ec41d
Merge pull request #3841 from SomberNight/qt_addr_filter_all
address filter: add "all" filter option besides "receiving" and "change"
2018-02-05 09:06:16 +01:00
SomberNight
ac2d4eb0ef fix #3508 2018-02-04 22:02:10 +01:00
SomberNight
0021dbfceb address filter: (qt gui) add "all" filter option besides "receiving" and "change" 2018-02-04 19:17:21 +01:00
SomberNight
ffdc36285b use string.format instead of old style (%) formatting 2018-02-04 07:26:55 +01:00
ThomasV
ea2a2aaf09 prepare release 3.0.6 2018-02-03 23:57:46 +01:00
ThomasV
c49335ed30
Merge pull request #3346 from SomberNight/encrypt_watch_only_wallets
allow encrypting watch-only wallets
2018-02-03 11:02:14 +01:00
ghost43
4737aa6c2a
migrated some commands from addr to scripthash (#3826)
* migrated some commands from addr to scripthash

* remove getproof command
2018-02-02 23:26:25 +01:00
SomberNight
5fc830580a add block explorer: blockonomics.co 2018-02-01 03:28:44 +01:00
SomberNight
48e8bbff69 Revert "fix conflicting local txns, e.g. when using RBF"
This reverts commit 8a71e46e9b.
2018-01-31 16:48:09 +01:00
SomberNight
3ae1dd3e64 allow coinchooser to spend local txns 2018-01-31 16:45:47 +01:00
SomberNight
e5f239dd28 follow-up 70aa1f1db9 2018-01-30 17:00:19 +01:00
ThomasV
34080187ff
Merge pull request #2339 from bauerj/error-window
Semi-automated crash reporting
2018-01-30 11:16:42 +01:00
Johann Bauer
91e44ba6fc Show error window for unhandled exceptions
Use exception hook from main thread for all threads

Use signal to delegate error window creation to GUI thread

Add more information to issue template

Update to PyQt5

Switch from Github to REST-Service

Report to web service instead of opening the browser

Fix imports

Change crashhub URL to electrum.org server

Explain that exception hooks are only used in the Qt Gui now
2018-01-30 10:49:31 +01:00
SomberNight
6faef7efe3 remove comment 2018-01-30 01:47:51 +01:00
ThomasV
acf473f7f2
Merge pull request #3777 from SomberNight/fix_wallet_check_history
fix wallet.check_history
2018-01-30 01:08:04 +01:00
ThomasV
64127a8bee
Merge pull request #3782 from SomberNight/opt_wallet_get_address_index
Optimisations in wallet.py
2018-01-30 01:06:44 +01:00
SomberNight
ac69f628fe clean-up wallet.get_address_index 2018-01-30 00:59:12 +01:00
SomberNight
d92a6d46eb wallet.is_mine: use inheritance for more readable code 2018-01-30 00:44:40 +01:00
ThomasV
2343894e0f Merge branch 'local_tx' 2018-01-30 00:22:02 +01:00
ThomasV
0e7e7e3dc5 Merge branch 'local_tx' 2018-01-30 00:18:44 +01:00
ThomasV
603345a172
Merge pull request #3791 from SomberNight/fix_3790
wallet.add_unverified_tx: test if self.verifier exists
2018-01-30 00:06:53 +01:00
SomberNight
704bdedea1 tx heights: replace magic numbers with named constants 2018-01-29 23:04:12 +01:00
SomberNight
889456dc77 follow-up prev commit. better handling of p2sh-segwit. added comment to describe the problem for native segwit. 2018-01-29 22:45:43 +01:00
SomberNight
2dca7bd39c subtle typo 2018-01-29 17:42:39 +01:00
SomberNight
8a71e46e9b fix conflicting local txns, e.g. when using RBF 2018-01-29 15:39:46 +01:00
SomberNight
70aa1f1db9 fix #3788 2018-01-29 02:00:43 +01:00
Johann Bauer
8676e870f3 Raise exception if transaction is not related to wallet 2018-01-28 22:56:33 +01:00
SomberNight
f0e7ae20f2 fix #3790 2018-01-28 22:20:27 +01:00
SomberNight
c811c5c9d9 allow encrypting watch-only wallets. initial support for hw wallet storage encryption. 2018-01-28 02:09:44 +01:00
SomberNight
743ef9ec8f fix #3783 2018-01-28 01:56:26 +01:00
SomberNight
d1e2ca4bc5 make wallet.is_change faster 2018-01-27 18:16:31 +01:00
SomberNight
1c67cfe01b optimise wallet.is_mine 2018-01-27 17:51:24 +01:00
SomberNight
7f3b627aa4 make wallet.get_address_index faster by storing an addr->index dict 2018-01-27 17:33:26 +01:00
SomberNight
d09138446f fix wallet.check_history 2018-01-27 04:24:15 +01:00
Johann Bauer
fbcee9a6f6 Also remove child transactions 2018-01-24 19:34:23 +01:00
Johann Bauer
887e06eebb Set icon for offline transactions 2018-01-23 23:50:02 +01:00
Serge Victor
98663d7e20 Intruduction of getfee command, fixes #3704 2018-01-19 16:01:22 +01:00
ThomasV
98daf2c7cc network: send version first 2018-01-19 15:58:39 +01:00
ThomasV
e6dd3e6ad8 allow to save unbroadcasted transactions in wallet 2018-01-18 11:56:21 +01:00
SomberNight
a20a3f9714 fix: sweeping into same wallet 2018-01-17 01:46:00 +01:00
ThomasV
6f843a7bb6
Merge pull request #3734 from SomberNight/websocket_scripthash
websocket: migrate to scripthashes
2018-01-16 18:19:48 +01:00
SomberNight
fbad16b95c revert adding handling of 'blockchain.address.subscribe' in network.py 2018-01-16 17:10:54 +01:00
SomberNight
d808bf057e fix notify command and migrate to use scripthashes 2018-01-16 16:35:29 +01:00
SomberNight
5ec3d2888f websocket: migrate to scripthashes 2018-01-16 16:02:58 +01:00
ThomasV
954897c281
Merge pull request #3732 from SomberNight/config_upgrade
Config upgrades
2018-01-16 13:50:04 +01:00
SomberNight
1c10d5dce1 remove --nossl option (follow-up dc388d4c7c) 2018-01-16 12:36:39 +01:00
SomberNight
f77f029d72 config v2: change server protocol to :s instead of removing it 2018-01-16 11:53:31 +01:00
SomberNight
0d1ea09ed1 fix tests 2018-01-16 10:52:41 +01:00
SomberNight
04a1809969 config: implement config upgrades. remove system config. 2018-01-16 10:31:06 +01:00
ThomasV
d580ecfb28
Merge pull request #3643 from SomberNight/fee_ui_feerounding
fee ui: rounding
2018-01-15 14:18:58 +01:00
SomberNight
a58d01ed54 setconfig rpcpassword: don't try to evaluate or reencode 2018-01-14 12:26:00 +01:00
ThomasV
c8e67e2bd0 fix #3635 2018-01-13 17:09:25 +01:00
SomberNight
f3f43c8f2a Revert "disable p2wpkh for hw wallets for now"
This reverts commit e218c4a305.
2018-01-12 18:46:08 +01:00
ThomasV
4a40b3a0b2 separate merchant UI from main project 2018-01-12 10:37:14 +01:00
ThomasV
d38303354c
Merge pull request #3683 from SomberNight/wizard_scriptnotsupported
wizard: allow to choose derivation again if script type is not supported
2018-01-11 16:45:55 +01:00
ThomasV
359882d0b1
Merge pull request #3630 from SomberNight/bip84
bip84 for sw seeds
2018-01-11 16:43:34 +01:00
SomberNight
d8a9c9720a follow-up 65eae139af 2018-01-10 18:39:25 +01:00
SomberNight
9416e5bc35 wizard: allow to choose derivation again if script type is not supported (instead of closing the wizard) 2018-01-09 21:10:32 +01:00
pooler
8bcefe6cfa Fix Blockchain.get_target() 2018-01-08 21:48:09 +01:00
ThomasV
eaeac4ca51 version 3.0.5 2018-01-08 01:22:12 +01:00
ThomasV
b076f45f8e
Merge pull request #3664 from SomberNight/json_rpc_pw
Password-protect the JSON RPC interface
2018-01-08 00:28:27 +01:00
ThomasV
1020449684 disable jsonrpc commands in the GUI 2018-01-08 00:20:46 +01:00
ThomasV
7c702b518d disable jsonrpc on android 2018-01-08 00:20:27 +01:00
SomberNight
af527b21fb Password-protect the JSON RPC interface 2018-01-07 19:30:23 +01:00
ThomasV
f8fad2fd29 release 3.0.4 2018-01-07 02:49:39 +01:00
ThomasV
6be7bda023
Merge pull request #3659 from mithrandi/patch-1
Stop allowing CORS for the JSON-RPC server
2018-01-06 20:51:55 +01:00
ThomasV
1fe18ab1ce
Merge pull request #3611 from SomberNight/mnemonic_enforce_num_words
avoid shorter seeds 'by luck'
2018-01-06 12:51:30 +01:00
ThomasV
c4e4d8a1dd
Merge pull request #3650 from SomberNight/daemon_lockfile_not_exec
make daemon lockfile not executable
2018-01-06 12:38:05 +01:00
Tristan Seligmann
0cf67997c0
Stop allowing CORS for the JSON-RPC server
As far as I can tell, there is no need to allow this, and doing so poses severe security risks (see #3374).
2018-01-06 08:42:54 +02:00
SomberNight
aeee5e907c enable some translations in base_wizard.py 2018-01-05 13:42:06 +01:00
SomberNight
f9e9597381 make daemon lockfile not executable 2018-01-04 23:41:10 +01:00
SomberNight
6d88eab005 tests: added 2fa seed case to test_wallet_vertical.py 2018-01-04 22:21:05 +01:00
SomberNight
563aae0dbd fix #3411 2018-01-04 03:40:35 +01:00
SomberNight
7033125186 fee ui - rounding: display info icon with tooltip. show pre-rounding values in ui. 2018-01-03 18:08:10 +01:00
Andrew Chow
0a83b3af22 Avoid modifying self.transactions in prepare_for_verifier
In python3, the `.keys()` function returns an iterator, not a list,
so to get a list that can be iterated over, use `list()` instead to
avoid modification of a list while in use.
2018-01-01 18:03:00 -05:00
ThomasV
7ae1a4cdeb
Merge pull request #3593 from SomberNight/scan_qr_textedit_allow_multi
ScanQRTextEdit optionally allows to concat data
2017-12-31 18:04:21 +01:00
SomberNight
6c2b974796 change default relay fee to 1000 sat/kbyte 2017-12-31 05:06:52 +01:00
SomberNight
e218c4a305 disable p2wpkh for hw wallets for now 2017-12-31 02:42:02 +01:00
SomberNight
e3164286d0 implement bip84: bip43 purpose/der path for p2wpkh scripts 2017-12-31 02:20:58 +01:00
SomberNight
6f954090e6 fix fee ui: offline case 2017-12-30 01:13:36 +01:00
SomberNight
295dc12612 avoid shorter seeds 'by luck' 2017-12-27 18:26:50 +01:00
SomberNight
c04ebe9571 wizard: added derivation presets for bip44/49 2017-12-27 17:01:47 +01:00
SomberNight
aef0444867 fix #3439: ScanQRTextEdit optionally allows to concat data 2017-12-24 03:30:04 +01:00
SomberNight
e2c05c2400 RBF/sweep: use BIP_LI01_sort() 2017-12-22 02:33:22 +01:00
SomberNight
fc574ee514 fix #3578 2017-12-21 23:31:59 +01:00
ThomasV
f3a6491df4
Merge pull request #3575 from SomberNight/fix_imported_wallet_addr_filters
fix: address filters for Imported_Wallet: wallet.is_used()
2017-12-21 12:16:31 +01:00
ThomasV
fe41c61be4
Merge pull request #3574 from SomberNight/coinchooser_uses_weights
more precise fee calculation
2017-12-21 11:56:44 +01:00
SomberNight
3ba864bbca connect fee edits together 2017-12-21 11:17:20 +01:00
SomberNight
32b248245e fix: address filters for Imported_Wallet: wallet.is_used() 2017-12-21 03:22:21 +01:00
SomberNight
aaf5e32207 coinchooser fee calculation now uses tx weights. more precise fee calculation for segwit and mixed-segwit txns. 2017-12-21 01:45:35 +01:00
ThomasV
4bab8b63e1 fix too short headers file 2017-12-20 12:37:45 +01:00
ThomasV
dc388d4c7c replace SSL checkbox in GUI with command line option 2017-12-18 14:15:10 +01:00
Charles Bell
295d678e09 Fix segfault when using a specific camera device 2017-12-17 20:45:03 +01:00
SomberNight
9f908c32e3 tests: add missing info in vertical wallet tests 2017-12-13 19:54:39 +01:00
ThomasV
83da45a7d2 Add checkpoints file for testnet. Check that received headers are after max_checkpoint 2017-12-13 14:22:46 +01:00
ThomasV
de01008992 blockchain: do not load forks that cannot connect to the main headers file 2017-12-13 13:43:51 +01:00
SomberNight
650f504fbf fix: testnet datadir could not be created first 2017-12-13 12:00:16 +01:00
ThomasV
9966dc3b0c
Merge pull request #3488 from scrool/plot_empty_outgoing_transactions
Handle empty outgoing transactions for plot
2017-12-12 17:58:49 +01:00
ThomasV
936ee47d3a
Merge pull request #3496 from SomberNight/coinchooser1
CoinChooser: privacy prefers confirmed and is default
2017-12-12 17:19:19 +01:00
ThomasV
44a83c2401 read checkpoints file in NetworkConstants, add it to setup.py 2017-12-12 11:10:50 +01:00
ThomasV
40e13224f7 follow-up d1b8a6fae6 2017-12-12 10:48:05 +01:00
ThomasV
d1b8a6fae6 Replace initial headers download with hardcoded checkpoints 2017-12-12 10:20:44 +01:00
ThomasV
a13775e533
Merge pull request #3502 from SomberNight/tx_size_est_multisig
fix: tx size estimation for multisig
2017-12-12 05:45:19 +01:00
SomberNight
b751e5e7d3 fix: tx size estimation for multisig 2017-12-12 05:43:34 +01:00
ThomasV
8ae1717772
Merge pull request #3500 from SomberNight/fix_sweep_2fa
fix sweeping for 2fa wallets
2017-12-12 05:31:07 +01:00
ThomasV
22d5d29b81 version 3.0.3 2017-12-12 05:27:49 +01:00
SomberNight
ec99304ae1 fix sweeping for 2fa wallets 2017-12-11 17:37:10 +01:00
SomberNight
2a3c41b24f coinchooser: "privacy" policy now prefers confirmed coins. removed "priority" policy. 2017-12-11 14:49:53 +01:00
SomberNight
4e4a7746fc clean-up: use is_segwit_input in wallet.py 2017-12-11 01:49:38 +01:00
Pavol Babincak
a3f2845650 Handle empty outgoing transactions for plot
Previously dialog with error:

    need more than 0 values to unpack

was displayed and not a plot.

After this change plot is displayed without any dialog without graph of
outgoing transactions and without legend for outgoing transactions.

Fixes: #3487
2017-12-09 20:39:07 +01:00
SomberNight
38e3143bd0 fix command: createmultisig 2017-12-06 18:30:02 +01:00
SomberNight
0aee9bbbb0 fix spending from multisig (broken by 8be777e882) 2017-12-06 16:02:40 +01:00
SomberNight
65c15c5a03 fix verifymessage command 2017-12-04 17:36:57 +01:00
SomberNight
e65b598756 use the send tab when sweeping (qt gui) 2017-11-30 12:27:00 +01:00
cluelessperson
151e3ab8e0 minor 2017-11-29 18:14:39 -06:00
ThomasV
f715caa27d fix #3413 2017-11-29 19:04:18 +01:00
ThomasV
2ea59aad14 fix #3345: do not require a wallet in order to sweep 2017-11-29 13:45:02 +01:00
ThomasV
9425319dcd
Merge pull request #3367 from SomberNight/tx_size_est_uncompressed_pk
tx size estimation: handle uncompressed pubkeys
2017-11-24 10:26:08 +01:00
Marko Bencun
116026dee0 DeviceMgr: nicer message when pairing
The experience is a bit better if the user is prompted to connect,
instead of showing an error.
2017-11-24 10:12:53 +01:00
SomberNight
8be777e882 tx size estimation: handle uncompressed pubkeys 2017-11-24 04:24:54 +01:00
ThomasV
9edffd1754
Merge pull request #3335 from SomberNight/cmd_getprivkeys
more robust getprivatekeys() and is_segwit_address()
2017-11-23 10:03:18 +01:00
ThomasV
ac5cbdaca2
Merge pull request #3351 from SomberNight/segwit_tx_size_estimation
better segwit tx size estimation
2017-11-23 09:41:02 +01:00
ThomasV
b97402b796
Merge pull request #3343 from fr3aker/fix-ipv6addr-parsing
fix parsing of ipv6 addresses in interface
2017-11-22 12:41:50 +01:00
SomberNight
33bb5fee73 tests: testnet addresses 2017-11-22 02:01:47 +01:00
SomberNight
e373f50596 follow-up prev commit 2017-11-22 01:15:01 +01:00
SomberNight
a2a25e4738 better segwit tx size estimation 2017-11-21 23:02:45 +01:00
fr3aker
b7d587c6ac
fix parsing of ipv6 addresses in interface 2017-11-20 20:17:58 +01:00
SomberNight
66cce115ef more robust commands.getprivatekeys() and bitcoin.is_segwit_address() 2017-11-19 23:46:59 +01:00
ThomasV
580f2da19d prepare 3.0.2 release 2017-11-13 11:58:25 +01:00
ThomasV
60e0b43b81 fix 3262: protobuf SerializeToString() returns bytes.. 2017-11-13 11:10:51 +01:00
Justin Turner Arthur
857eb4ac1d Remove unused imports. Explicitly import a few deep imports. 2017-11-13 02:28:00 -06:00
Justin Turner Arthur
9a0aa9b478 Remove Python 2 support imports. 2017-11-13 02:26:48 -06:00
ThomasV
8c84b349b8
Merge pull request #3276 from SomberNight/file_io_with_open
file i/o: use 'with' keyword
2017-11-13 09:23:21 +01:00
Justin Turner Arthur
0c04db33d8 Simplify bytes/hex conversion functions now that we're Python 3+ only. 2017-11-13 01:03:20 -06:00
Justin Turner Arthur
07629e12af Fixes to signing, notify commands and command exception handling. 2017-11-12 16:15:06 -06:00
SomberNight
c65d01ea96 file i/o: use 'with' keyword 2017-11-12 14:33:46 +01:00
ThomasV
91539189d5
Merge pull request #3268 from SomberNight/sweep_minikey
sweeping minikeys: search for both compressed and uncompressed pubkeys
2017-11-11 11:41:41 +01:00
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
ThomasV
e8b564c0e7 Extend Wallet Import Format with txin type. Extend class Imported_Wallet. 2017-09-29 15:32:55 +02:00
SomberNight
f3bbb52b91 tests: wallet-keystore integrity (seed->address) 2017-09-29 05:03:22 +02:00
ThomasV
da0f51df37 Merge pull request #2943 from SomberNight/msg_signing_tests
tests: message signing
2017-09-27 07:51:34 +02:00
ThomasV
4864c802dd fix message signing #2939 2017-09-27 07:47:41 +02:00
SomberNight
7542bc9e35 tests: message signing 2017-09-27 03:57:49 +02:00
ThomasV
952049f74b fix #2915 2017-09-24 13:35:53 +02:00
ThomasV
2239cb9624 fix #2921 2017-09-24 10:18:08 +02:00
ThomasV
99bc43d8db Merge pull request #2911 from SomberNight/pyqt5
migration to PyQt5
2017-09-24 09:42:32 +02:00
ThomasV
c43b48f4f5 Merge pull request #2917 from SomberNight/get_server
log: identify exception source in log for daemon/get_server
2017-09-24 09:40:33 +02:00
ThomasV
70983bb177 Merge pull request #2919 from SomberNight/currency_btce
finish BTCe to WEX renaming
2017-09-24 09:32:35 +02:00
SomberNight
48eab8f286 python3: exchange_rate.py 2017-09-24 02:53:17 +02:00
SomberNight
60dcf6ebfb finish BTCe to WEX renaming 2017-09-23 19:47:54 +02:00
SomberNight
296837d4a9 log: identify exception source in log for daemon/get_server 2017-09-23 18:44:06 +02:00
ThomasV
1522a00012 qrscanner: return str 2017-09-23 09:40:20 +02:00
ThomasV
9bdac1aae0 detect txintype in keystore. fix #2912 2017-09-23 09:39:12 +02:00
ThomasV
1bd60d4c3a fix #2880 2017-09-23 05:57:50 +02:00
SomberNight
4ac162f18b migration to PyQt5. initial commit. 2017-09-23 05:54:38 +02:00
ThomasV
3c7843eea5 revert 6e9b2a4459 2017-09-23 05:40:10 +02:00
ThomasV
ab2d0f389c fix 2904 2017-09-23 05:26:03 +02:00
ThomasV
348ef7d72c Merge pull request #2902 from SomberNight/network_timeout
send server.version before subscriptions
2017-09-22 10:19:40 +02:00
ThomasV
c186dc18d4 fix tests 2017-09-22 09:55:30 +02:00
SomberNight
2fbc70d860 Moving to virtual tx size instead of total tx size. 2017-09-22 09:49:05 +02:00
SomberNight
6e0c2cffd8 replace deprecated assertEquals 2017-09-21 06:07:52 +02:00
SomberNight
f80d8b02ca Periodically poll fee estimates from server. 2017-09-21 01:19:05 +02:00
SomberNight
0e89745c2b send server.version before subscriptions 2017-09-20 15:21:41 +02:00
ThomasV
c12c1685d7 serialize value of incomplete inputs in the witness field. fix p2wsh-in-p2sh deserialization 2017-09-18 09:41:19 +02:00
ThomasV
fcea2a065d add support for p2wsh-in-p2sh 2017-09-18 08:52:06 +02:00
ThomasV
10b35e3545 follow-up 0abb38cf51 2017-09-17 17:09:22 +02:00
ThomasV
6b1d9ca315 add segwit option for make_seed command 2017-09-17 17:08:46 +02:00
ThomasV
5416a4ea8a serialize value for segwit-p2sh inputs too 2017-09-17 16:56:52 +02:00
Jochen Hoenicke
0abb38cf51 Fix parsing of witnesses
The lengths in the witness structure are `var_int` not pushes.

From BIP-141:
The `witness` is a serialization of all witness data of the transaction.
Each txin is associated with a witness field. A witness field starts
with a `var_int` to indicate the number of stack items for the txin. It is
followed by stack items, with each item starts with a `var_int` to
indicate the length. Witness data is NOT script.

This bug was triggered by tx
d379210d85c1346dafbfd60e3cbc5c5573e50b1f9576d39f177afb2b378f1b98
2017-09-17 16:56:25 +02:00
ThomasV
fd1a676d45 remove command line segwit option 2017-09-17 16:34:22 +02:00
Alexx Saver
7b3a398d46 Removed BTCe and added WEX to exchange_rate.py
Notice: WEX uses RUR instead of RUB, but we return it as RUB to conform to ISO 4217.
2017-09-17 01:55:07 +04:00
ThomasV
23f36ea080 follow up previous commit 2017-09-16 11:00:20 +02:00
ThomasV
6e9b2a4459 do not send coins to witness scripts with non-zero version 2017-09-16 10:46:37 +02:00
SomberNight
a339270c07 readability change: OP_n calculation from boolean arithmetic to ternary 2017-09-16 03:43:08 +02:00
SomberNight
653c7acb48 fix bech32 scriptPubKeys (OP_n), and tests 2017-09-16 02:19:26 +02:00
ThomasV
a8a993d490 fix key type for bip49 2017-09-15 12:20:06 +02:00
ThomasV
d7dc804b32 fix iteration bug 2017-09-15 12:07:57 +02:00
ThomasV
302dd3912d Merge pull request #2872 from SomberNight/p2pk_output_1
fix: p2pk output serialisation
2017-09-15 11:54:53 +02:00
SomberNight
33157d3718 fix: p2pk output serialisation 2017-09-15 05:50:12 +02:00
SomberNight
35e4eb6cc3 fix: set scriptSig when spending from coinbase 2017-09-15 05:36:13 +02:00
ThomasV
f0fe84d959 check xkey type when we add the keystore, so that we cover all cases 2017-09-14 14:38:19 +02:00
ThomasV
123c5e3165 wizard: check seed_type before creating multisig 2017-09-14 14:00:29 +02:00
ThomasV
43e3f4d3d1 add segwit choice to wizard 2017-09-14 12:20:11 +02:00
SomberNight
efd07f727a fix testnet 2017-09-14 02:06:08 +02:00
ThomasV
c5f552f26a rm dead code 2017-09-13 15:12:50 +02:00
ThomasV
8b0db38f87 follow-up 3d4c64f9e 2017-09-13 14:54:52 +02:00
ThomasV
50ce062c39 update release notes and set version number to 3.0 2017-09-13 12:48:37 +02:00
ThomasV
7dbd612d5d Read default server list from file. Update list with 1.1 servers. Remove nolnet option. 2017-09-13 11:33:28 +02:00
ThomasV
f1666f208b remove height parameter from blockchain.transaction.get 2017-09-13 11:33:28 +02:00
ThomasV
84962ea6f1 remove deprecated command: getutxoaddress 2017-09-13 11:33:28 +02:00
ThomasV
93e577e0cb Revert "segwit: add purpose to derivation"
This reverts commit f706fa07078fd01f24ded2dada7ad66eae8ff485.
2017-09-13 11:33:28 +02:00
ThomasV
7f9b473a98 protocol version 2017-09-13 11:33:28 +02:00
ThomasV
ee36ec992c segwit: add purpose to derivation 2017-09-13 11:33:28 +02:00
ThomasV
9286deca57 fix test 2017-09-13 11:33:28 +02:00
ThomasV
63a1db1172 make xpub/xprv version information user-visible 2017-09-13 11:33:28 +02:00
ThomasV
bd16e20a4d minor fix (parsing signatures) 2017-09-13 11:32:40 +02:00
ThomasV
d9f2edf6b0 support native segwit transactions 2017-09-13 11:32:40 +02:00
ThomasV
68873d92f9 implement scripthash logic 2017-09-13 11:32:40 +02:00
ThomasV
8c5b6bdaf3 Read default server list from file. Update list with 1.1 servers. Remove nolnet option. 2017-09-13 11:30:30 +02:00
SomberNight
cbc35d96c8 fix unresolved variable 2017-09-12 17:09:54 +02:00
ThomasV
6fda3733e4 Merge branch 'master' of github.com:spesmilo/electrum 2017-09-12 15:06:00 +02:00
ThomasV
7f58e23ed9 python3 update 2017-09-12 15:05:48 +02:00
SomberNight
c50a460395 fixes #2858 2017-09-10 16:28:06 +02:00
WakiyamaP
0791b469e7 fix download failed blockchain headers 2017-09-08 10:57:22 +09:00
ThomasV
70af22c9e4 update scripts/servers to display server version 2017-09-07 09:41:21 +02:00
ThomasV
216e9403be cleanup six (no python2 support) 2017-09-04 14:43:31 +02:00
ThomasV
f8c592f743 Merge pull request #2837 from ariard/fix_urllib
fix urllib.quote py2 to py3
2017-09-04 14:23:05 +02:00
ThomasV
6b871a7cfd mmonir python3 fix 2017-09-04 14:21:02 +02:00
Antoine Riard
5059898af2 fix urllib.quote py2 to py3 2017-09-04 06:13:55 -04:00
tadas.varanavicius
c0073138dc Python 3 fixes for Segwit 2017-09-01 22:22:31 +03:00
ThomasV
b7e8147ca8 Merge pull request #2621 from KoffeinFlummi/fiat-balance-addresses
Add optional Fiat balance column to addresses view
2017-09-01 06:30:13 +02:00
ThomasV
f56a8702c2 support sending to segwit native addresses (bip173) 2017-08-31 19:05:03 +02:00
ThomasV
5f35081bc9 fix tests 2017-08-31 10:25:22 +02:00
ThomasV
4d3e079778 rename bc_address functions 2017-08-31 10:21:57 +02:00
ThomasV
b9da5afa9d replace bitcoin.is_valid 2017-08-31 10:06:13 +02:00
ThomasV
e853dde111 add segwit bech32 module 2017-08-31 09:59:54 +02:00
ThomasV
794baa16c8 move address_to_script to bitcoin.py 2017-08-31 09:59:40 +02:00
ThomasV
5f1d9cbcf5 separate network layer from synchronizer 2017-08-31 09:59:29 +02:00
ThomasV
b86619ee30 Merge pull request #2760 from jhoenicke/trezorsegwit
[TREZOR] Added Segwit support.
2017-08-30 11:48:55 +02:00
ThomasV
936b92fa00 Merge pull request #2789 from linuxdaddy/master
Update paymentrequests.proto
2017-08-30 07:17:26 +02:00
ThomasV
1394346192 fix #2819 2017-08-30 06:38:57 +02:00
Jochen Hoenicke
ec0de566a8 [TREZOR] Added Segwit support.
Following changes were necessary outside the TREZOR plugin.
- transaction.py: update_transaction handles segwit transactions.
- keystore.py: added a segwit parameter to bip44_derivation,
  use m/49' instead of m/44' for segwit.
2017-08-29 18:43:50 +02:00
ThomasV
5bf3b26476 segwit: use 12 bits of seed prefix 2017-08-27 14:30:01 +02:00
ThomasV
88bbaf0950 postpone x_pubkeys replacement (fix #2738) 2017-08-27 14:03:53 +02:00
ThomasV
2e567fc86a fix #2784 2017-08-27 10:48:41 +02:00
ThomasV
6d2b53cdca fix bip39 check 2017-08-27 10:02:15 +02:00
ThomasV
7b14516cc0 fix unicode in make_seed and getseed 2017-08-27 09:53:22 +02:00
ThomasV
8cb714fb70 fix #2801 2017-08-27 09:22:57 +02:00
ThomasV
a9678aee78 bump version number and update release notes 2017-08-26 08:33:42 +02:00
ThomasV
227a553a99 update ripemd module for python3 2017-08-26 08:28:25 +02:00
ThomasV
4df5997940 catch wrap_socket timeouts 2017-08-26 08:28:25 +02:00
ThomasV
126bbff948 Revert "remove python implementation of ripemd160"
This reverts commit 56c4a8746f.
2017-08-26 08:28:25 +02:00
ThomasV
32dee14fd0 show error message when parsing empty tx 2017-08-26 08:28:24 +02:00
ThomasV
1a6e41cec8 python3 updates 2017-08-26 08:28:24 +02:00
ThomasV
e02687bcf2 python3 updates 2017-08-26 08:28:24 +02:00
ThomasV
d8e37644d3 python3 updates 2017-08-26 08:28:24 +02:00
ThomasV
108d7d39f0 python3: fix password decode 2017-08-26 08:28:24 +02:00
ThomasV
0fdf661845 python3: update storage 2017-08-26 08:28:24 +02:00
ThomasV
15642ec8de python3: remove calls to unicode function 2017-08-26 08:28:24 +02:00
ThomasV
ab15ff3a00 updates for python3 2017-08-26 08:28:24 +02:00
ThomasV
65aeb0bd3c fix 5e7169bf355f2ac3ec8791c4768f0cd971e1640d 2017-08-26 08:28:24 +02:00
ThomasV
bc591377e8 python3: fix integer division 2017-08-26 08:28:24 +02:00
Johann Bauer
8e54d5c4d4 Make proxies work 2017-08-26 08:28:24 +02:00
Johann Bauer
d4d93b3928 Various fixes in util.py 2017-08-26 08:28:24 +02:00
ThomasV
f1a8c0b0e6 misc. fixes for python3 2017-08-26 08:28:24 +02:00
ThomasV
4f516dc08e fixes for paymentrequests and python3 2017-08-26 08:28:24 +02:00
ThomasV
c3388d9677 misc python3 updates:
- use jsonrpclib-pelix
 - update the kivy gui
 - update plugins
2017-08-26 08:28:24 +02:00
fr3aker
e562b0b565 python3: fix bad type in make_seed 2017-08-26 08:28:24 +02:00
fr3aker
8a15581d8e fix imports 2017-08-26 08:28:24 +02:00
Dmitry Sorokin
21101386a2 paymentrequest upd 2017-08-26 08:28:24 +02:00
Dmitry Sorokin
362ca96f38 x509 fixes and plugins 2017-08-26 08:28:24 +02:00
Dmitry Sorokin
0693403358 sending fixed 2017-08-26 08:28:24 +02:00
Dmitry Sorokin
f02d18226b misc ui and lib fixes for py3 2017-08-26 08:27:47 +02:00
Dmitry Sorokin
d304ccdf17 py3 in qtgui 2017-08-26 08:27:47 +02:00
Dmitry Sorokin
5be78950ca py3 2017-08-26 08:27:47 +02:00
ThomasV
f70408cef5 fix ctypes for zbar qrcode scanner 2017-08-25 11:23:11 +02:00
linuxdaddy
017cef8f88 Update paymentrequests.proto
Was installing electrum on my Kali Linux and when running this command: 
protoc --proto_path=lib/ --python_out=lib/ lib/paymentrequest.proto 
i got the following error: 
[libprotobuf WARNING google/protobuf/compiler/parser.cc:547] No syntax specified for the proto file: paymentrequest.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)

Fixed it myself and wanted to share it for people that might have the same issue.
2017-08-23 03:15:14 +02:00
ThomasV
7ed79011fe Merge branch 'master' of git://github.com/spesmilo/electrum 2017-08-17 11:07:11 +02:00
ThomasV
cfa037fd6f add error message about wallet not loaded. fixes #2756 2017-08-17 11:06:53 +02:00
Sebastian Volland
d95e79efab add missing import 2017-08-16 19:11:07 +02:00
Kacper Żuk
c6e09a6038 Provide warnings about invalid BIP39 checksum in seed dialog 2017-08-16 15:25:06 +02:00
ThomasV
a22cf973b4 Revert "Only save config if value changed"
This reverts commit 47e062aa7e.
2017-08-15 12:55:53 +02:00
ThomasV
24e3fab8af prepare version 2.9.3 2017-08-10 18:01:22 +02:00
ThomasV
6a984ab9b6 Merge pull request #2720 from bauerj/config-skip-save
Only save config if value changed
2017-08-10 17:56:38 +02:00
ThomasV
169ca85a01 fix #2719 2017-08-10 03:45:10 +02:00
Johann Bauer
47e062aa7e Only save config if value changed 2017-08-09 22:27:57 +02:00
ThomasV
08fab753e8 change default value of confirmed_only, spending unconfirmed coins 2017-08-08 06:03:47 +02:00
ThomasV
a13581e6db fix #2697 2017-08-06 09:55:49 +02:00
ThomasV
72706f8219 network: connection_down if interface fails to connect chunk 2017-08-04 15:34:23 +02:00
Vali Zero
3c7171ede8 Fix commands that require password with unencrypted wallet 2017-08-03 21:34:11 +03:00
ThomasV
091e7b8d92 version 2.9.2 2017-08-03 15:07:19 +02:00
ThomasV
5872bd4722 force new headers download if file is corrupted 2017-08-03 14:25:50 +02:00
ThomasV
9ca9b6c397 prepare version 2.9.1 2017-08-03 07:29:23 +02:00
ThomasV
6bd66279b0 fix segwit script size 2017-08-03 07:22:49 +02:00
ThomasV
57013ca985 update blockchain size after initial file download 2017-08-03 07:11:27 +02:00
ThomasV
f956363d88 Merge pull request #2669 from neocogent/contacts-validate
Validate and extract contacts on import
2017-08-01 15:07:51 +02:00
neocogent
6549a4ebdb validate contacts on import 2017-08-01 19:56:46 +07:00
ThomasV
3d34fd9294 Merge pull request #2658 from linuxion/patch-3
Add Blockchair.com block explorer
2017-08-01 12:03:14 +02:00
ThomasV
45bfd8cbae sanitize max_fee_rate; fixes #2663 2017-08-01 11:24:49 +02:00
ThomasV
882e259a78 sanity check read_header 2017-08-01 11:00:12 +02:00
suut
bc4fcfbebd Remove usages of deprecated apply() builtin 2017-08-01 05:22:18 +02:00
neocogent
63a754868e add locktime cmdline support 2017-07-31 09:25:10 +07:00
linuxion
be150660ca Add Blockchair.com block explorer 2017-07-31 03:24:02 +03:00
Jason Jackson
a516bce8c6 Fixes issue calling commands that do not require a password, such as help 2017-07-28 08:04:32 -04:00
ThomasV
311f9eda17 close connection if server sends invalid headers 2017-07-26 14:55:39 +02:00
ThomasV
94f7a87e47 remove dead code 2017-07-25 18:57:34 +02:00
ThomasV
810f107229 follow-up commit 5f3e5866ad 2017-07-25 18:47:36 +02:00
ThomasV
5f3e5866ad blockchain write method, that flushes file 2017-07-25 10:03:15 +02:00
ThomasV
923f988b86 fix #2630 2017-07-24 17:29:14 +02:00
ThomasV
d71c9d5be3 make blockchain.size() threadsafe 2017-07-24 15:54:42 +02:00
ThomasV
d5d5e8af5c fix: handle multiple forks at same checkpoint 2017-07-24 08:46:49 +02:00
ThomasV
ce977e0385 fix parent_branch_size in blockchain swap 2017-07-21 09:02:58 +02:00
ThomasV
313d53fe0b save header immediately when forking a chain 2017-07-21 07:52:38 +02:00
ThomasV
dd0d85b4f2 fix headers path for android 2017-07-20 21:28:27 +02:00
KoffeinFlummi
9a44cde6cd Add optional fiat balance column to addresses view 2017-07-20 19:30:44 +02:00
ThomasV
ca33ffaf77 store fork headers in separate directory 2017-07-20 15:29:22 +02:00
ThomasV
c522c6b4d0 blockchain: store reference to parent_id instead of parent, so that it gets updated after swap 2017-07-20 15:05:47 +02:00
ThomasV
c3615d0aa7 fix: rename files affected by chain swap 2017-07-20 11:36:59 +02:00
ThomasV
ab5a9f3ce4 fix: order files in save_chunk too 2017-07-20 07:56:54 +02:00
ThomasV
0c6de8ff56 fix undo_verification 2017-07-20 06:38:49 +02:00
ThomasV
1457a869d3 network: call switch_lagging after catch up 2017-07-19 18:32:48 +02:00
ThomasV
ad8a6f3eff fix: do not request beyond tip 2017-07-19 17:33:05 +02:00
ThomasV
feb0f483f5 fix bug if headers file is empty 2017-07-19 17:23:46 +02:00
ThomasV
97343d95e5 speed-up search by starting at own height 2017-07-19 16:28:17 +02:00
ThomasV
7a8f337d28 fix: swap parent 2017-07-19 14:26:44 +02:00
ThomasV
0891798d1b minor fix 2017-07-19 11:57:15 +02:00
ThomasV
ac1ceb44ba blockchain: remove filename field 2017-07-19 11:26:13 +02:00
ThomasV
47e3630dd5 always save headers on disk 2017-07-19 11:23:10 +02:00
ThomasV
b424a83a57 add blockchain.get_name method, update kivy gui 2017-07-19 09:29:20 +02:00
ThomasV
9576f8510d undo verified tx when swapping chains 2017-07-19 06:50:48 +02:00
ThomasV
0b6d7dbbc9 fix swap 2017-07-19 06:46:37 +02:00
ThomasV
afda151bc6 fix get_branch_size 2017-07-19 06:24:53 +02:00
ThomasV
6ee0ad8499 fix: swap 2017-07-19 05:45:41 +02:00
ThomasV
814792eee1 show only active chains 2017-07-18 21:37:04 +02:00
ThomasV
a39e270bd3 test height 2017-07-18 21:32:34 +02:00
ThomasV
50ad656c87 blockchain: swap a chain with its parent, if the parent branch is too short to be saved on disk 2017-07-18 18:10:22 +02:00
ThomasV
637d52ce58 don't request headers beyond tip 2017-07-18 14:11:22 +02:00
ThomasV
214e2b89c2 network: use interface.bad_header 2017-07-18 09:21:49 +02:00
ThomasV
ef1120b80c fix typo 2017-07-17 21:38:09 +02:00
ThomasV
702abf6581 simplification: do not request checkpoint, check headers against all known blockchains 2017-07-17 19:32:10 +02:00
ThomasV
3d4c64f9e0 improve blockchain search 2017-07-17 12:22:25 +02:00
ThomasV
2a10d3075e rm dead code 2017-07-17 11:25:05 +02:00
ThomasV
8260dfdbe7 network: use check_headers for binary search 2017-07-17 11:19:42 +02:00
ThomasV
acd0ea3ff3 cleanup dead code 2017-07-17 09:51:31 +02:00
ThomasV
65bce569e4 network: interface.tip_header 2017-07-17 09:32:12 +02:00
ThomasV
b0277d5426 blockchain: size method, various fixes 2017-07-17 08:44:09 +02:00
ThomasV
b2116d87ea minor fix 2017-07-16 08:07:47 +02:00
ThomasV
43c5657cb6 blockchain: parent pointer and recursive methods 2017-07-15 17:20:06 +02:00
ThomasV
cf84068fdb blockchain fixes 2017-07-15 13:51:40 +02:00
ThomasV
8834ed9714 fix blockchain.height() 2017-07-15 11:59:05 +02:00
ThomasV
125247df81 fix unicode path issue #2269 2017-07-14 12:53:35 +02:00
ThomasV
37143fd628 fix blockchain offset 2017-07-14 06:20:05 +02:00
ThomasV
ba2211f52e network dialog: refresh display on each new header 2017-07-13 17:23:24 +02:00
ThomasV
bf7deaa1fb remove blockchain fork detection threshold 2017-07-13 16:23:41 +02:00
ThomasV
f708ba0b34 fix #2603 2017-07-13 11:28:37 +02:00
ThomasV
e6116db565 network: minor fix 2017-07-13 09:31:27 +02:00
ThomasV
73b023e967 update network settings dialog of the kivy GUI 2017-07-11 18:04:33 +02:00
Brian Smith
2cafcf0d95 Added a timeout on the urllib2 request during a notify event. 2017-07-10 12:28:56 -04:00
ThomasV
9c28489bc0 fix wallet.can_export 2017-07-10 09:46:11 +02:00
ThomasV
b02ce2d02c disable locktime until keepkey firmware is updated 2017-07-09 21:06:21 +02:00
ThomasV
9b7102aed1 make fork_threshold configurable, fix backward mode 2017-07-08 16:45:09 +02:00
ThomasV
680e9a5552 network: go back if cannot connect during catch_up 2017-07-08 16:18:37 +02:00
ThomasV
321adf600a sort currencies in currencies.json 2017-07-08 14:22:21 +02:00
Alexx Saver
4847fe5f41 Sorted exchange_rate.py
Notice: no real changes
2017-07-08 14:14:13 +02:00
Alexx Saver
1c02ced131 Added BTCe to exchange_rate.py
Notice: BTCe uses RUR for RUB, it is not compatible with ISO 4217, so we return it as RUB. Also we use an official mirror because btc-e.com is banned in Russia.
2017-07-08 14:13:03 +02:00
ThomasV
568c14ca78 Refactor Network and Blockchain dialogs in qt and kivy 2017-07-08 11:38:32 +02:00
ThomasV
777a3aa8bf Fixes for TrustedCoin plugin:
- reset billing_info after broadcast
- when bumping tx fee, do not use Trustedcoin output
2017-07-06 16:03:21 +02:00
ThomasV
6b872b68bd hardcode another testnet server 2017-07-04 13:03:31 +02:00
ThomasV
2055fce087 network dialog: add menu actions to blockchains list 2017-07-04 11:35:04 +02:00
ThomasV
faa17f9818 Option to send only confirmed coins (fix #2395) 2017-07-03 07:46:27 +02:00
ThomasV
255458da0a fix #2400 2017-07-02 11:44:48 +02:00
ThomasV
cad3798f84 follow-up previous commit 2017-06-30 18:52:49 +02:00
ThomasV
7ea2cb41e8 fix #2509: reset pubkeys to None when x_pubkeys are unsorted 2017-06-30 18:31:37 +02:00
ThomasV
a7679debd1 fix #2533 2017-06-30 13:00:06 +02:00
ThomasV
298461aee2 fix #2524: add proper error message 2017-06-30 12:20:19 +02:00
ThomasV
828b0e5d70 fix #2439 2017-06-30 12:11:47 +02:00
ThomasV
d4b9b1f3f9 Merge pull request #2457 from chris-belcher/master
Made status bar exchange rate display in terms of base unit
2017-06-29 18:40:49 +02:00
ThomasV
064b59c65e fix #2566 #2519 2017-06-29 16:51:55 +02:00
ThomasV
91235ed7ac fix #2565: do not show traceback 2017-06-28 05:26:52 +02:00
djb
91deea89da
identify HID devices also by interface and usage page 2017-06-23 11:46:50 +02:00
ThomasV
8285bc458f network dialog: show servers in blockchain tab 2017-06-23 10:36:49 +02:00
ThomasV
6931ffada5 fix callbacks when switching to another server 2017-06-22 14:47:05 +02:00
ThomasV
ca220d8dbb Detect blockchain splits and validate multiple chains 2017-06-21 09:48:31 +02:00
ThomasV
6b45070b2f allow arbitrary derivations with bip39 seeds, to let multibit users recover funds 2017-06-20 10:47:02 +02:00
ThomasV
31ab5b2e0a pass hash to pubkey_from_signature 2017-06-15 10:03:18 +02:00
kwaaak
d6572e1387 Update BitcoinAverage API to v2 2017-06-07 14:18:14 +02:00
ThomasV
6e51b7d60e Merge pull request #2468 from bauerj/issue-2462
Parse transaction version field
2017-05-30 19:32:23 +02:00
Johann Bauer
534eaa9bd1 Parse transaction version field
Closes: #2462
2017-05-30 19:28:27 +02:00
dabura667
af59a526da add input and output addresses to CLI history 2017-05-29 23:51:15 +09:00
chris-belcher
3195eca6ea Made status bar exchange rate display in terms of base unit 2017-05-27 15:48:47 +01:00
ThomasV
d4e8f4beb6 Set sequence to MAXINT-1 to fix locktime (per bauerj) 2017-05-23 15:07:20 +02:00
ThomasV
1ee70f798e fix: reorgs 2017-05-23 14:51:44 +02:00