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
6d0ab3ee59
Show all JoinSplit components in getrawtransaction and decoderawtransaction
Closes #2030
8 years ago
Simon
f7cfb52d3c
Add vjoinsplit to JSON output of RPC call gettransaction
8 years ago
Simon
805344dcf4
Refactor: replace calls to GetTxid() with GetHash()
8 years ago
Sean Bowe
50aba0ec19
Remove TODO 808.
8 years ago
Simon
10d2c57c0d
Replace calls to GetHash() with GetTxid() for transaction objects.
Where the caller intends to receive a transaction id and not a double
SHA256 hash.
8 years ago
Sean Bowe
22de160219
Fixes for indentation and local variable names.
8 years ago
Sean Bowe
b7e4abd6f7
Rename some usage of 'pour'.
8 years ago
Sean Bowe
bfeaf0049a
Rename JSDescription's `serials` to `nullifiers`.
8 years ago
Sean Bowe
8675d94b63
Rename vpour to vjoinsplit.
8 years ago
Sean Bowe
a8c68ffe99
Rename CPourTx to JSDescription.
8 years ago
Sean Bowe
2dc3599271
Transplant of libzcash.
8 years ago
Sean Bowe
2140639309
Remove scriptPubKey/scriptSig from CPourTx, and add randomSeed.
8 years ago
Sean Bowe
63ea9b75bb
Add decoding support for vpour in the `decoderawtransaction` RPC.
9 years ago
jtimon
da29ecbcc6
Consensus: MOVEONLY: Move CValidationState from main consensus/validation
10 years ago
dexX7
8ac2a4e178
RPC: show script verification errors in "signrawtransaction" result
If there are any script verification errors, when using "signrawtransaction", they are shown in the RPC result:
```
// ...
Result:
{
"hex" : "value", (string) The hex-encoded raw transaction with signature(s)
"complete" : true|false, (boolean) If the transaction has a complete set of signatures
"errors" : [ (json array of objects) Script verification errors (if there are any)
{
"txid" : "hash", (string) The hash of the referenced, previous transaction
"vout" : n, (numeric) The index of the output to spent and used as input
"scriptSig" : "hex", (string) The hex-encoded signature script
"sequence" : n, (numeric) Script sequence number
"error" : "text" (string) Verification or signing error related to the input
}
,...
]
}
```
9 years ago
Pieter Wuille
de8e801d3f
Report missing inputs in sendrawtransaction
10 years ago
Matt Corallo
59ed61b389
Add RPC call to generate and verify merkle blocks
10 years ago
charlescharles
0b2f93091f
Fix docs for 'complete' field in 'signrawtransaction' response
10 years ago
Jonas Schnelli
0b9dc9c8f5
[move] move listunspent to wallet/rpcwallet.cpp
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.
10 years ago
Pieter Wuille
9fddceda44
Avoid storing a reference passed to SignatureChecker constructors
10 years ago
Pieter Wuille
858809a33e
Use separate SignatureChecker for CMutableTransaction
10 years ago
Eric Lombrozo
4401b2d7c5
Removed main.h dependency from rpcserver.cpp
Rebased by @laanwj :
- update for RPC methods added since 84d13ee: setmocktime,
invalidateblock, reconsiderblock. Only the first, setmocktime, required a change,
the other two are thread safe.
10 years ago
Wladimir J. van der Laan
4f1524966a
Replace direct use of 0 with SetNull and IsNull
Replace x=0 with .SetNull(),
x==0 with IsNull(), x!=0 with !IsNull().
Replace uses of uint256(0) with uint256().
10 years ago
Cory Fields
856e862f4a
namespace: drop most boost namespaces and a few header cleanups
A few boost::asio were left around because they're very wordy otherwise.
10 years ago
Cory Fields
a3241998e1
namespace: remove boost namespace pollution
10 years ago
Luke Dashjr
7b782f5b01
RPCWallet: Notate all account stuff as deprecated
10 years ago
sandakersmann
f914f1a746
Added "Core" to copyright headers
Github-Pull: #5494
Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
10 years ago
Philip Kaufmann
27df4123c4
make all catch() arguments const
- I saw this on http://en.cppreference.com/w/cpp/language/try_catch and
thought it would be a good idea
- also unify used format to better be able to search for exception
uses in our codebase
10 years ago
Pavel Janík
aa768f1848
signrawtransaction: validate private key.
10 years ago
Luke Dashjr
d227011184
MOVEONLY: core/ -> primitives/
10 years ago
Michael Ford
72fb3d295a
Update comments in src/rpc* to be doxygen compatible
10 years ago
jtimon
4a3587d8db
MOVEONLY: Separate CTransaction and dependencies from core
10 years ago
Cory Fields
066e2a1403
script: move CScriptID to standard.h and add a ctor for creating them from CScripts
This allows for a reversal of the current behavior.
This:
CScript foo;
CScriptID bar(foo.GetID());
Becomes:
CScript foo;
CScriptID bar(foo);
This way, CScript is no longer dependent on CScriptID or Hash();
10 years ago
Cozz Lovan
3e61eb9c51
minor txindex documentation improvement
10 years ago
Pieter Wuille
e790c370b5
Replace SCRIPT_VERIFY_NOCACHE by flag directly to checker
10 years ago
Mark Friedenbach
a372168e77
Use a typedef for monetary values
10 years ago
Pieter Wuille
7c70438dc6
Get rid of the dummy CCoinsViewCache constructor arg
10 years ago
Pieter Wuille
f28aec014e
Use ModifyCoins instead of mutable GetCoins.
Replace the mutable non-copying GetCoins method with a ModifyCoins, which
returns an encapsulated iterator, so we can keep track of concurrent
modifications (as iterators can be invalidated by those) and run cleanup
code after a modification is finished.
This also removes the overloading of the 'GetCoins' name.
10 years ago
Pieter Wuille
0be990ba34
Move CTxDestination from script/script to script/standard
10 years ago
ENikS
ec91092df8
Fixing compiler warning C4101
Github-Pull: #4856
10 years ago
Philip Kaufmann
611116d4e3
header include cleanup
- ensures alphabetical ordering for includes etc. in source file headers
10 years ago