Use txgraph to calculate ancestors

This commit is contained in:
Suhas Daftuar
2024-04-14 18:21:34 -04:00
committed by Suhas Daftuar
parent 241a3e666b
commit c8b6f70d64
4 changed files with 35 additions and 65 deletions

View File

@@ -474,7 +474,7 @@ static RPCHelpMan getmempoolancestors()
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Transaction not in mempool");
}
auto ancestors{mempool.CalculateMemPoolAncestors(*entry, /*fSearchForParents=*/false)};
auto ancestors{mempool.CalculateMemPoolAncestors(*entry)};
if (!fVerbose) {
UniValue o(UniValue::VARR);