Page MenuHomePhabricator

cuckoocache: Return approximate memory size
ClosedPublic

Authored by PiRK on Mar 19 2024, 12:32.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC7b417a053e6f: cuckoocache: Return approximate memory size
Summary

Returning the approximate total size eliminates the need for
InitS*Cache() to do nElems*sizeof(uint256). The cuckoocache has a better
idea of this information.

This is a partial backport of core#25527
https://github.com/bitcoin/bitcoin/pull/25527/commits/08dbc6ef72db48168dc03991f5f838dae42c8dfd

Depends on D15734

Test Plan

ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Mar 19 2024, 12:32

split the error log for InitSignatureCache and InitScriptExecutionCache (in Bitcoin ABC they are deifferent args)

This revision is now accepted and ready to land.Mar 19 2024, 13:15