It was making unnecessary computations when no feerate was provided, and was not accounting for VarInt's. Instead of adding more magic values just build a transaction template and use that.
It was making unnecessary computations when no feerate was provided, and was not accounting for VarInt's. Instead of adding more magic values just build a transaction template and use that.