Commit Graph

302 Commits

Author SHA1 Message Date
ThomasV
04322b7cc9 fix bug with undetected incorrect password that can damage wallet 2013-01-06 09:41:06 +01:00
ThomasV
279b85e3fe use the same syntax as bitcoind for key import 2013-01-05 21:28:12 +01:00
ThomasV
512a812872 try http if tcp fails. 2013-01-03 21:36:25 +01:00
thomasv
1f71e5e225 call set_language only if gui is used. 2013-01-02 16:12:00 +01:00
thomasv
66fa7b610b option to set gui language from command line 2013-01-02 16:03:54 +01:00
thomasv
accbf7ea82 fix: exit if no password is provided when needed 2013-01-02 13:39:50 +01:00
thomasv
72b4ac97d0 use portable flag on android instead of explicit path for headers file. use urllib.retrieve() 2012-12-17 17:51:52 +01:00
thomasv
6bd57d4829 change headers path for android 2012-12-17 16:21:28 +01:00
thomasv
bd96815eb3 command line option for portable wallets 2012-12-17 15:08:34 +01:00
thomasv
4e070bda57 new command: signtx (offline transaction signing) 2012-12-05 18:18:47 +01:00
thomasv
c763445734 allow multiple-outputs transactions with mktx() 2012-12-05 16:41:39 +01:00
thomasv
108dfb6140 revert to daemon threads because some clients do not seem to close their sockets cleanly 2012-12-05 10:24:30 +01:00
ThomasV
36ef16cfb2 fix path for android 2012-12-01 17:56:31 +01:00
ThomasV
c68bf5a1d7 print_error -> print_msg 2012-11-27 23:32:39 +01:00
ThomasV
9afbf21197 no daemon 2012-11-24 20:35:09 +01:00
ThomasV
0ad7f72d3d nodaemon 2012-11-24 20:35:09 +01:00
ThomasV
a79cda99e5 return True in retore_wallet 2012-11-23 19:31:45 +01:00
ThomasV
acbfa77af5 return True in network dialog, because None means offline 2012-11-23 19:25:35 +01:00
ThomasV
d6edf45eb7 use adhoc print function 2012-11-23 18:48:56 +01:00
thomasv
6e0a62fada return parser object because it is needed to display help 2012-11-23 14:31:25 +01:00
thomasv
537d02977c fix balance display in flatfly's bug. restore the wallet.update() method 2012-11-22 13:10:01 +01:00
flatfly
1b85fa3125 Fix wallet path in deseed and reseed 2012-11-21 22:57:11 +01:00
ThomasV
b6c494ce6a fix network dialog 2012-11-20 21:46:45 +01:00
ThomasV
d2c91d9a0f simplify the create/restore procedure 2012-11-20 21:36:06 +01:00
ThomasV
9a9e7c1b7c simplification 2012-11-20 18:19:37 +01:00
ThomasV
d55aa43cf6 add version to android path 2012-11-20 17:56:23 +01:00
ThomasV
d8c49a2fef android: update create and recover dialogs 2012-11-20 17:21:57 +01:00
thomasv
cf1f533613 allow offline creation/recovery within the gui 2012-11-20 15:30:46 +01:00
thomasv
f7c3b2f067 pop all options that are None before passing them to SimpleConfig 2012-11-19 14:05:42 +01:00
ThomasV
2d13107897 make a regular gui module for android 2012-11-18 11:34:52 +01:00
thomasv
650a9b6074 do not include fee in the transaction amount shown in history. adapt history to the case where it was recovered from a pruning server 2012-11-16 14:39:31 +01:00
thomasv
91f8bb7d0b start synchronizer only after verifier is created 2012-11-05 13:12:22 +01:00
ThomasV
02eece2c4c fix CLI restore 2012-11-04 21:12:08 +01:00
ThomasV
39a85767a3 solve deadlock during restore 2012-11-04 20:53:27 +01:00
ThomasV
5bb441ce37 add mnemonic functions to module 2012-11-04 19:40:17 +01:00
ThomasV
b20188a65d verbose option 2012-11-04 12:27:01 +01:00
ThomasV
99022f51bc fix: get_tx_value 2012-11-04 11:36:08 +01:00
thomasv
5e28ccd09d Improve text gui. Disable print_error when text gui is used. 2012-10-29 16:22:53 +01:00
ThomasV
7a73c2cb50 security fix: do not let user change seed 2012-10-28 09:19:07 +01:00
ThomasV
fa870d83b9 add option to disable spv; just in case 2012-10-28 08:58:21 +01:00
ThomasV
cfb3aa6a12 move 'peers.subscribe' and 'server.version' calls into the interface 2012-10-27 14:15:03 +02:00
ThomasV
1117741e59 new command: 'get' 2012-10-26 17:35:35 +02:00
thomasv
ee4de40c37 use WalletVerifier.add() method to register transactions 2012-10-26 10:02:09 +02:00
thomasv
e20e40829d start verifier thread only after the first wallet synchronization 2012-10-26 09:08:06 +02:00
ThomasV
063fef86aa set command: authorize by default, forbid only when dangerous 2012-10-26 07:05:22 +02:00
ThomasV
2a06a5b493 tie confirmation icons to payment verifier 2012-10-26 00:40:19 +02:00
thomasv
8b865983c6 make the Verifier class usable without a wallet instance 2012-10-25 16:03:16 +02:00
thomasv
0b76e16d04 allow multiple callbacks for a given name 2012-10-22 13:43:58 +02:00
thomasv
82531131ee interface: do not connect inside the constructor 2012-10-22 12:58:57 +02:00
thomasv
4fbd2ea66e use named callbacks with the interface 2012-10-22 11:34:21 +02:00
ThomasV
33eb749c6a interface for command line mode 2012-10-21 23:22:46 +02:00
ThomasV
2da0c0b77e big refactoring of the interface
addition of the wallet verifier class for SPV
2012-10-21 22:55:16 +02:00
thomasv
a361a05b08 text gui 2012-10-20 10:30:29 +02:00
thomasv
5d01831090 text ui: first commit 2012-10-20 10:30:29 +02:00
ThomasV
d0a6e244b1 new 'set' command for the CLI 2012-10-20 10:23:34 +02:00
thomasv
c5f5e92d17 rename qt gui -> classic 2012-10-19 10:26:35 +02:00
ecdsa
52211180ed Merge pull request #42 from samueltardieu/find-wallet
make command-line [un]freeze/prioritize find the wallet object
2012-10-13 11:03:46 -07:00
ThomasV
d92f1991a9 move prompt_password from wallet.py to main script 2012-10-12 01:50:54 +02:00
thomasv
5444f55e6b big refactoring: command line options and electrum.conf options override settings in wallet file. 2012-10-11 20:10:12 +02:00
thomasv
0d11aa75c4 encapsulation: that kind of exception handling should be done in the gui module 2012-10-11 13:43:04 +02:00
thomasv
a27fba8685 use proxy with command line too 2012-10-09 16:29:53 +02:00
thomasv
fd13d19cb8 fix proxy issues: override config with command line option, and use interface.proxy in gui 2012-10-09 15:48:06 +02:00
thomasv
880b08f337 remove remote wallet (broken, will be replaced) 2012-10-05 15:49:03 +02:00
Samuel Tardieu
7e7af3c272 make command-line [un]freeze/prioritize find the wallet object 2012-10-03 20:59:36 +02:00
thomasv
ad3be71ed7 warning against redeem private key services 2012-10-02 13:15:10 +02:00
thomasv
f3ff9b5cf6 make proxy an optional parameter 2012-10-01 18:14:50 +02:00
bkkcoins
aaa56cebf2 Merge branch 'fix-offline-restore' into merged 2012-09-21 13:03:13 +07:00
bkkcoins
9c4023ba58 Revert "Fix for wallet restore when offline"
This reverts commit af750d9363.
2012-09-20 17:01:47 +07:00
bkkcoins
a213655cde fix offline restore 2012-09-20 16:46:11 +07:00
bkkcoins
af750d9363 Fix for wallet restore when offline 2012-09-20 15:30:08 +07:00
bkkcoins
aa6f631f2e Added SOCKS support, with cmdline and SimpleConfig options 2012-09-19 17:37:20 +07:00
Samuel Tardieu
aaa496fa60 Import SimpleConfig from electrum if installed 2012-09-07 11:40:06 +02:00
Maran
a31733d065 Reworked the qt warning dialog 2012-08-30 19:57:32 +02:00
Maran
6da25727f8 Refactored user_dir to utils and replaced it in wallet and config 2012-08-30 18:00:08 +02:00
Maran
fbf854bcb8 Added a set_key setter method that can also write out the changes to file 2012-08-30 17:52:03 +02:00
Maran
0d229383aa Write out the config file to <= 4.7 QT when QT > 4.7 can't be loaded. 2012-08-30 00:11:50 +02:00
Maran
3252b5ae4e Added SimpleConfig class to deal with simple config options added for fallback to other gui when missing deps 2012-08-30 00:03:38 +02:00
Maran
23d314462f Fix merge conflict with master 2012-08-29 22:54:44 +02:00
Amir Taaki
b3b910d926 WalletSynchronizer had a race condition caused by calling the callback before the Qt event loop (or other initialisation) finished. Ergo we split initialisation and the running of the thread, then use Qt SIGNALs to yield back into the Qt event loop. This ensures that the callback for the servers_list_changed is not called until the main Qt event loop is actually running. 2012-08-29 20:53:22 +01:00
Maran
bab09b4627 Fix tab issue for password 2012-08-27 10:38:22 +02:00
Amir Taaki
f2fb235643 be more permissive with catching exceptions here as many varities possible. 2012-08-27 03:12:43 +02:00
Amir Taaki
9815fb5a70 pw_decode returns ValueError on fail. 2012-08-27 03:11:05 +02:00
Maran
850d0dcd5f Made the error message for verifymessage more transparent 2012-08-26 23:35:38 +02:00
Maran
a2db281494 Added a message to the sign/verify message help text to explain spaces inside the message 2012-08-26 22:15:09 +02:00
Amir Taaki
ce584890ea Explanation: Doesn't preserve the same behaviour as code throws BaseException not SystemExit. Therefore it wasn't meant to be catching user errors.
Revert "Added more descriptive error if wallet cannot be loaded"

This reverts commit 47432b32c8.
2012-08-26 16:09:38 +02:00
Jimbo77
dd78f0978b needed to include absolute path for optparse methods 2012-08-25 14:16:21 -07:00
Jimbo77
edf293e611 reverted commit 31aaf473c8 due to it breaking electrum 2012-08-25 14:11:50 -07:00
Jimbo77
47432b32c8 Added more descriptive error if wallet cannot be loaded 2012-08-23 17:44:37 -07:00
Jimbo77
c8f19e1969 removed optparse import statment 2012-08-23 17:07:38 -07:00
Jimbo77
1112348c38 Merge branch 'optparse_upgrade' 2012-08-23 17:05:50 -07:00
Jimbo77
31aaf473c8 upgraded optparse with the newer module argparse. Can't see any problems so far 2012-08-23 17:05:07 -07:00
Amir Taaki
2b96b6dec1 Unneeded exception raised. sys.exit returns before exception ever gets a chance to be thrown. 2012-08-23 10:06:21 +01:00
Jimbo77
990547a06c changed print_error to NameError exception to reduce coupling 2012-08-22 12:01:49 -07:00
Jimbo77
3e89b65025 another small toolkit comment 2012-08-22 11:53:31 -07:00
Jimbo77
434ef95d65 small comment explaining gui importation section of electrum script 2012-08-22 11:36:04 -07:00
Amir Taaki
c9ed01e90b bugfix: wrong indentation level for prompt_password. 2012-08-20 10:12:16 +01:00
Jimbo77
ddf5614af0 getting rid of more unnecessary print_errors() 2012-08-19 18:24:02 -07:00
Jimbo77
1429ef71e1 getting rid of more unnecessary print_errors() 2012-08-19 18:19:59 -07:00
Jimbo77
8bb841787e got rid of another unneeded print_error() 2012-08-19 17:17:47 -07:00
Jimbo77
1829d20d72 got rid of another unneeded print_error() 2012-08-19 17:16:35 -07:00
Jimbo77
59b2762258 got rid of print_error() to reduce coupling 2012-08-19 16:00:46 -07:00
Jimbo77
0340339113 added ImportError and replaced print_error() with sys.exit() to reduce coupling 2012-08-19 15:10:17 -07:00
Maran
f540adaf2a Load qt gui when qt 4.7 is not available 2012-08-18 10:20:35 +02:00
Maran
95d8adb8fc Made the window a little prettier 2012-08-16 22:11:25 +02:00
Maran
175fd47130 Changing around where we issue the messages 2012-08-16 11:28:20 +02:00
Maran
09c8e956e1 Dont require private key on import, patch by ErebusBat 2012-08-01 21:52:52 +02:00
Maran
d803e3ab30 Dont confirm password from command line, patch by ErebusBat 2012-08-01 21:51:40 +02:00
Amir Taaki
fd8af94419 bugfix: signmessage expects 2 arguments. check for them. 2012-07-17 22:53:06 +02:00
Amir Taaki
e6965ef32c show help switches when using help command without subsequent command. 2012-07-17 22:50:20 +02:00
Amir Taaki
188a671681 Corrected import paths for print_error. 2012-07-07 19:53:54 +01:00
Julian Tosh
4e5dfbeade Implementing a better print_error routine 2012-07-07 09:24:52 -07:00
Julian Tosh
a3830e5903 Standardizing message format and implementing stderr for errors 2012-07-07 06:39:25 -07:00
Julian Tosh
b615fe0c8c modified password input routines to allow for input through stdin 2012-07-06 21:45:57 -07:00
Amir Taaki
6c775df363 Make lite gui the default. 2012-07-03 02:21:36 +02:00
Amir Taaki
39d765f122 show btc balance (no fiat balance yet) 2012-06-27 23:06:00 +02:00
Amir Taaki
64de7e55cc moved lite gui into lib/ and added -g lite to ./electrum 2012-06-27 22:24:58 +02:00
Maran
945f391727 Fixed list index out of range when supplying no arguments to verifymessage 2012-06-18 22:23:52 +02:00
Maran
d3c7781803 Added some more information for certain help commands also rewrote some of them to be more like the others 2012-06-18 22:19:47 +02:00
thomasv
38f93cb593 reconstruct message if it contains spaces 2012-06-12 10:46:21 +02:00
ThomasV
2ca16dc2c2 fix: distinguish between addr and m_addr 2012-06-08 20:51:10 +02:00
ThomasV
3c2971dd7b distinguish between ImportError and SyntaxError 2012-06-07 19:47:00 +02:00
thomasv
9625ef1ea9 define method get_address_flags 2012-06-07 16:14:08 +02:00
thomasv
8dd3e95708 fix import from lib 2012-06-07 14:13:51 +02:00
thomasv
34be852061 move freeze and prioritize functions into wallet class 2012-06-07 11:18:11 +02:00
thomasv
e463968da3 improve 'addresses' console command 2012-06-07 11:03:13 +02:00
ThomasV
50b7bc3474 use a dict for commands and help texts 2012-06-06 19:52:52 +02:00
ThomasV
e1b3b5892b add prioritize and freeze console commands. fix choose_inputs 2012-06-06 19:26:05 +02:00
thomasv
e085bcd755 try to import local directory before module 2012-06-06 15:18:03 +02:00
thomasv
735f9b9c20 import lib directory as electrum if the library is not installed 2012-05-30 16:46:04 +02:00
thomasv
dceb4b04ea better error messages 2012-05-30 14:42:30 +02:00
ThomasV
a5496a5477 handle imported keys as well with deseed and reseed 2012-05-17 18:10:36 +02:00
ThomasV
1c2c62480d fix: password on creation 2012-05-17 08:49:30 +02:00
ThomasV
1181f4ef01 bugfix: encryption of encrypted keys 2012-05-17 08:32:49 +02:00
ThomasV
603a74523a wallet.path 2012-05-16 19:51:00 +02:00
ThomasV
dded634f65 replace options.wallet_path with wallet.path 2012-05-16 19:49:41 +02:00
ThomasV
c2967e874c update help message 2012-05-16 19:34:55 +02:00
ThomasV
06182df71f rm mnemonic option, paste seed as both hexadecimal and mnemonic 2012-05-16 19:33:42 +02:00
thomasv
c5d42f3614 slightly more robust connection procedure 2012-05-16 17:29:05 +02:00
ThomasV
94cc6aa93a path 2012-05-15 07:23:29 +02:00
ThomasV
e34f7dce7f do not derive private keys when there is no seed 2012-05-14 21:31:37 +02:00
thomasv
04d78a3bf4 better messages 2012-05-14 17:35:38 +02:00
thomasv
ef55d98d3f --mnemonic option, and improved help messages 2012-05-14 17:15:59 +02:00
thomasv
9215ed7867 make the history command an online command; option -o can be used to have it offline 2012-05-14 14:54:36 +02:00
thomasv
1e192e9ca9 test the existence of modules in the main script 2012-05-14 14:09:50 +02:00
ThomasV
8340339678 offline option for command line 2012-05-13 10:19:28 +02:00
ThomasV
9ad16ec01e deseed: error if wallet is encrypted 2012-05-13 02:36:44 +02:00
ThomasV
6559eb4397 deseed and reseed 2012-05-13 01:32:28 +02:00
ThomasV
2e1fd923b8 deseed command 2012-05-13 00:43:22 +02:00
thomasv
d68133e0e1 fix import 2012-05-11 10:16:39 +02:00
thomasv
b8773178a1 setup package in lib subdirectory 2012-05-10 14:38:49 +02:00
ThomasV
235e3756c5 fix: is_input 2012-04-30 11:48:02 +02:00
genjix
b3fd4a2832 mv client/* . && rm -fr client 2012-04-29 17:49:41 +01:00