test/miner_tests: Pass in chain tip to CreateBlockIndex
test/miner_tests: Pass in chain tip to CreateBlockIndex

Summary:
This is a backport of [[https://github.com/bitcoin/bitcoin/pull/21866 | core#21866]] [3/12]
https://github.com/bitcoin/bitcoin/pull/21866/commits/4d99b61014ba26eb1f3713df5528d2804edff165

Depends on D11647

Test Plan: `ninja check`

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D11648

Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc