The relay_fee is unused, so no need to ask the server about it.
Details
- Reviewers
Fabien - Group Reviewers
Restricted Project - Commits
- rABC35c39faff542: [electrum] remove server.relay_fee API call
Run the Application for a few minutes, connect to another fulcrum server, wait a few minutes, make sure basic features still work
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- electrum_remove_fulcrum_methods
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 29451 Build 58438: Build Diff electrum-tests Build 58437: arc lint + arc unit
Event Timeline
I can imagine a use case for the banner, which is checking you're connecting the expected server. Any strong reason to remove this, which seems harmless ?
No strong reason, just that it is not very much used at the moment, and it would be one less thing to implement in chronik. And if anyone can fake the url, it is even easier to fake the banner.
If you think it can be useful, I can remove it from that diff and make the data more accessible in a place that makes more sense (in the network menu for instance)
Really that's trivial to add to the electrum facade, even if it's just returning the version number or something like that. I would just keep it for now.
Tail of the build log:
-- Found BerkeleyDB component CXX: /usr/lib/x86_64-linux-gnu/libdb_cxx-5.3.so -- Found BerkeleyDB: /usr/include (found suitable version "5.3.28", minimum required is "5.3") found components: CXX -- Found SQLite3: /usr/include (found suitable version "3.34.1", minimum required is "3.7.17") -- Found ZeroMQ component zmq: /usr/lib/x86_64-linux-gnu/libzmq.so -- Found ZeroMQ: /usr/include (found suitable version "4.3.4", minimum required is "4.1.5") -- Could NOT find Protobuf (missing: Protobuf_DIR) -- Found Protobuf: /usr/lib/x86_64-linux-gnu/libprotobuf.so;-pthread (found version "3.12.4") -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.1w") -- Looking for EVP_MD_CTX_new -- Looking for EVP_MD_CTX_new - found -- Found QREncode component qrencode: /usr/lib/x86_64-linux-gnu/libqrencode.so -- Found QREncode: /usr/include -- Configuring native build in /work/abc-ci-builds/electrum-tests/native -- Configuring done -- Generating done -- Build files have been written to: /work/abc-ci-builds/electrum-tests [1/2] link test_runner.py [2/2] Run Electrum ABC unit tests... FAILED: electrum/CMakeFiles/check-electrum cd /work/abc-ci-builds/electrum-tests/electrum && /usr/bin/python3.9 ./test_runner.py [secp256k1] warning: libsecp256k1 library failed to load [secp256k1] warning: loading from /work/electrum/electrumabc/libsecp256k1.so.0 failed with: /work/electrum/electrumabc/libsecp256k1.so.0: cannot open shared object file: No such file or directory [secp256k1] warning: loading from libsecp256k1.so.0 failed with: libsecp256k1.so.0: cannot open shared object file: No such file or directory Testing `setup.py --version`: OK [ecc] info: libsecp256k1 library not available, falling back to python-ecdsa. This means signing operations will be slower. Try running: $ contrib/make_secp (You need to be running from the git sources for contrib/make_secp to be available) Traceback (most recent call last): File "/work/electrum/electrumabc_plugins/trezor/trezor.py", line 28, in <module> from trezorlib.messages import ( ImportError: cannot import name 'RecoveryDeviceType' from 'trezorlib.messages' (/usr/local/lib/python3.9/dist-packages/trezorlib/messages.py) ...........................................................................................................................................127.0.0.1 - - [02/Jul/2024 14:32:54] "GET /invoice HTTP/1.1" 503 - .127.0.0.1 - - [02/Jul/2024 14:32:54] "GET / HTTP/1.1" 200 - .127.0.0.1 - - [02/Jul/2024 14:32:54] "GET /invoice HTTP/1.1" 200 - 127.0.0.1 - - [02/Jul/2024 14:32:54] "POST /pay HTTP/1.1" 200 - .127.0.0.1 - - [02/Jul/2024 14:32:54] "GET / HTTP/1.1" 200 - ...s........................[trezor] Library version for 'trezor' is incompatible. Installed: 0.13.9, Needed: 0.13.8 <= x < 0.14 ...................................................................................................................s.........sss.............................s.s...[dummy name] Library version for 'dummy name' is incompatible. Installed: 0.13.9, Needed: 0.13.8 <= x < 0.14 E ====================================================================== ERROR: test_electrum_tx_to_txtype (electrumabc_plugins.trezor.tests.test_trezor.TestTrezorPlugin) ---------------------------------------------------------------------- Traceback (most recent call last): File "/work/electrum/electrumabc_plugins/trezor/tests/test_trezor.py", line 53, in test_electrum_tx_to_txtype self.assertEqual(plugin.electrum_tx_to_txtype(tx, xpub_path), expected_txtype) File "/work/electrum/electrumabc_plugins/trezor/trezor.py", line 597, in electrum_tx_to_txtype t = TransactionType() NameError: name 'TransactionType' is not defined ---------------------------------------------------------------------- Ran 330 tests in 23.445s FAILED (errors=1, skipped=7) ninja: build stopped: cannot make progress due to previous errors. Build electrum-tests failed with exit code 1