I am using a private network. I mined transactions and got enough balance. I started applying my contracts. Until I stayed in the network, the contract was fine and I was able to send transactions to the contract.
I logged off and started the geth console again. My Contract disappeared and I started deploying again. Annoyingly I have started mining again to get my block mined.
Where does the test network get so many blocks to mine? Also, what is the quick way to deploy the contract in a private network and get instantaneous results.