Added counter test written in Golang

This commit is contained in:
Jae Kwon
2016-02-14 14:59:53 -08:00
parent 88fcacac7a
commit 90e38f08f4
14 changed files with 154 additions and 167 deletions

View File

@ -47,7 +47,7 @@ class CounterApplication():
return 6
return 0
def get_hash(self):
def commit(self):
self.hashCount += 1
if self.txCount == 0:
return "", 0

View File

@ -8,7 +8,7 @@ message_types = {
0x04: "set_option",
0x21: "append_tx",
0x22: "check_tx",
0x23: "get_hash",
0x23: "commit",
0x24: "add_listener",
0x25: "rm_listener",
}
@ -38,7 +38,7 @@ class RequestDecoder():
def check_tx(self):
return decode_string(self.reader)
def get_hash(self):
def commit(self):
return
def add_listener(self):