Bugfix: Pass correct virtual size to CheckPackageLimits

This commit is contained in:
Luke Dashjr
2023-08-26 00:09:16 +00:00
committed by Greg Sanders
parent 533660c58a
commit bc013fe8e3
3 changed files with 8 additions and 5 deletions

View File

@@ -606,9 +606,11 @@ public:
* @param[in] package Transaction package being evaluated for acceptance
* to mempool. The transactions need not be direct
* ancestors/descendants of each other.
* @param[in] total_vsize Sum of virtual sizes for all transactions in package.
* @param[out] errString Populated with error reason if a limit is hit.
*/
bool CheckPackageLimits(const Package& package,
int64_t total_vsize,
std::string &errString) const EXCLUSIVE_LOCKS_REQUIRED(cs);
/** Populate setDescendants with all in-mempool descendants of hash.