Hey guys, pardon me for my dumb questions as i am in the process of learning few things. I understand that when someone installs a wallet it becomes a node (at least for the coins i have tested with) and other wallet/node can talk to that and sync. So for an existing coin, if i have a wallet running with updated version and if it is the only wallet with updated protocol versions, how does it generate new blocks. Thanks!
Since you posted this in the "Development & Discussion" sub-forum, I assume you are asking about Bitcoin? If you are asking about some altcoins, you'll need to move this thread to the altcoin sub-forum. You can use the "Move Topic" link at the bottom of the thread to move it if you are the creator of the thread.
That being said, Bitcoin wallets don't generate blocks. Miners do.
If a Bitcoin wallet updates to a new version that is incompatible with the old version (a forking change), then the the wallet will refuse to accept any blocks created and relayed by any peers that are still running the old version. The wallet will have to wait until a miner updates to the same version and starts creating blocks with the new rules.
This is why forking changes typically include an "activation date", an "activation threshold", and an "activation signal". The "activation signal" allows miners to announce in their old-version blocks that they are ready to start creating new blocks. The "activation threshold" allows wallets and other miners to determine that there are enough miners that are ready to start creating new blocks. The "activation date" makes sure that everyone that is ready switches over to the rules of the new version at the same time so that nobody is left without any useful peers.