Jonathan "Duke" Leto
01fb676782
Allow duplicate receivers in z_sendmany
2019-05-31 10:54:16 +02:00
Jonathan "Duke" Leto
0f24aec587
Give correct CLI asset name and RPC ports in rpc examples
2019-05-27 21:36:25 -07:00
Jonathan "Duke" Leto
406d6e60a2
Wait to look at KOMODO_INSYNC until we hold cs_main lock, to prevent a datarace when using chainActive
2019-05-20 06:49:22 -07:00
Jonathan "Duke" Leto
3275b435de
Add synced key to getinfo+getblockchaininfo
...
This addresses #3 of upstream issue
https://github.com/zcash/zcash/issues/3996 .
Any software that creates a transaction outside of the RPC interface
MUST check if synced==true beforehand, otherwise metadata leakage which
leads to linkability analysis is possible.
The z_sendmany, z_shieldcoinbase and z_mergetoaddress RPCs have their
own synced checks, so it's not needed to look at this new synced value
when using those RPCs.
2019-05-16 05:24:27 -07:00
Jonathan "Duke" Leto
8b57ca63b8
Prevent linkability analysis on out-of-sync nodes
...
This addresses upstream issue https://github.com/zcash/zcash/issues/3996
by preventing z_sendmany, z_mergecoinbase and z_shieldcoinbase from
making shielded transactions if the node is out of sync. This prevents
metadata leakage which can be used in blockchain analysis.
2019-05-16 05:24:17 -07:00
Jonathan "Duke" Leto
74b2563334
Reduce unnecessary warnings to STDOUT
2019-04-21 07:58:05 -07:00
Jonathan "Duke" Leto
d725af022e
Client name is not a consensus-related option, it can be configured by any node
2019-04-02 06:44:09 -07:00
Jonathan "Duke" Leto
6398d6f054
Filter out amount=0 UTXOs from getsnapshot results
2019-03-09 14:52:49 -08:00
Jonathan "Duke" Leto
5c66b810d3
Prevent use of uninitialized ignoredAddresses
2019-03-09 07:50:53 -08:00
Jonathan "Duke" Leto
bb03c1d872
Update zeromq to 4.3.1
2019-02-17 06:03:35 -08:00
Jonathan "Duke" Leto
88e7828253
Fix building of libcc on darwin
2019-02-15 17:15:12 -08:00
Jonathan "Duke" Leto
72a3a99eaa
quick hack to make things build on mac
2019-02-15 15:52:15 -08:00
Jonathan "Duke" Leto
5d5af91e5d
Add dpowconfs to z_listreceivedbyaddress
2019-01-06 14:00:09 -08:00
Jonathan "Duke" Leto
18b0a92c3e
Add confirmations to z_listreceivedbyaddress
2019-01-06 13:40:04 -08:00
Jonathan "Duke" Leto
5070f4397a
cleanup
2019-01-05 17:02:20 -08:00
Jonathan "Duke" Leto
dda20b2760
Correctly lookup height of joinsplits in z_listunspent
2019-01-06 01:39:04 +01:00
Jonathan "Duke" Leto
f24ae214d2
Add dpowconfs to z_listunspent + listreceivedbyaddress and other small fixes
2019-01-05 19:24:14 +01:00
Jonathan "Duke" Leto
7b30d56d3d
Add makefile and readme for CC dapps
2018-12-15 10:29:00 -08:00
Jonathan "Duke" Leto
d3d5fb9142
Fix z_importkey for sapling addresses
2018-12-05 20:46:41 +01:00
Jonathan "Duke" Leto
1617998925
Add ac_private test to suite
2018-11-26 18:15:37 +01:00
Jonathan "Duke" Leto
8c34aa1f7c
Add back tokenconvert
2018-11-26 18:09:44 +01:00
Jonathan "Duke" Leto
f60ba7d7cb
Basic test for ac_private chains
2018-11-24 08:16:17 +01:00
Jonathan "Duke" Leto
5ed808b25f
Add VerusHash tests, which currently give: JSONRPC error: Division by zero
2018-11-23 22:45:28 +01:00
Jonathan "Duke" Leto
1fb745d8ee
Get dice CC compiling again
2018-11-21 09:37:05 +01:00
Jonathan "Duke" Leto
87f557bd32
More error checking in oracle and gateway RPCs
2018-11-20 15:53:29 -08:00
Jonathan "Duke" Leto
8c66ce0a7f
Teach oracles* RPC functions about CCerror and start populating it
2018-11-20 13:22:16 -08:00
Jonathan "Duke" Leto
d3f0b4269d
Clean up dicebet/dicestatus error handling and add new macro to make things easier
2018-11-07 13:30:29 -08:00
Jonathan "Duke" Leto
0d888fcd32
Add jsindex to z_listreceivedbyaddress to uniquely identify them
2018-11-01 11:16:57 -07:00
Jonathan "Duke" Leto
42bf3ac4d8
Add size_on_disk to getblockchaininfo from BTC master
2018-10-28 22:20:07 -07:00
Jonathan "Duke" Leto
f8ffce7f35
This extracts new concept of dpowconfs (confs vs rawconfs) from fsm branch to master
2018-10-18 10:11:48 -07:00
Jonathan "Duke" Leto
5707edd4b1
Fix another instance of incorrectly saying amount is double precision, and s/ZC/ZEC/
2018-10-14 06:37:25 -07:00
Jonathan "Duke" Leto
a510b0f883
Add Hush to dpowassets
2018-09-23 10:49:46 -07:00
Jonathan "Duke" Leto
92b42d287e
Clarify in sendmany/z_sendmany rpc docs that amounts are not floating point
2018-09-23 06:18:22 -07:00
Jonathan "Duke" Leto
fde85d291f
Add some helpful error messages for when Diceinit fails
2018-08-30 10:56:06 +02:00
Jonathan "Duke" Leto
8200435363
Validate plan name in dicebet
2018-08-27 00:57:29 +02:00
Jonathan "Duke" Leto
124819cef5
Lots of error checking improvements and more passing tests
2018-08-27 00:55:53 +02:00
Jonathan "Duke" Leto
d6635db93a
Test for new behavior for faucets
2018-08-24 18:34:19 +02:00
Jonathan "Duke" Leto
ade19d82a5
Grab changes from TonyL
2018-08-24 17:50:49 +02:00
Jonathan "Duke" Leto
c56b391b54
Merge remote-tracking branch 'origin/jl777' into cctests
2018-08-24 17:46:51 +02:00
Jonathan "Duke" Leto
d90c7309e6
Better errors from diceinfo
2018-08-24 17:46:36 +02:00
Jonathan "Duke" Leto
b918152f30
Return more dicecalc errors in json response
2018-08-24 06:45:11 +02:00
Jonathan "Duke" Leto
0b3fb56593
Bubble up some more errors in dicestatus json responses
2018-08-24 06:21:55 +02:00
Jonathan "Duke" Leto
5dcef2eae0
Merge remote-tracking branch 'origin/jl777' into cctests
2018-08-24 02:24:36 +02:00
Jonathan "Duke" Leto
798686cb3c
Fix up
2018-08-24 00:32:18 +02:00
Jonathan "Duke" Leto
e4452dc2dd
Get tests passing again, by changing our test to check for an exception, which is the new behavior
2018-08-23 04:22:11 +02:00
Jonathan "Duke" Leto
505634eeae
Pass various internal dice errors back in JSON response
2018-08-22 17:07:04 +02:00
Jonathan "Duke" Leto
b8245a9397
enable cross chain CC stuff in tests
2018-08-22 10:11:05 +02:00
Jonathan "Duke" Leto
df09c378ca
Fix a test
2018-08-22 09:50:06 +02:00
Jonathan "Duke" Leto
47a5268bd4
Prevent useless prints in regtest
2018-08-22 09:49:55 +02:00
Jonathan "Duke" Leto
feff708dbe
Merge remote-tracking branch 'origin/jl777' into cctests
2018-08-22 09:26:53 +02:00
Jonathan "Duke" Leto
a03146b340
Lots more error checking in rewards and dice
2018-08-22 09:26:37 +02:00
Jonathan "Duke" Leto
e4f4e63bf5
Merge remote-tracking branch 'origin/jl777' into cctests
...
Tests failing right now due to change in behavior:
CC Eval EVAL_FAUCET Invalid: faucet is only for brand new addresses
2018-08-16 17:40:57 +02:00
Jonathan "Duke" Leto
8a3e1884d6
More token tests and more error checking and better errors from internals
2018-08-16 17:17:54 +02:00
Jonathan "Duke" Leto
8e0ff2b732
Test refactoring, more tests, and lots of error checking improvements and uint64_t fixes
2018-08-15 23:24:59 +02:00
Jonathan "Duke" Leto
ef44dd00e1
more rewards tests
2018-08-15 10:21:59 +02:00
Jonathan "Duke" Leto
8d42405dda
Merge remote-tracking branch 'origin/jl777' into cctests
2018-08-13 16:25:19 +02:00
Jonathan "Duke" Leto
66027c0219
Add rewards tests
2018-08-13 09:55:17 +02:00
Jonathan "Duke" Leto
84b40e08a2
Start adding tests for rewardsunlock
2018-08-12 20:31:45 +02:00
Jonathan "Duke" Leto
012613d7ac
Undo this, it should be on a diff branch
2018-08-11 19:24:19 +02:00
Jonathan "Duke" Leto
941619eb46
Make the REGTEST AC special in our test suite, so we get a predictable rpc port number
2018-08-11 19:14:51 +02:00
Jonathan "Duke" Leto
2f1319dcfc
Merge remote-tracking branch 'origin/jl777' into cctests
2018-08-11 16:47:51 +02:00
Jonathan "Duke" Leto
88e714577b
More rewards tests
2018-08-11 16:47:24 +02:00
Jonathan "Duke" Leto
15b76bd76a
More rewards tests
2018-08-11 08:58:56 +02:00
Jonathan "Duke" Leto
efa644f28e
Add some rewards tests
2018-08-11 08:21:32 +02:00
Jonathan "Duke" Leto
03fb3946a1
Fix various return values which should be std::string
2018-08-11 07:18:31 +02:00
Jonathan "Duke" Leto
f1084b8898
Refactor faucet/rewards/dice/token tests into their own functions
2018-08-11 00:34:38 +02:00
Jonathan "Duke" Leto
b5d4eaf3ab
Merge remote-tracking branch 'origin/jl777' into cctests
2018-08-10 23:45:24 +02:00
Jonathan "Duke" Leto
ae55065235
Merge remote-tracking branch 'origin/jl777' into cctests
2018-08-10 19:55:24 +02:00
Jonathan "Duke" Leto
9b30af9799
Fix bug in FaucetGet where it returns an int instead of a string
2018-08-10 18:10:21 +02:00
Jonathan "Duke" Leto
ba0f55ac2f
Add tests for tokencreate and rewardsaddress
2018-08-10 10:46:07 +02:00
Jonathan "Duke" Leto
4adca0ce76
Merge remote-tracking branch 'origin/jl777' into cctests
2018-08-10 09:26:22 +02:00
Jonathan "Duke" Leto
a6a826c625
Add more tests, fails sometimes still due to bad-txns-inputs-duplicate
2018-08-10 09:23:04 +02:00
Jonathan "Duke" Leto
7b9e2b3c60
faucetget tests
2018-08-10 08:40:28 +02:00
Jonathan "Duke" Leto
200d60b17f
Merge remote-tracking branch 'origin/jl777' into cctests
2018-08-10 08:04:42 +02:00
Jonathan "Duke" Leto
fe6882f14c
More faucet tests, currently sendrawtransaction failing with bad-txns-inputs-duplicate
2018-08-10 08:04:34 +02:00
Jonathan "Duke" Leto
ae7e9b7263
Merge remote-tracking branch 'origin/jl777' into cctests
2018-08-09 23:38:49 +02:00
Jonathan "Duke" Leto
2098a4c9bb
Disallow negative funding in faucetfund
2018-08-09 23:37:38 +02:00
Jonathan "Duke" Leto
700c1fcfc3
Improve error checking on funds argument to faucetfund
2018-08-09 22:54:23 +02:00
Jonathan "Duke" Leto
de3a68db84
add more tests for faucetfund edge cases
2018-08-09 22:52:29 +02:00
Jonathan "Duke" Leto
1399f859e0
Mine more blocks to ensure a mature balance
2018-08-09 08:53:24 +02:00
Jonathan "Duke" Leto
77373514f5
Add dicelist test; dicefund/tokeninfo tests need to be funded to work correctly
2018-08-08 09:25:47 +02:00
Jonathan "Duke" Leto
776fb6cd62
Add tests for tokenorders and tokenbalance
2018-08-08 09:11:33 +02:00
Jonathan "Duke" Leto
8567b4386b
Add a test for tokenlist
2018-08-08 07:25:52 +02:00
Jonathan "Duke" Leto
7b6e9bf069
More faucet and token tests
2018-08-07 23:34:50 +02:00
Jonathan "Duke" Leto
380bcb10ba
Add some dice tests
2018-08-07 21:50:54 +02:00
Jonathan "Duke" Leto
d48c67574f
Improve faucetaddress tests
2018-08-07 21:45:32 +02:00
Jonathan "Duke" Leto
8d454fb58e
Sleep a bit to give time for regtest komodod to start
2018-08-07 21:32:56 +02:00
Jonathan "Duke" Leto
dcc6cdb083
Remove reference to REGTEST.conf in start_node which all tests use, not just CC tests. it is passed via extra_args
2018-08-07 21:24:33 +02:00
Jonathan "Duke" Leto
eb8f0960e1
Fix some docs and references to bitcoind
2018-08-07 21:23:05 +02:00
Jonathan "Duke" Leto
38a2d0c825
Pass along extra_args correctly to get correct rpc user/pass
2018-08-07 20:57:42 +02:00
Jonathan "Duke" Leto
3528faa711
Use correct rpc user/pass; this only works the second time its run, some kind of timing/caching issue
2018-08-07 20:51:12 +02:00
Jonathan "Duke" Leto
626af0e73e
Getting closer, invalid rpc user/pass instead of wrong port
2018-08-07 20:13:32 +02:00
Jonathan "Duke" Leto
5ec4373ca4
More debugging trying to make getblockcount work and not have komodod hang the test
2018-08-07 09:22:40 +02:00
Jonathan "Duke" Leto
32829f6d6f
Fix various test suite bugs and create CC AC in our tests
2018-08-07 08:13:18 +02:00
Jonathan "Duke" Leto
467e1047aa
Optimize our cc python test; only start 1 node for now
2018-08-06 23:00:47 +02:00
Jonathan "Duke" Leto
25709e3078
These %lli/%li formats are platform-dependent
2018-08-06 22:50:38 +02:00
Jonathan "Duke" Leto
6358342934
debug valid pubkey error
2018-08-06 10:59:33 -07:00
Jonathan "Duke" Leto
f4cdde0e85
Enable txindex in regtest komodo.confs and update binary in initialize_chain
2018-08-06 08:09:15 -07:00
Jonathan "Duke" Leto
45a4cba477
fix test docs
2018-08-06 00:44:49 -07:00
Jonathan "Duke" Leto
3ccd5a79e5
Look for the correct config file in our tests
2018-08-06 00:43:31 -07:00