示例#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
示例#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
示例#3
0
文件: app.py 项目: 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