test: remove legacy wallet leftovers from wallet functional tests

bitcoin/bitcoin: PR #36867

Review completed with no actionable findings.

Coverage details

Background

Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.

Documented decisions

The zero-keypool setting was already meaningful to the historical test's scope: PR #12947 justified reducing its workload by stating, “With keypool=0 I see no reason to do 300 addresses and sends.” This documents a relationship between keypool size and how many post-backup addresses the test needed, but does not identify the original reason for choosing zero.

The pinned test backs up the wallet before generating and funding ten further HD addresses. This historical explanation supports interpreting the small keypool as part of the backup/derivation test setup, rather than treating it solely as an arbitrary performance setting. It does not establish a dedicated empty-lookahead regression.

Source 1

PR #12947 explicitly added a check to clarify that startup could already discover funds by rescanning blocks newer than the oldest key's birthdate.

The pinned test retains the corresponding balance assertion after restoring the backup and synchronizing, before its explicit rescanblockchain calls. Historically, the test distinguished automatic recovery from subsequent RPC rescanning; the inspected source does not attribute that distinction specifically to an empty keypool.

Source 1

Ralph's inferences

A limited backed-up keypool is consistent with testing HD recovery beyond keys already prepared in the backup. However, evidence that the pool needed to be small is not evidence that it specifically needed to be empty.

Both pinned versions generate multiple addresses after the backup, restore it, check deterministic re-derivation, and check fund recovery. Those operations explain why lookahead size matters to the scenario, but neither the surviving assertions nor the inspected historical discussion establishes that zero-versus-one was an intended regression boundary. Present configuration equivalence therefore cannot, by itself, answer the question about intentional historical supersession.

Source 1