0
I am looking at the source code and I want to know how a person can reject all blocks except the ones mined by himself? I want to be still able to add transaction to my blocks but reject all other mined blocks except mine, where do I need to look in the source code?
2This definitely sounds like an XY problem. Can you explain what you think that would accomplish? – David Schwartz – 2016-01-17T00:42:09.637
1@DavidSchwartz: I suppose you'd want this if you were going to mount a 51% attack. – Nate Eldredge – 2016-01-17T03:22:22.267
1Hardcode a checkpoint to a block you mined. – Murch – 2016-01-17T03:43:38.030
It sounds like you do want to include transactions of others in your blockchain. Note that you will run into trouble with that as soon as the transaction has some ancestor that was a coin mined NOT on your chain. – Jannes – 2016-01-19T13:53:17.107