From 01d695283f98d2533355aeecc886e386d219f04e Mon Sep 17 00:00:00 2001 From: matejcik Date: Wed, 1 Jul 2020 10:16:51 +0200 Subject: [PATCH] core: make protobuf buffer bigger --- core/src/trezor/wire/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/trezor/wire/__init__.py b/core/src/trezor/wire/__init__.py index e6c2b85c2..3825ed30c 100644 --- a/core/src/trezor/wire/__init__.py +++ b/core/src/trezor/wire/__init__.py @@ -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,