fix PING attack [CVE-2019-17048]

This commit is contained in:
ca333
2019-10-02 21:53:47 +02:00
parent 4a592eed26
commit 85aad4be5d
8 changed files with 113 additions and 35 deletions

View File

@@ -1899,6 +1899,10 @@ UniValue mempoolInfoToJSON()
ret.push_back(Pair("bytes", (int64_t) mempool.GetTotalTxSize()));
ret.push_back(Pair("usage", (int64_t) mempool.DynamicMemoryUsage()));
if (Params().NetworkIDString() == "regtest") {
ret.push_back(Pair("fullyNotified", mempool.IsFullyNotified()));
}
return ret;
}