simpleledger / Electron-Cash-SLP

Electron Cash for SLP Tokens
https://simpleledger.cash/project/electron-cash-slp-edition/
MIT License
64 stars 53 forks source link

TypeError: 'NoneType' object is not callable #233

Closed luizzfe00 closed 2 years ago

luizzfe00 commented 2 years ago

I am using the Electron-Cash-SLP version in master and also tried on the latest release (3.6.6), I am trying to make a slp transaction through daemon cli, first I called payto_slp and got the hex as a response, then I used the hex I obtained and passed to the broadcast command, it actually goes through with the transaction but as a result I am left with a TypeError on cli and then nothing more works the way it should.

Here is the Traceback:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/Electron_Cash_SLP-3.6.6-py3.8.egg/electroncash/util.py", line 946, in run_with_except_hook
    run_original(*args2, **kwargs2)
  File "/usr/local/lib/python3.8/dist-packages/Electron_Cash_SLP-3.6.6-py3.8.egg/electroncash/network.py", line 1517, in run
    self.wait_on_sockets()
  File "/usr/local/lib/python3.8/dist-packages/Electron_Cash_SLP-3.6.6-py3.8.egg/electroncash/network.py", line 1490, in wait_on_sockets
    self.process_responses(interface)
  File "/usr/local/lib/python3.8/dist-packages/Electron_Cash_SLP-3.6.6-py3.8.egg/electroncash/network.py", line 906, in process_responses
    self.process_response(interface, request, response, callbacks)
  File "/usr/local/lib/python3.8/dist-packages/Electron_Cash_SLP-3.6.6-py3.8.egg/electroncash/network.py", line 853, in process_response
    callback(response)
  File "/usr/local/lib/python3.8/dist-packages/Electron_Cash_SLP-3.6.6-py3.8.egg/electroncash/synchronizer.py", line 203, in tx_response
    self.wallet.receive_tx_callback(tx_hash, tx, tx_height)
  File "/usr/local/lib/python3.8/dist-packages/Electron_Cash_SLP-3.6.6-py3.8.egg/electroncash/wallet.py", line 1949, in receive_tx_callback
    self.add_transaction(tx_hash, tx)
  File "/usr/local/lib/python3.8/dist-packages/Electron_Cash_SLP-3.6.6-py3.8.egg/electroncash/wallet.py", line 1727, in add_transaction
    self.handleSlpTransaction(tx_hash, tx)
  File "/usr/local/lib/python3.8/dist-packages/Electron_Cash_SLP-3.6.6-py3.8.egg/electroncash/wallet.py", line 1843, in handleSlpTransaction
    self.slp_check_validation(tx_hash, tx)
  File "/usr/local/lib/python3.8/dist-packages/Electron_Cash_SLP-3.6.6-py3.8.egg/electroncash/wallet.py", line 1866, in slp_check_validation
    if slp_gs_mgr.slpdb_validation_enabled:
  File "/usr/local/lib/python3.8/dist-packages/Electron_Cash_SLP-3.6.6-py3.8.egg/electroncash/slp_graph_search.py", line 199, in slpdb_validation_enabled
    print(self._gui_object())
TypeError: 'NoneType' object is not callable