Luke Dashjr
bf8a04a165
Reformat touched lines with C++11
8 years ago
Luke Dashjr
d77ad6d416
RPC: Do all wallet access through new GetWalletForJSONRPCRequest
8 years ago
Luke Dashjr
eca550f250
RPC/Wallet: Pass CWallet as pointer to helper functions
8 years ago
John Newbery
9949ebfa6a
[Trivial] Remove incorrect help message from gettxoutproof()
8 years ago
Matt Corallo
922bea90c2
Better handle invalid parameters to signrawtransaction
...
This silently skips trying to merge signatures from inputs which
do not exist from transactions provided to signrawtransaction,
instead of hitting an assert.
8 years ago
Pieter Wuille
db904db7e6
Deprecate non-txindex getrawtransaction and better warning
8 years ago
John Newbery
4e7e2e16e4
Update RPC argument names
8 years ago
Matt Corallo
edded808fc
Make ATMP optionally return the CTransactionRefs it replaced
8 years ago
Wladimir J. van der Laan
9adb4e1a59
rpc: Argument name consistency
...
The meaning is clear from the context, and we're inconsistent here.
Also save typing when using named arguments.
- `bitcoinaddress` -> `address`
- `bitcoinprivkey` -> `privkey`
- `bitcoinpubkey` -> `pubkey`
8 years ago
Wladimir J. van der Laan
8d713f761b
rpc: Named arguments for rawtransaction calls
8 years ago
isle2983
27765b6403
Increment MIT Licence copyright header year on files modified in 2016
...
Edited via:
$ contrib/devtools/copyright_header.py update .
8 years ago
Anditto Heristyo
afe5b3f553
Added missing colons in when running help command
8 years ago
Pieter Wuille
c44e4c467c
Make AcceptToMemoryPool take CTransactionRef
8 years ago
Gregory Sanders
bc7ff8db99
Add option to return non-segwit serialization via rpc
8 years ago
Pieter Wuille
f6fb7acda4
Move CTxInWitness inside CTxIn
8 years ago
Pieter Wuille
42fd8dee30
Make DecodeHexTx return a CMutableTransaction
8 years ago
Pieter Wuille
a1883536b4
Switch GetTransaction to returning a CTransactionRef
8 years ago
Matt Corallo
76faa3cdfe
Rename the remaining main.{h,cpp} to validation.{h,cpp}
8 years ago
jnewbery
ce2bb23aa5
getrawtransaction should take a bool for verbose
8 years ago
Pieter Wuille
1662b437b3
Make CBlock::vtx a vector of shared_ptr<CTransaction>
8 years ago
Jonas Schnelli
69d1c25768
[RPC] Give RPC commands more information about the RPC request
8 years ago
jnewbery
d51f182461
Don't return the address of a P2SH of a P2SH.
8 years ago
Jeremy Rubin
d1a2295f0d
Made the ForEachNode* functions in src/net.cpp more pragmatic and self documenting
8 years ago
Cory Fields
53347f0cb9
net: create generic functor accessors and move vNodes to CConnman
8 years ago
MarcoFalke
fa8b02d36d
[rpc] rawtx: Prepare fLimitFree to make it an option
8 years ago
Pavel Janík
de1bbe3b78
Do not shadow global RPC table variable (tableRPC)
8 years ago
NicolasDorier
745eb678ef
[RPC] signrawtransaction can sign P2WSH
9 years ago
Pieter Wuille
605e8473a7
BIP143: Signing logic
9 years ago
Pieter Wuille
2b1f6f9ccf
BIP141: Other consensus critical limits, and BIP145
...
Includes changes by Suhas Daftuar, Luke-jr, and mruddy.
9 years ago
Johnson Lau
7c4bf779e8
[RPC] Return witness data in blockchain RPCs
...
Includes RPC field name changes by Luke-jr.
9 years ago
Pieter Wuille
3dd410294d
BIP143: Verification logic
...
Includes simplifications by Eric Lombrozo.
9 years ago
Pieter Wuille
0ef1dd3e11
Refactor script validation to observe amounts
...
This is a preparation for BIP143 support.
9 years ago
Pieter Wuille
449f9b8deb
BIP141: Witness program
9 years ago
Pieter Wuille
7030d9eb47
BIP144: Serialization, hashes, relay (sender side)
...
Contains refactorings by Eric Lombrozo.
Contains fixup by Nicolas Dorier.
Contains cleanup of CInv::GetCommand by Alex Morcos
9 years ago
Jonas Schnelli
6fa950a573
[RPC] Fix createrawtx sequence number unsigned int parsing
9 years ago
MarcoFalke
fa7f4f577c
[rpc] fundrawtransaction feeRate: Use BTC/kB
...
Also introduce UniValueType
UniValueType is a wrapper for UniValue::VType which allows setting
a typeAny flag. This flag indicates the type does not matter.
(Used by RPCTypeCheckObj)
9 years ago
Jonas Nick
bd0f413877
Reduce unnecessary hashing in signrawtransaction
9 years ago
Gregory Maxwell
d87b198b73
Remove unneeded feerate param from RelayTransaction/AcceptToMemoryPool.
9 years ago
Jonas Schnelli
a946bb6b18
[RPC] createrawtransaction: add option to set the sequence number per input
9 years ago
Chris Moore
fc95f6ecb6
fix typo in help text
...
'in which the transaction is included in'
9 years ago
Wladimir J. van der Laan
fb8a8cf2e6
rpc: Register calls where they are defined
...
Split out methods to every module, apart from 'help' and 'stop' which
are implemented in rpcserver.cpp itself.
- This makes it easier to add or remove RPC commands - no longer everything that includes
rpcserver.h has to be rebuilt when there's a change there.
- Cleans up `rpc/server.h` by getting rid of the huge cluttered list of function definitions.
- Removes most of the bitcoin-specific code from rpcserver.cpp and .h.
Continues #7307 for the non-wallet.
9 years ago
instagibbs
7eb702954e
Add importprunedfunds rpc call
9 years ago
Alex Morcos
9e072a6e66
Implement "feefilter" P2P message.
...
The "feefilter" p2p message is used to inform other nodes of your mempool min fee which is the feerate that any new transaction must meet to be accepted to your mempool. This will allow them to filter invs to you according to this feerate.
9 years ago
MarcoFalke
fa79db2641
Move maxTxFee out of mempool
...
Also, remove default values in CMerkleTx::AcceptToMemoryPool()
9 years ago
Daniel Cousens
a0eaff8a1d
move rpc* to rpc/
9 years ago
MarcoFalke
faf671bca6
[wallet] Clarify rpc help message with regard to rounding
9 years ago
Wladimir J. van der Laan
6e76587360
rpc: remove cs_main lock from `createrawtransaction`
...
This is a pure utility function that doesn't use
main's data structures, so it does not require that lock.
9 years ago
Nick
996d3117c7
[RPC] Add transaction size to JSON output
...
This may be useful for blockchain explorers.
9 years ago
Peter Todd
b3ae384a8d
Remove LOCK(cs_main) from decodescript
...
Completely static RPC call that doesn't change or even look at mutable
state anywhere.
9 years ago
Jorge Timón
87cbdb8b41
Globals: Explicit Consensus::Params arg for main:
...
-CheckBlockIndex
-DisconnectTip
-GetTransaction
-InvalidateBlock
-ProcessGetData
-ReadBlockFromDisk
9 years ago