Closes #30284. Closes #30367, see #30367 (comment)
Previously, we were only comparing feerates up to 1/1000 precision, since CFeeRate comparison just looks at their respective nSatoshisPerK. This could lead to MiniMiner selecting packages in the wrong order (i.e. by txid) if their feerates were less than 0.001sat/vB different. Fix this by creating + comparing FeeFrac
s instead.
Also, FeeFrac::Mul
doesn’t have the overflow problem.
Also added a few minor fuzzer fixups that caught my eye while I was debugging this.