Sort:  

Some guy told me that the code allows mining more than 21 million coins if consensus is achieved to vote a new code.

That’s true. Nakamoto consensus means 92% of all interested agrees. Therefore, there has to be a very, very good reason for such decision. Like it was for the implementation of Lightning Network which solved the speed problem.

BTW, the code is open, so you can see it for yourself, without ‘some guys’ who could tell you the truth, but also lies.