Closed pbca26 closed 4 years ago
thanks @smk762 the issue is indeed due to wrong number of function params
I still have problems doing partial send using nano on https://github.com/pbca26/electrum-komodo/commit/85db0645217f0bf85ce8e957ec556e48e9941aaf and https://github.com/KomodoPlatform/electrum-komodo/commit/dac4b4fe92872917452c210e5d74ccc732330efa
max send works though on nano with https://github.com/KomodoPlatform/electrum-komodo/commit/dac4b4fe92872917452c210e5d74ccc732330efa
Can confirm that if not send max. to self it's failing with such trace (however if send whole balance to self it works fine, so maybe clue is in vouts amount) :
Exception: Exception : Invalid status 6d00
Traceback (most recent call last):
File "/home/tony/test-patch/electrum-komodo/plugins/ledger/ledger.py", line 433, in sign_transaction
outputData = self.get_client().finalizeInput(b'', 0, 0, changePath, bfh(rawTx))
File "/home/tony/test-patch/electrum-komodo/plugins/ledger/btchip_zcash.py", line 199, in finalizeInput
response = self.dongle.exchange(bytearray(apdu))
File "/home/tony/.local/lib/python3.7/site-packages/btchip/btchipComm.py", line 127, in exchange
raise BTChipException("Invalid status %04x" % sw, sw)
btchip.btchipException.BTChipException: Exception : Invalid status 6d00
Traceback (most recent call last):
File "/home/tony/test-patch/electrum-komodo/plugins/ledger/ledger.py", line 433, in sign_transaction
outputData = self.get_client().finalizeInput(b'', 0, 0, changePath, bfh(rawTx))
File "/home/tony/test-patch/electrum-komodo/plugins/ledger/btchip_zcash.py", line 199, in finalizeInput
response = self.dongle.exchange(bytearray(apdu))
File "/home/tony/.local/lib/python3.7/site-packages/btchip/btchipComm.py", line 127, in exchange
raise BTChipException("Invalid status %04x" % sw, sw)
btchip.btchipException.BTChipException: Exception : Invalid status 6d00
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/tony/test-patch/electrum-komodo/gui/qt/util.py", line 648, in run
result = task.task()
File "/home/tony/test-patch/electrum-komodo/lib/wallet.py", line 1452, in sign_transaction
k.sign_transaction(tx, password)
File "/home/tony/test-patch/electrum-komodo/plugins/ledger/ledger.py", line 252, in wrapper
return func(self, *args, **kwargs)
File "/home/tony/test-patch/electrum-komodo/plugins/ledger/ledger.py", line 501, in sign_transaction
self.give_error(e, True)
File "/home/tony/test-patch/electrum-komodo/plugins/ledger/ledger.py", line 245, in give_error
raise Exception(message)
Exception: Exception : Invalid status 6d00
Not sure if it helpful but if you try to send transaction when Ledger is in sleeping mode (and require pin input to wake up) it failing with same Exception: Exception : Invalid status 6d00
I got error -
Seems fourth function param (inSats) missing from calcInterest() function, but given in https://github.com/pbca26/electrum-komodo/blob/patch-1/lib/wallet.py#L699