Backport of Ryo fix for a wallet caching bug #4247
Changed. Please note my previous message, you also need to either:
As this is more of high-level "where do you want to go?" decision I didn't include it. Let me know if you want to go 12bad0a route and I can back port that code too.
Problem is that
In our case we have different features enabled on different versions for the testnet and mainnet so this is how it triggered a secondary bug (we assigned bulletproofs to a disabled v255).