diff --git a/src/Makefile.test_util.include b/src/Makefile.test_util.include index b6441a1e3e15..91a9ca2788dc 100644 --- a/src/Makefile.test_util.include +++ b/src/Makefile.test_util.include @@ -43,6 +43,7 @@ libtest_util_a_SOURCES = \ test/util/masternode.cpp \ test/util/mining.cpp \ test/util/net.cpp \ + test/util/random.cpp \ test/util/script.cpp \ test/util/setup_common.cpp \ test/util/str.cpp \ diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 630320a4c446..b5d4fa1e4d1e 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -488,7 +488,8 @@ static RPCHelpMan getblockfrompeer() "We must have the header for this block, e.g. using submitheader.\n" "Subsequent calls for the same block may cause the response from the previous peer to be ignored.\n" "Peers generally ignore requests for a stale block that they never fully verified, or one that is more than a month old.\n" - "When a peer does not respond with a block, we will disconnect.\n\n" + "When a peer does not respond with a block, we will disconnect.\n" + "Note: The block could be re-pruned as soon as it is received.\n\n" "Returns an empty JSON object if the request was successfully scheduled.", { {"blockhash", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The block hash to try to fetch"}, diff --git a/src/test/denialofservice_tests.cpp b/src/test/denialofservice_tests.cpp index 4806bb2ec801..9286528571f1 100644 --- a/src/test/denialofservice_tests.cpp +++ b/src/test/denialofservice_tests.cpp @@ -13,6 +13,7 @@ #include