So, when is the first halving?

Halving of mining rewards? The mining reward started at 15.0 at block 1 and gradually decreases by 0.000001 Bismuth for every block found.
The reward is currently 14.385832 Bismuth at block 614168. (15 - 614168 * 0.0000001)
Interesting, I never noticed that type of reward reduction in any other coins. Cool

But i think this depends or difficulty also, not sure what the right formula but its not like other coins.
How far we are from bringing staking or masternode?
The reward does not depend on the difficulty, the reward is set to decrease linearly from 15 at block 1 to 0 at block 10M. Or as @bizzzy said 0.0000015 every block.
About the masternode implementation the team is working on it, we can't say "when" for now.

It seems the node sometimes happens to report about some error in line 2436 though I'm not familliar with dat python thang to see the reason what's going on there
https://image.ibb.co/n7r4mx/image.jpg but that was v4.2.3.9 so I gotta upgrade stuff
UPD that issue has been fixed with the latest version of the node

So it's ok now? Hard to say what it was but I'm glad it's fixed- might have been some invalid mempool data, I've seen some recently incoming
I got this error when I'm running the latest version
node.py 2655
node.py 2457
For any issue with the node or wallet please come to our
Discord and ask in there, thanks!