def register(self): """Register block in the bitcoin blockchain """ # Calculate Merkle root root_hash = self.calculate_root_hash() # Create tx with root_hash as output self.header = BlockHeader("", root_hash) forge.send_root_hash(root_hash, self._registered)
def register(self): # register block in the bitcoin blockchain root_hash = self.calculate_root_hash() # create tx with root_hash as output self.header = BlockHeader("", root_hash) forge.send_root_hash(root_hash, self._registered)