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

storage.py:531 UserWarning: run_hook "get_action" being called from outside the main thread #204

Open damascene opened 3 years ago

damascene commented 3 years ago

When I run the daemon , create and load a wallet I get the following error:

$ ./electron-cash daemon load_wallet
/home/user/script/src/Electron-Cash-SLP/electroncash/storage.py:531: UserWarning: run_hook "get_action" being called from outside the main thread (thr: Thread-3) may lead to undefined behavior. Please use util.do_in_main_thread to call run_hook if the hook in question does not return any results.
  action = run_hook('get_action', self)
DEBUG-DAG: a2847fe3a2... cached judgement: Valid
DEBUG-DAG: target transactions finished
DEBUG-DAG: 2d395430aa... cached judgement: Valid
DEBUG-DAG: target transactions finished
true

the wallet seems to be loaded: $ ./electron-cash daemon status

{
    "auto_connect": true,
    "blockchain_height": 686957,
    "connected": true,
    "fee_per_kb": 1000,
    "path": "/home/user/.electron-cash-slp",
    "server": "bch2.electroncash.dk",
    "server_height": 686957,
    "spv_nodes": 10,
    "version": "3.6.6",
    "wallets": {
        "/home/user/.electron-cash-slp/wallets/default_wallet": true
    }
}
damascene commented 3 years ago

seems to be an issue in main stream