diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-12-03 18:14:08 -0500 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-12-04 10:51:56 -0500 |
commit | fa4fc8856b239059421a8e507b3e3e7f4b379a72 (patch) | |
tree | 72b43baae4aafdcb9714f76ecb822a9b0fe63723 /src/rpc | |
parent | ed12fd83ca7999a896350197533de5e9202bc2fe (diff) |
validation: Add and use HaveTxsDownloaded where appropriate
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/blockchain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 403e3e397c..1d62027baf 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -1458,7 +1458,7 @@ static UniValue getchaintips(const JSONRPCRequest& request) } else if (block->nStatus & BLOCK_FAILED_MASK) { // This block or one of its ancestors is invalid. status = "invalid"; - } else if (block->nChainTx == 0) { + } else if (!block->HaveTxsDownloaded()) { // This block cannot be connected because full block data for it or one of its parents is missing. status = "headers-only"; } else if (block->IsValid(BLOCK_VALID_SCRIPTS)) { |