A Reliable Data-Transmission Mechanism Using Blockchain in Edge Computing Scenarios