mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-29 14:11:21 +00:00
missing modulename and fix refactoring
This commit is contained in:
parent
8267f2ba4a
commit
3092d2c043
@ -1,8 +1,8 @@
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
from wire import hex2bytes, decode_big_endian, encode_big_endian
|
from tmsp.wire import hex2bytes, decode_big_endian, encode_big_endian
|
||||||
from server import TMSPServer
|
from tmsp.server import TMSPServer
|
||||||
from reader import BytesBuffer
|
from tmsp.reader import BytesBuffer
|
||||||
|
|
||||||
|
|
||||||
class CounterApplication():
|
class CounterApplication():
|
||||||
|
@ -111,6 +111,7 @@ class TMSPServer():
|
|||||||
# messages are length prefixed
|
# messages are length prefixed
|
||||||
conn.resBuf.write(encode(1))
|
conn.resBuf.write(encode(1))
|
||||||
conn.resBuf.write([resTypeByte])
|
conn.resBuf.write([resTypeByte])
|
||||||
|
conn.fd.send(str(conn.resBuf.buf))
|
||||||
conn.msgLength = 0
|
conn.msgLength = 0
|
||||||
conn.inProgress = False
|
conn.inProgress = False
|
||||||
conn.resBuf = BytesBuffer(bytearray())
|
conn.resBuf = BytesBuffer(bytearray())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user