This changes the code.
PoS has several outstanding problems, see for example section 4.2 “Costless Simulation” of https://download.wpsoftware.net/bitcoin/pos.pdf . Simply signing the blocks with a predetermined set of keys has similar tradeoffs, but an often disregarded advantage: A limited set of (let’s say 2) block signers consumes 99.5% less energy than a larger set of (let’s say 400) participants in PoS.
Luckily, in Bitcoin Core this consensus mechanism is already implemented and the code changes required are trivial. Nonetheless, review is appreciated.