AppendTx -> DeliverTx

This commit is contained in:
Ethan Buchman
2017-01-12 15:27:08 -05:00
parent 2e414ebe6b
commit 80f377135b
28 changed files with 168 additions and 168 deletions

View File

@ -24,7 +24,7 @@ class CounterApplication():
self.serial = True
return 0
def append_tx(self, txBytes):
def deliver_tx(self, txBytes):
if self.serial:
txByteArray = bytearray(txBytes)
if len(txBytes) >= 2 and txBytes[:2] == "0x":

View File

@ -6,7 +6,7 @@ message_types = {
0x02: "flush",
0x03: "info",
0x04: "set_option",
0x21: "append_tx",
0x21: "deliver_tx",
0x22: "check_tx",
0x23: "commit",
0x24: "add_listener",
@ -32,7 +32,7 @@ class RequestDecoder():
def set_option(self):
return decode_string(self.reader), decode_string(self.reader)
def append_tx(self):
def deliver_tx(self):
return decode_string(self.reader)
def check_tx(self):