1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-19 04:48:12 +00:00

core: make protobuf buffer bigger

This commit is contained in:
matejcik 2020-07-01 10:16:51 +02:00 committed by Tomas Susanka
parent 0c3bc53aee
commit 01d695283f

View File

@ -133,12 +133,14 @@ class DummyContext:
DUMMY_CONTEXT = DummyContext()
PROTOBUF_BUFFER_SIZE = 16384
class Context:
def __init__(self, iface: WireInterface, sid: int) -> None:
self.iface = iface
self.sid = sid
self.buffer_io = utils.BufferIO(bytearray(8192))
self.buffer_io = utils.BufferIO(bytearray(PROTOBUF_BUFFER_SIZE))
async def call(
self,