예제 #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
파일: app.py 프로젝트: mdyring/tendermint
 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