This is a possible fix for #10122
If the fee is capped on -maxtxfee, it will check if the fee is still above -mintxfee and -paytxfee for the given transaction. However, it seems this is a very edge case. In order to run into this, I had to pass -maxtxfee=0.01 -mintxfee=0.005 and then send a transaction that was about 89kB.
It seems that under the defaults no one would run into this; but maybe there’s more scenario’s under which this would be a problem.