aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorCory Fields <[email protected]>2016-09-01 21:55:21 -0400
committerCory Fields <[email protected]>2016-09-07 12:46:01 -0400
commitd6a5dc4a2eaa0d7348804254ca09e75fc3a858ab (patch)
treedd60ab61035edb6e519f9f69b4d80d48de079ff2 /src/main.cpp
parentMerge #8594: Do not add random inbound peers to addrman. (diff)
downloaddiscoin-d6a5dc4a2eaa0d7348804254ca09e75fc3a858ab.tar.xz
discoin-d6a5dc4a2eaa0d7348804254ca09e75fc3a858ab.zip
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.
Diffstat (limited to 'src/main.cpp')
0 files changed, 0 insertions, 0 deletions