Jonas Schnelli
a10a6e2a0e
[Univalue] add univalue over subtree
similar to secp256k1 include and compile univalue over a subtree
9 years ago
Jack Grigg
0d37ae3a59
Migrate Zcash-specific code to UniValue
8 years ago
Jonas Schnelli
d014114d67
Remove JSON Spirit wrapper, remove JSON Spirit leftovers
- implement find_value() function for UniValue
- replace all Array/Value/Object types with UniValues, remove JSON Spirit to UniValue wrapper
- remove JSON Spirit sources
9 years ago
Jonas Schnelli
851f58f94e
remove JSON Spirit UniValue wrapper
9 years ago
Simon
9064d73bf8
Fixes #1497 ZCA-009 by restricting data exporting to user defined folder.
Previously the RPC interface allowed z_exportwallet, backupwallet and
dumpwallet to write data to an arbitrary filename. ZCA-009 demonstrates
how this is vulnerable. The resolution is to only allow data to
written when the -exportdir has been configured. Also filenames are
restricted to alphanumeric characters.
8 years ago
Simon
af53da0225
Closes #1903 . Add fee parameter to z_sendmany.
8 years ago
jl777
2e500f5048
test
8 years ago
Simon
4e16a7249c
Closes #1746 . Add rpc call z_validateaddress to validate zaddrs.
8 years ago
Jack Grigg
d8e06e3f58
Add test that encryptwallet is disabled
8 years ago
Simon
6be367ea6d
Fix test so that the encrypted wallet is output to the test_bitcoin -datadir folder.
8 years ago
Simon
e346a0b3f8
Add tests to verify that all z_* rpc calls return an error if there are too many input parameters.
8 years ago
Jack Grigg
b6f100cf86
Update tests for account deprecation
8 years ago
Jack Grigg
f92f004714
Fix zkey test
8 years ago
Jack Grigg
ee64b5e726
Re-encode hard-coded addresses in tests
8 years ago
Simon
82bd9ee81b
Fix comment and formatting per review
8 years ago
Simon
73699ceaf6
Add support for spending keys to the encrypted wallet.
8 years ago
Simon
da5e7e5185
Formatting and updated test per review.
8 years ago
Simon
e883ffef91
Add test for calling RPC z_getbalance, z_gettotalbalance, z_listreceivedbyaddress with invalid parameters.
8 years ago
Simon
7b79275eba
Add tests to try and improve coverage of perform_joinsplit.
8 years ago
Simon
cff6f0ac46
Add friend class for testing private members of AsyncRPCOperation_sendmany.
8 years ago
Simon
fc4b127ed3
Add tests for async queue and rpc commands: z_getoperationstatus, z_getoperationresult, z_listoperationids, z_sendmany
8 years ago
Simon
b922924d14
Add test for AsyncRPCQueue and AsyncRPCOperation.
8 years ago
Simon
5d50130bc9
Closes #1315 . RPC getblocksubsidy height parameter is now optional and
a test has been added to verify parameter input and results.
8 years ago
Simon
4b2e557181
Fix comments.
8 years ago
Simon
badb9a9c2f
Add test coverage for RPC call z_getnewaddress.
8 years ago
Simon
60f762a549
Added wallet rpc tests to cover:
z_importwallet, z_exportwallet
z_importkey, z_exportkey
z_listaddresses
8 years ago
Jorge Timón
8a893c949b
Includes: Do not include main.h from any other header
9 years ago
Jonas Schnelli
50c72f23ad
[Move Only] Move wallet related things to src/wallet/
could once be renamed from /src/wallet to /src/legacywallet.
9 years ago
Pieter Wuille
51598b2631
Reinitialize state in between individual unit tests.
This changes the TestingSetup fixture to be per-unit-test rather than global.
Most tests don't need it, so it's only invoked in a few.
9 years ago
Everett Forth
7c5dd60306
Adding RPC tests for the following wallet related calls: getbalance,
listsinceblock, listtransactions, listlockunspent, listaccounts
listaddressgroupings
10 years ago
Michael Ford
78253fcbad
Remove references to X11 licence
10 years ago
Eric Shaw
bc470c43ee
Changed mixed indentation to four spaces
Put `test/rpc_wallet_tests.cpp` through clang-format.
10 years ago
Eric Shaw
31d6390fd1
Fixed setaccount accepting foreign address
Fixed issue #4209 where using setaccount with a foreign
address causes the address to be added to your receiving addresses.
10 years ago
Wladimir J. van der Laan
ed67100565
Add required locks in tests
Unit tests with DEBUG_LOCKORDER were running into assertions.
10 years ago
Alon Muroch
75ebced499
added many rpc wallet tests
deleted the empty no throw test in rpc_wallet_tests line 65
fixed some comments
starting verify tests
finished verify message tests
changed some comments
10 years ago
Wladimir J. van der Laan
3fc6846181
Add licenses for tests and test data
- Add license headers to source files (years based on commit dates)
in `src/test` as well as `qa`
- Add `README.md` to `src/test/data` specifying MIT license
Fixes #3848
10 years ago
Gavin Andresen
fd67424c82
Unit test fixes for AssertLockHeld / -DDEBUG_LOCKORDER
Unit tests would fail if compiled with -DDEBUG_LOCKORDER (AssertLockHeld()
would fail; AssertLockHeld() relies on the DEBUG_LOCKORDER code to keep
track of locks held).
Fixed by LOCK'ing the wallet mutex in the unit tests that manipulate the
wallet.
11 years ago
Wladimir J. van der Laan
5094f8d46f
Split off rpc_wallet_tests
Split wallet tests from other RPC tests.
Now no #ifdef ENABLE_WALLET are needed anymore in either file.
11 years ago