Exemplo n.º 1
0
 def get_hash(self):
     self.hashCount += 1
     if self.txCount == 0:
         return "", 0
     h = encode_big_endian(self.txCount, 8)
     h.reverse()
     return h.decode(), 0
Exemplo n.º 2
0
 def commit(self):
     self.hashCount += 1
     if self.txCount == 0:
         return "", 0
     h = encode_big_endian(self.txCount, 8)
     h.reverse()
     return h.decode(), 0
Exemplo n.º 3
0
Arquivo: app.py Projeto: charwliu/tmsp
 def commit(self):
     self.hashCount += 1
     if self.txCount == 0:
         return "", 0
     h = encode_big_endian(self.txCount, 8)
     h.reverse()
     return str(h), 0