Skip to content

Commit

Permalink
clean up time...
Browse files Browse the repository at this point in the history
  • Loading branch information
davebryson committed Jul 3, 2021
1 parent 415e8b2 commit 146c8d5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions example/counter.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""
Simple counting app. It only accepts values sent to it in correct order. The
state maintains the current count. For example if starting at state 0, sending:
-> 0x01 = ok
-> 0x03 = fail (expects 2)
state maintains the current count. For example, if starting at state 0, sending:
-> 0x01 = OK!
-> 0x03 = Will fail! (expects 2)
To run it:
- make a clean new directory for tendermint
Expand All @@ -14,7 +14,8 @@
curl http://localhost:26657/broadcast_tx_commit?tx=0x01
curl http://localhost:26657/broadcast_tx_commit?tx=0x02
...
to see the latest count:
To see the latest count:
curl http://localhost:26657/abci_query
The way the app state is structured, you can also see the current state value
Expand Down

0 comments on commit 146c8d5

Please sign in to comment.