Browse Source

hw keepkey: workaround protobuf weirdness

this adds a hackish workaround for https://github.com/spesmilo/electrum/issues/7779
patch-4
SomberNight 3 years ago
parent
commit
d5f987c9e9
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 3
      electrum/plugins/keepkey/clientbase.py

3
electrum/plugins/keepkey/clientbase.py

@ -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

Loading…
Cancel
Save