Philip Kaufmann
db954a65ac
use const references where appropriate
9 years ago
Jack Grigg
3c014397a9
BTC -> ZEC in paytxfee RPC docs
Revert before merging bitcoin/bitcoin#6504 .
7 years ago
Matt Corallo
3d8013a01b
Add fundrawtransaction RPC method
9 years ago
Matt Corallo
aa30f65502
Add FundTransaction method to wallet
Some code stolen from Jonas Schnelli <jonas.schnelli@include7.ch>
9 years ago
Stephen
6699b42518
Add paytxfee to getwalletinfo, warnings to getnetworkinfo
9 years ago
Allan Niemerg
49c2cecb9f
Pause mining during joinsplit creation
8 years ago
Simon
2f21206cfc
Closes #2112 where z_getoperationresult could return stale status.
7 years ago
Jack Grigg
f54db399f2
Get rid of fPlus argument to FormatMoney in Zcash-specific code
7 years ago
Jack Grigg
c24109ecc3
UniValue::getValues const reference
7 years ago
Jack Grigg
2cc6bab201
Update UniValue includes in Zcash-specific code
7 years ago
Wladimir J. van der Laan
e76a3849c6
Changes necessary now that zero values accepted in AmountFromValue
- Add an accept test for zero amounts, and a reject test for negative
amounts
- Remove ugly hack in `settxfee` that is no longer necessary
- Do explicit zero checks in wallet RPC functions
- Don't add a check for zero amounts in `createrawtransaction` - this
could be seen as a feature
9 years ago
Jonas Schnelli
a10a6e2a0e
[Univalue] add univalue over subtree
similar to secp256k1 include and compile univalue over a subtree
9 years ago
Jack Grigg
cc71666a51
unsigned int -> size_t for comparing with UniValue.size()
7 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
Jonas Schnelli
38fc4b7090
expicit set UniValue type to avoid empty values
9 years ago
Jonas Schnelli
9756b7bd29
extend conversion to UniValue
9 years ago
Jeff Garzik
ed21d5bd4b
Convert tree to using univalue. Eliminate all json_spirit uses.
10 years ago
Jack Grigg
b8eb37757b
Require -experimentalmode for wallet encryption
7 years ago
Simon
43b6753782
Update zrpc vs zrpcunsafe logging in z_sendmany operation
7 years ago
Simon
7eccce4e44
Closes #2045 by allowing z_sendmany with 0 fee
7 years ago
Jack Grigg
8e8b6d701b
Switch miner to P2PKH, add -mineraddress option
Closes #945 and #1955 .
8 years ago
Simon
ee84f279a9
Update z_sendmany logging
8 years ago
Simon
3110b793f0
Closes #2057 by adding extra zrpcunsafe logging
8 years ago
Jack Grigg
51fde9ea08
Use a more specific exception class for note decryption failure
Closes #1545 .
8 years ago
Jack Grigg
2cc0a252ad
Add compile flag to disable compilation of mining code
8 years ago
Jack Grigg
207924a1d5
Remove OpenSSL PRNG reseeding
Per https://download.libsodium.org/doc/generating_random_data/ reseeding the
default libsodium PRNG is not required.
8 years ago
Simon
bcbde86a87
Add missing header required by std::accumulate
8 years ago
Simon
8aa7937d44
Fixes #1960 : z_getoperationstatus/result now includes operation details.
8 years ago
Simon
f32cade8fd
Closes #1957 by adding tx serialization size to listtransactions output.
8 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
2d2f3d1806
Closes #1780 . Result of z_getoperationstatus now sorted by creation time of operation
8 years ago
Simon
4c1cd287be
Fixes a bug where the unsigned transaction was logged by z_sendmany
after a successful sign and send, meaning that the logged hash fragment
would be different from the txid logged by "AddToWallet". This issue
occured when sending from transparent addresses, as utxo inputs must be
signed. It did not occur when sending from shielded addresses.
8 years ago
Jack Grigg
7e3a20f235
Scan the whole chain whenever a z-key is imported
Closes #1941 .
8 years ago
Simon
01f6c5dbee
Fixes #1967 by adding age of note to z_sendmany logging.
8 years ago
Simon
fce7260811
Fixes #1964 to catch general exception in z_sendmany and catch
exceptions as reference-to-const.
8 years ago
Jack Grigg
6daab5b4fc
Only run wallet tests when wallet is enabled
8 years ago
Jack Grigg
4082dcb10f
Extend createjoinsplit to benchmark parallel JoinSplits
Closes #1940
8 years ago
Jack Grigg
c0ec0e756b
Fix bug in IncrementNoteWitness()
8 years ago
Jack Grigg
78f4e0ef37
Rewrite reindex test to check beyond the max witness cache size
8 years ago
Jack Grigg
0752d1f8c4
Extract block-generation wallet test code into a function
8 years ago
Jack Grigg
35ce717f96
Fix bug in wallet tests
8 years ago
Jack Grigg
6f78f4f44c
Only check cache validity for witnesses being incremented or decremented
Fixes the bug resulting from #1904 .
8 years ago
Jack Grigg
9d2cc3a784
Make the test pass by fixing the bug!
8 years ago
Jack Grigg
eeee6d5d6c
Add a reindex test that fails because of a bug in decrementing witness caches
Ref: https://github.com/zcash/zcash/pull/1904#issuecomment-265992988
8 years ago
Jack Grigg
6fb8d0c2d6
Skip JoinSplit verification before the last checkpoint
Part of #1749
8 years ago
Jack Grigg
88b7f3c28b
Generate JS for trydecryptnotes, make number of addresses a variable
8 years ago
Simon
84e8c5f921
WitnessAnchorData only needs to store one witness per JSOutPoint.
8 years ago
Jack Grigg
d85758f5cc
Document behaviour of CWallet::SetBestChain
8 years ago