Handling the risks in the blockchain