Jonas Schnelli
851f58f94e
remove JSON Spirit UniValue wrapper
2017-02-10 00:35:24 +00:00
Jonas Schnelli
565d26737a
fix rpc unit test, plain numbers are not JSON compatible object
...
UniValues read() does only read valid json.
2017-02-10 00:35:24 +00:00
Jonas Schnelli
9ccfdd9a01
univalue: correct bool support
2017-02-10 00:35:24 +00:00
Jonas Schnelli
49a5df0ef3
univalue: add support for real, fix percision and make it json_spirit compatible
...
- avoid breaking the API because of different number/percision handling
2017-02-10 00:35:24 +00:00
Jonas Schnelli
23f71dc740
special threatment for null,true,false because they are non valid json
2017-02-10 00:35:24 +00:00
Jonas Schnelli
38fc4b7090
expicit set UniValue type to avoid empty values
2017-02-10 00:35:24 +00:00
Jonas Schnelli
9756b7bd29
extend conversion to UniValue
2017-02-10 00:35:24 +00:00
Jeff Garzik
ed21d5bd4b
Convert tree to using univalue. Eliminate all json_spirit uses.
2017-02-10 00:35:24 +00:00
Jeff Garzik
03912600e8
UniValue: export NullUniValue global constant
2017-02-10 00:35:24 +00:00
Jeff Garzik
ec57cc0ffe
UniValue: prefer .size() to .count(), to harmonize w/ existing tree
2017-02-10 00:35:24 +00:00
zkbot
f52293b982
Auto merge of #2078 - ebfull:uaf, r=bitcartel
...
Fix use after free in transaction_tests.
Fixes #2026
2017-02-10 00:29:57 +00:00
Daira Hopwood
3df7c4c8c0
Address @str4d's comment about the case where -gen is not set.
...
Also avoid shadowing mineToLocalWallet variable.
Signed-off-by: Daira Hopwood <daira@jacaranda.org >
2017-02-10 00:15:12 +00:00
zkbot
7d4ced95ed
Auto merge of #2056 - str4d:2035-experimental-mode, r=bitcartel
...
Add a flag for enabling experimental features
Closes #2035 .
2017-02-09 23:39:02 +00:00
Simon
6605125d4e
Add comment about fix for #2026 .
2017-02-09 15:17:21 -08:00
zkbot
d32511c72c
Auto merge of #2054 - str4d:2030-decoderawtransaction-joinsplit-fields, r=bitcartel
...
Show all JoinSplit components in getrawtransaction and decoderawtransaction
Closes #2030 .
2017-02-09 22:56:01 +00:00
Jack Grigg
b8eb37757b
Require -experimentalmode for wallet encryption
2017-02-09 22:10:58 +00:00
Jack Grigg
1f015f6afa
Add a flag for enabling experimental features
2017-02-09 22:10:58 +00:00
Sean Bowe
05ec7887f1
Fix use after free in transaction_tests.
2017-02-09 14:35:33 -07:00
zkbot
0c78782662
Auto merge of #1965 - str4d:1955-single-address-mining, r=bitcartel
...
Switch miner to P2PKH, add -mineraddress option
Closes #945 and #1955 .
2017-02-09 20:58:00 +00:00
zkbot
253c610783
Auto merge of #2050 - str4d:2020-zmq, r=bitcartel
...
Add ZeroMQ notifications
Cherry-picked from the following upstream PRs:
- bitcoin/bitcoin#6103
- bitcoin/bitcoin#6684
- bitcoin/bitcoin#6686
- bitcoin/bitcoin#6736
- bitcoin/bitcoin#6739
- bitcoin/bitcoin#6743
- bitcoin/bitcoin#6768
- bitcoin/bitcoin#6779
- bitcoin/bitcoin#6810
- bitcoin/bitcoin#6927
- bitcoin/bitcoin#6980 (only upgrading zeromq)
- bitcoin/bitcoin#6680
- bitcoin/bitcoin#7058
- bitcoin/bitcoin#7621
- bitcoin/bitcoin#7335 (only parts affecting `zmq_test.py`)
- bitcoin/bitcoin#7853 (only parts affecting `zmq_test.py`)
- bitcoin/bitcoin#7762
- bitcoin/bitcoin#7993 (only upgrading zeromq)
- bitcoin/bitcoin#8238
- bitcoin/bitcoin#8701
- bitcoin/bitcoin#6685
Closes #2020 .
2017-02-09 20:08:15 +00:00
Daira Hopwood
9bba9b37c8
Better error reporting for the !ENABLE_WALLET && ENABLE_MINING case.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org >
2017-02-09 19:31:47 +00:00
zkbot
b2e2dccc64
Auto merge of #2068 - bitcartel:2045_sendmany_fee_zero, r=bitcartel
...
Closes #2045 by allowing z_sendmany with 0 fee
2017-02-09 18:56:44 +00:00
zkbot
80a32b2845
Auto merge of #1863 - str4d:1795-config-flag-disable-miner, r=bitcartel
...
Add compile flag to disable compilation of mining code
Closes #1795
2017-02-09 17:43:43 +00:00
Jack Grigg
f49bcdf92b
Add -minetolocalwallet flag, enforced on -mineraddress
2017-02-08 23:37:45 +00:00
Jonas Schnelli
3ba2e19e2b
[ZMQ] append a message sequence number to every ZMQ notification
2017-02-08 22:11:53 +00:00
Jonas Schnelli
abf8020443
[ZMQ] refactor message string
2017-02-08 22:11:53 +00:00
mrbandrews
d4cca6a320
Fixes ZMQ startup with bad arguments.
2017-02-08 22:11:53 +00:00
Daniel Cousens
63303d025d
zmq: prepend zmq to debug messages
2017-02-08 22:11:53 +00:00
Daniel Cousens
6550e97224
init: add zmq to debug categories
2017-02-08 22:11:53 +00:00
Daniel Cousens
57c6ef01d9
init: amend ZMQ flag names
2017-02-08 22:10:42 +00:00
Jonas Schnelli
6a793d9c27
use CBlockIndex* insted of uint256 for UpdatedBlockTip signal
...
- removes mapBlockIndex find operation
- theoretically allows removing the cs_main lock during zqm notification while introducing a new file position lock
2017-02-08 22:10:42 +00:00
João Barbosa
5015d2b27f
Fix ZMQ Notification initialization and shutdown
...
Moves the call Initialize() from init.cpp to CreateWithArguments() and handles the
return value. Moves the call Shutdown() from init.cpp to destructor.
Changes Initialize() and Shutdown() to protected members.
2017-02-08 22:10:42 +00:00
Cory Fields
007148fafa
build: Make use of ZMQ_CFLAGS
2017-02-08 22:10:42 +00:00
Jack Grigg
8b99caa3e6
Add ZMQ libs to zcash-gtest
2017-02-08 22:10:42 +00:00
Jeff Garzik
f200002cf3
Add ZeroMQ support. Notify blocks and transactions via ZeroMQ
...
Continues Johnathan Corgan's work.
Publishing multipart messages
Bugfix: Add missing zmq header includes
Bugfix: Adjust build system to link ZeroMQ code for Qt binaries
2017-02-08 22:10:42 +00:00
João Barbosa
7e6ec078fa
Add UpdatedBlockTip signal to CMainSignals and CValidationInterface
2017-02-08 22:10:42 +00:00
Simon
4b7f603813
Alert 1001
2017-02-08 12:21:07 -08:00
Simon
684ae2a730
Alert 1000
2017-02-08 11:57:15 -08:00
zkbot
138f19b0ba
Auto merge of #2072 - bitcartel:2060_debug_zrpc_zrpcunsafe, r=bitcartel
...
Closes #2060 by updating zrpc and zrpcunsafe logging
2017-02-08 18:54:47 +00:00
Simon
43b6753782
Update zrpc vs zrpcunsafe logging in z_sendmany operation
2017-02-08 10:50:40 -08:00
jl777
9f1ae77daf
test
2017-02-08 10:20:30 +02:00
jl777
e4b3ad624a
test
2017-02-08 09:54:00 +02:00
jl777
de7d3a140a
test
2017-02-08 09:20:09 +02:00
zkbot
dff700c1af
Auto merge of #2055 - str4d:1545-note-decryption-error-class, r=daira
...
Use a more specific exception class for note decryption failure
Closes #1545 .
2017-02-08 03:12:37 +00:00
jl777
8f704e3fcf
fix getinfo bad notaryid
2017-02-07 22:22:51 +02:00
jl777
97561034f6
test
2017-02-07 18:24:19 +02:00
jl777
0554de3c4b
test
2017-02-07 18:22:54 +02:00
jl777
303fbd2061
test
2017-02-07 18:03:45 +02:00
Simon
3307124a2b
Add parameter interaction, where zrpcunsafe implies zrpc
2017-02-06 23:29:07 -08:00
jl777
1e3fdfaabc
min
2017-02-07 07:05:20 +02:00