Skip to content

Automated bug report: non-hexadecimal number found in fromhex() arg at position 7 #56

Description

@TBO-git

Description

non-hexadecimal number found in fromhex

I assume issue is related to specific transactions the wallet cannot process. Have tried to recreate the wallet based on the wallet seed and same issue comes eventually up after some time off transaction synchronizing. Also have tried un-install and re-install. Might be difficult to reproduce though if related to a specific transaction. So far was not able to pin point the address-transaction that is causing the issue.

Stack

  File "/usr/local/lib/python3.7/dist-packages/electrum_smart/util.py", line 779, in run_with_except_hook
    run_original(*args2, **kwargs2)
  File "/usr/local/lib/python3.7/dist-packages/electrum_smart/network.py", line 988, in run
    self.wait_on_sockets()
  File "/usr/local/lib/python3.7/dist-packages/electrum_smart/network.py", line 970, in wait_on_sockets
    self.process_responses(interface)
  File "/usr/local/lib/python3.7/dist-packages/electrum_smart/network.py", line 625, in process_responses
    self.process_response(interface, response, callbacks)
  File "/usr/local/lib/python3.7/dist-packages/electrum_smart/network.py", line 574, in process_response
    callback(response)
  File "/usr/local/lib/python3.7/dist-packages/electrum_smart/synchronizer.py", line 153, in tx_response
    self.wallet.receive_tx_callback(tx_hash, tx, tx_height)
  File "/usr/local/lib/python3.7/dist-packages/electrum_smart/wallet.py", line 1021, in receive_tx_callback
    self.add_transaction(tx_hash, tx)
  File "/usr/local/lib/python3.7/dist-packages/electrum_smart/wallet.py", line 905, in add_transaction
    conflicting_txns = self.get_conflicting_transactions(tx)
  File "/usr/local/lib/python3.7/dist-packages/electrum_smart/wallet.py", line 868, in get_conflicting_transactions
    txid = tx.txid()
  File "/usr/local/lib/python3.7/dist-packages/electrum_smart/transaction.py", line 952, in txid
    ser = self.serialize(witness=False)
  File "/usr/local/lib/python3.7/dist-packages/electrum_smart/transaction.py", line 935, in serialize
    txouts = var_int(len(outputs)) + ''.join(self.serialize_output(o) for o in outputs)
  File "/usr/local/lib/python3.7/dist-packages/electrum_smart/transaction.py", line 935, in <genexpr>
    txouts = var_int(len(outputs)) + ''.join(self.serialize_output(o) for o in outputs)
  File "/usr/local/lib/python3.7/dist-packages/electrum_smart/transaction.py", line 897, in serialize_output
    script = self.pay_script(output_type, addr, lockTime)
  File "/usr/local/lib/python3.7/dist-packages/electrum_smart/transaction.py", line 714, in pay_script
    return bitcoin.address_to_script(addr, lockTime)
  File "/usr/local/lib/python3.7/dist-packages/electrum_smart/bitcoin.py", line 372, in address_to_script
    script = push_script(int_to_hex(lockTime))
  File "/usr/local/lib/python3.7/dist-packages/electrum_smart/bitcoin.py", line 155, in int_to_hex
    return rev_hex(s)
  File "/usr/local/lib/python3.7/dist-packages/electrum_smart/bitcoin.py", line 144, in rev_hex
    return bh2u(bfh(s)[::-1])

Environment

  • file: /usr/local/lib/python3.7/dist-packages/electrum_smart/bitcoin.py
  • name: rev_hex
  • type: ValueError

Additional information

  • app_version: 5.0.2
  • os: Linux-5.10.63-v7l+-armv7l-with-debian-10.11
  • wallet_type: standard
  • locale: en_GB

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions