mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 07:28:59 +01:00
validation: Add and use HaveTxsDownloaded where appropriate
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user