Page MenuHomePhabricator

Add DescriptorCache* read_cache and DescriptorCache* write_cache to Expand and GetPubKey
ClosedPublic

Authored by deadalnix on Nov 13 2020, 00:01.

Details

Summary

Have Expand, ExpandFromCache, and ExpandHelper take additional DescriptorCache
parameters. These are then passed into PubkeyProvider::GetPubKey which
also takes them as arguments.

Reading and writing to the cache is pushed down into GetPubKey. The old cache where
pubkeys are serialized to a vector is completely removed and instead xpubs are being
cached in DescriptorCache.

Backport of Core PR18204 part [4/7] : https://github.com/bitcoin/bitcoin/pull/18204/commits/58f54b686f663e4c46a2cf7a64560409007c7eb3

Depends on D8383

Test Plan
ninja all check

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Nov 13 2020, 04:46
majcosta requested changes to this revision.Nov 13 2020, 04:48

this is done out of order, rebase this on top of D8389

This revision now requires changes to proceed.Nov 13 2020, 04:48

sry, actually not blocking

This revision is now accepted and ready to land.Nov 13 2020, 04:49