Miner: include more code inside the blockchain lock
Miner: prevent mining a double spend.