Block handling, validation and transaction validation