Page MenuHomePhabricator

[validation/rpc] cache + use vsize calculated in PreChecks
ClosedPublic

Authored by PiRK on Oct 21 2022, 13:02.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC7597e8cfa37d: [validation/rpc] cache + use vsize calculated in PreChecks
Summary

This is not only cleaner but also helps make sure we are always using
the virtual size measure that includes the sigop weight heuristic (which
is the vsize the mempool would return).

This is a b)rtial ackport of core#23381
https://github.com/bitcoin/bitcoin/pull/23381/commits/36a8441912bf84b4da9c74826dcd42533d8abaaa

Test Plan

ninja all check-all

Event Timeline

PiRK requested review of this revision.Oct 21 2022, 13:02
Fabien requested changes to this revision.Oct 21 2022, 16:17
Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/validation.cpp
400

dito

src/validation.h
261

That's wrong

This revision now requires changes to proceed.Oct 21 2022, 16:17
This revision is now accepted and ready to land.Oct 24 2022, 07:56