I'm designing an iron planet which migrated into its habitable zone. Basic research told me iron planets cool off too quickly to have a magnetic field, so initially I was looking for ways native life could tolerate the resulting environment. However, I recently learned that Mercury, which I'm basing its core-mass ratio off of, actually has a weak magnetosphere, which is likely generated by an internal dynamo.
From this I have reasoned that, if Mercury had more mass and rotated much faster (i.e. the planet I'm trying to make), it might have a stronger magnetosphere that could last for the same amount of time. It would probably be weaker than Earth's, but still provide some protection to the atmosphere rather than none. However, I'm not sure how much more massive I can make a planet with this kind of interior structure before it's too rigid for convection currents to occur.
What is the maximum mass I can give my planet before an internal dynamo becomes impossible?