Commit graph

348 commits

Author SHA1 Message Date
ThomasV
0531f00c80 support for \! shortcut in command line 2015-05-31 10:40:12 +02:00
ThomasV
0caa29784c separate param_descriptions and improve help messages 2015-05-31 10:03:53 +02:00
ThomasV
cc610d352f merge signtxwithwallet and signtxwithkey 2015-05-31 09:28:47 +02:00
ThomasV
1d5f04c588 fix function name 2015-05-31 08:49:47 +02:00
ThomasV
53a3f00389 add --deserialize option to gettransaction 2015-05-31 08:20:09 +02:00
ThomasV
9acc0e4ed0 minor formatting 2015-05-31 08:06:20 +02:00
ThomasV
bd6bfcea0e Merge pull request #1267 from kyuupichan/spendable_coins
get_spendable_coins and frozen addrs
2015-05-31 07:53:43 +02:00
Neil Booth
320f9a3790 get_spendable_coins and frozen addrs
Two callers of get_spendable_coins were removing frozen addrs
before calling.  Put that functionality in the function.
We shouldn't be able to send_from a frozen address.  This was
possible in the current release because logic assumed a two-element
tuple was returned when it is now three-element.  Fix that too.

Command line options listunspent and createrawtransaction currently
ignore frozen addresses.  I'm not sure that's right but I've preserved
that behaviour.

With this patch only the wallet class refers to self.frozen_addresses;
other clients use is_frozen() now.
2015-05-31 14:07:50 +09:00
ThomasV
00ded10810 fix: freeze does not need password 2015-05-31 06:45:51 +02:00
Neil Booth
0f29984f07 Speed up freezing and unfreezing of many addresses
Speedup mainly from writing to storage only once.
Make frozen_addresses a set in memory, as sets give cleaner
code and are more efficient.

Minor change in behaviour: command line freezing used to return
False if the address isn't in the wallet OR the address was already
frozen.  Now it returns more like a success code: it returns False
only if the address isn't in the wallet regardless of frozen state.
Similarly for unfreezing.
2015-05-31 11:54:21 +09:00
ThomasV
d6f4b57d64 help function for python console 2015-05-30 19:13:28 +02:00
ThomasV
92a158b910 proper handling of arg_types. add more options for listaddresses 2015-05-30 18:49:58 +02:00
ThomasV
2ab9272f52 fix positional arguments 2015-05-30 16:14:56 +02:00
ThomasV
966bb3c15f separate help and description for commands 2015-05-30 14:07:48 +02:00
ThomasV
0ad73b0899 better help 2015-05-30 13:38:05 +02:00
ThomasV
d2f3e3f349 fix cmdline listcontacts 2015-05-30 12:35:58 +02:00
ThomasV
48f98f75db improve help messages 2015-05-30 09:43:42 +02:00
ThomasV
bf1aa6263c add description to command parameters 2015-05-30 09:36:54 +02:00
ThomasV
5dd535f915 move global options to parent, to avoid order-sensitive parsing 2015-05-30 07:58:47 +02:00
ThomasV
701527df20 fix -P option 2015-05-30 06:56:45 +02:00
ThomasV
6201133c48 fix #1263 2015-05-30 06:38:46 +02:00
ThomasV
a0c7219db0 rm debugging print 2015-05-29 19:30:00 +02:00
ThomasV
2e67ca43e8 use csv instead of mkmanytx 2015-05-29 19:26:06 +02:00
ThomasV
3ddbbc1008 Parse arguments with argparse.
Move parser to commands.py
2015-05-29 19:24:50 +02:00
ThomasV
9dc8393cf6 move import test to wallet.py 2015-05-28 15:39:26 +02:00
ThomasV
3fdfd23ca9 add check in importprivkey 2015-05-28 15:27:22 +02:00
mikeland86
0ec62c8f36 Fix createrawtransaction and missing deserialize()
Found these issues while trying to create, sign, and broadcast a raw transaction. 

* createrawtransaction was using old signature for Transaction constructor
* Signwithwallet and decoderawtransaction need to call deserialize on tx before they can access inputs and outputs. (Maybe adding getInputs() and getOutputs() which deserializes if needed might be nicer)
2015-05-13 14:57:34 +02:00
ThomasV
5fa2a48343 add getmerkle command 2015-05-12 12:30:26 +02:00
ThomasV
43b8e202fd replace instances of get_unspent_coins 2015-05-06 07:25:50 +02:00
ThomasV
687cc7783f show unmatured coins in status bar. fixes #1163 2015-05-05 20:52:14 +02:00
ThomasV
7316f613d6 fix history command 2015-04-28 08:58:33 +02:00
Roman Zeyde
c4b306cdbe fix Transaction.deserialize() to Transaction() 2015-03-30 18:28:24 +03:00
ThomasV
e3de121be9 store deserialized tx in/out in wallet file for fast computation 2015-03-30 14:10:46 +02:00
ThomasV
4a4624cb85 type conversion; fixes #1077 2015-03-14 16:22:47 +01:00
ThomasV
9285074f00 fix typo 2015-01-11 20:38:48 +01:00
ThomasV
0f5ab4c296 add ismine command. should fix issue #975 2015-01-11 20:37:08 +01:00
ThomasV
52e9c0b498 fix createrawtransaction, using extended serialization format 2014-12-29 20:26:00 +01:00
Nick Levesque
8fae4434c1 Added searchcontacts command 2014-11-05 18:02:44 -05:00
ThomasV
581ed1ed26 separate signtxwithkey and signtxwithwallet, and simplify sign_transaction 2014-10-30 16:36:29 +01:00
ThomasV
6361abaf4d extended seed prefix 2014-09-09 11:51:45 +02:00
ThomasV
ca765b6622 getseed: display seed as utf8 2014-09-03 18:52:43 +02:00
ThomasV
1e75d6f854 add japanese, fix utf8 2014-09-03 17:21:43 +02:00
ThomasV
4d71707be8 add portuguese wordlist, and adapt wordlist parsing 2014-08-28 17:30:44 +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
Janne Pulkkinen
95413cd1a9 Confirmation count included in API command history 2014-08-19 20:57:37 +03:00
ThomasV
9ee0614edb make daemon usable with the GUI 2014-07-24 16:12:18 +02:00
ThomasV
24f40f610f fix: update commands with new transaction constructors 2014-07-14 01:07:54 +02:00
ThomasV
1bb00ff5af store output type explicitly in tuple 2014-07-08 19:38:16 +02:00
ThomasV
2e1d24939c rm duplicate method getpubkey 2014-07-06 22:24:09 +02:00
Chris Glass
01f3e31c6b First cleanup branch commit
This fixes some import and whitespace issues to align closer to pep8.
I added a few comments to make further contributions easier.
2014-06-24 16:12:43 +03:00