Page MenuHomePhabricator

Remove SER_GETHASH, hard-code client version in CKeyPool serialize
ClosedPublic

Authored by PiRK on Dec 17 2025, 11:35.

Details

Summary

It was never set, so it can be removed along with any code reading it.

This concludes backport of core#28508
https://github.com/bitcoin/bitcoin/pull/28508/commits/fac29a0ab19fda457b55d7a0a37c5cd3d9680f82
Depends on D19144

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.Dec 17 2025, 11:35
src/wallet/scriptpubkeyman.h
129 ↗(On Diff #57168)

If this lands after the release commit I'll bump it to 320500 before landing. But I doubt that it matters. I don't understand why it isn't the highest PROTOCOL_VERSION rather than the highest CLIENT_VERSION, btw.

src/wallet/scriptpubkeyman.h
129 ↗(On Diff #57168)

I don't understand why it isn't the highest PROTOCOL_VERSION rather than the highest CLIENT_VERSION, btw.

nvm, db.h line 65, we use a CDataStream initialized with CLIENT_VERSION when we write the CKeyPool to the wallet db.

Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/wallet/scriptpubkeyman.h
129 ↗(On Diff #57168)

You can already rebase and bump the version

This revision is now accepted and ready to land.Dec 17 2025, 13:46