mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-14 22:01:20 +00:00
Add RetCodeBadNonce and fix response formats
This commit is contained in:
@ -31,7 +31,7 @@ class CounterApplication():
|
||||
txValue = decode_big_endian(
|
||||
BytesBuffer(txByteArray), len(txBytes))
|
||||
if txValue != self.txCount:
|
||||
return None, 1
|
||||
return None, 6
|
||||
self.txCount += 1
|
||||
return None, 0
|
||||
|
||||
@ -43,7 +43,7 @@ class CounterApplication():
|
||||
txValue = decode_big_endian(
|
||||
BytesBuffer(txByteArray), len(txBytes))
|
||||
if txValue < self.txCount:
|
||||
return 1
|
||||
return 6
|
||||
return 0
|
||||
|
||||
def get_hash(self):
|
||||
|
Reference in New Issue
Block a user