Esempio n. 1
0
    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)
Esempio n. 2
0
    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)
Esempio n. 3
0
 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)
Esempio n. 4
0
 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)