Пример #1
0
 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
Пример #2
0
 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