1
0

hw keepkey: workaround protobuf weirdness

this adds a hackish workaround for https://github.com/spesmilo/electrum/issues/7779
This commit is contained in:
SomberNight
2022-05-04 20:41:49 +02:00
parent dbc695ba4a
commit d5f987c9e9

View File

@@ -162,6 +162,9 @@ class KeepKeyClientBase(HardwareClientBase, GuiMixin, Logger):
self.transport.write(self.proto.Cancel())
def i4b(self, x):
if x < 0:
# hack. workaround for https://github.com/spesmilo/electrum/issues/7779
x += 2 ** 32
return pack('>I', x)
@runs_in_hwd_thread