Wladimir J. van der Laan
1c80386bce
rpc: Generate auth cookie in hex instead of base64
...
Base64 contains '/', and the '/' character in credentials is problematic
for AuthServiceProxy which represents the RPC endpoint as an URI with
user and password embedded.
Closes #8399 .
8 years ago
MarcoFalke
fa05cfdf25
[rpc] throw JSONRPCError when utxo set can not be read
8 years ago
Pavel Janík
4731cab8fb
Do not shadow variables
8 years ago
MarcoFalke
ddddaafa4a
[rpc] Deprecate getinfo
...
This was replaced by getmininginfo, getnetworkinfo and getwalletinfo
8 years ago
Johnson Lau
86c3f8db0b
Remove createwitnessaddress
...
This RPC command is unsafe as it will return an address even if the script is invalid.
8 years ago
Jeremy Rubin
d1a2295f0d
Made the ForEachNode* functions in src/net.cpp more pragmatic and self documenting
8 years ago
Cory Fields
bd72937dc4
net: move nLocalServices/nRelevantServices to CConnman
...
These are in-turn passed to CNode at connection time. This allows us to offer
different services to different peers (or test the effects of doing so).
8 years ago
Cory Fields
63cafa6329
net: move send/recv statistics to CConnman
8 years ago
Cory Fields
53347f0cb9
net: create generic functor accessors and move vNodes to CConnman
8 years ago
Cory Fields
c0569c7fa1
net: Add most functions needed for vNodes to CConnman
8 years ago
Cory Fields
8ae2dac1c6
net: move added node functions to CConnman
8 years ago
Cory Fields
a0f3d3cdad
net: move ban and addrman functions into CConnman
8 years ago
Cory Fields
b1a5f43208
net: move OpenNetworkConnection into CConnman
8 years ago
Cory Fields
8d58c4d81f
net: Pass CConnman around as needed
8 years ago
Cory Fields
d7349ca50d
net: Add rpc error for missing/disabled p2p functionality
8 years ago
Cory Fields
d6a5dc4a2e
add waitfornewblock/waitforblock/waitforblockheight rpcs and use them for tests
...
waitfornewblock waits until a new block is received, or the timeout expires, then
returns the current block height/hash.
waitforblock waits for a specific blockhash, or until the timeout expires, then
returns the current block height/hash. If the target blockhash is the current
tip, it will return immediately.
waitforblockheight waits until the tip has reached a certain height or higher,
then returns the current height and hash.
waitforblockheight is used to avoid polling in the rpc tests.
8 years ago
Jorge Timón
cdd79eb70f
C++11: s/boost::scoped_ptr/std::unique_ptr/
8 years ago
Pieter Wuille
854f1af22e
Make the dummy argument to getaddednodeinfo optional
8 years ago
Pieter Wuille
5127c4f21c
Add preciousblock RPC
...
Includes a bugfix by Luke-Jr.
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
MarcoFalke
fa27c0a2c4
[doc] Fix typos in comments, doxygen: Fix comment syntax
8 years ago
leijurv
1aacfc2da5
various typos
8 years ago
Sev
6ffd996b8e
Corrected JSON typo on setban of net.cpp
8 years ago
whythat
c784086075
use std::map::emplace() instead of std::map::insert()
8 years ago
whythat
5e187e7001
use c++11 std::unique_ptr instead of boost::shared_ptr
8 years ago
Luke Dashjr
160f895a80
Bugfix: Use pre-BIP141 sigops until segwit activates
8 years ago
Jameson Lopp
65f4532f13
document return value of networkhashps for getmininginfo RPC endpoint
8 years ago
Cory Fields
b6c3ff3dae
net: Split resolving out of CSubNet
9 years ago
Cory Fields
31d6b1d5f0
net: Split resolving out of CNetAddr
9 years ago
NicolasDorier
122786d0e0
Consensus: Remove ISM
9 years ago
Suhas Daftuar
2c06bae39e
Rename "block cost" to "block weight"
9 years ago
Jonas Schnelli
b1c7b244e2
[Wallet] report optional HDKeypath/HDMasterKeyId in validateaddress
9 years ago
Pavel Janík
2129fcea69
The bit field is shown only when status is "started"
9 years ago
jl2012
409f83322e
RPC: Hide softfork if timeout is 0
9 years ago
Daniel Cousens
27f8126ff3
remove unnecessary LOCK(cs_main)
9 years ago
NicolasDorier
745eb678ef
[RPC] signrawtransaction can sign P2WSH
9 years ago
Pieter Wuille
f4691ab3a9
[RPC] Add wallet support for witness transactions (using P2SH)
...
Includes support for pushkeyhash wit v0 by Alex Morcos.
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
8b49040854
BIP141: Commitment structure and deployment
...
Includes a fix by Suhas Daftuar and LongShao007
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
Daniel Kraft
9fce0629b4
[c++11] Use std::unique_ptr for block creation.
...
CreateNewBlock returns a pointer for which the caller takes ownership.
Use std::unique_ptr to make this explicit and simplify handling of these
objects in getblocktemplate.
9 years ago
Pieter Wuille
1111b80df8
Rework addnode behaviour
...
* Use CNode::addeName to track whether a connection to a name is already open
* A new connection to a previously-connected by-name addednode is only opened when
the previous one closes (even if the name starts resolving to something else)
* At most one connection is opened per addednode (even if the name resolves to multiple)
* Unify the code between ThreadOpenAddedNodeConnections and getaddednodeinfo
* Information about open connections is always returned, and the dns argument becomes a dummy
* An IP address and inbound/outbound is only reported for the (at most 1) open connection
9 years ago
Suhas Daftuar
7f6eda8043
Add ancestor statistics to mempool entry RPC output
9 years ago
Suhas Daftuar
b09b8135ae
Add getmempoolentry RPC call
9 years ago