-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firo light wallet (electrum) support #2426
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wow, does this add an electrum server for simnet? That's great! Can we also do that for the other electrum capable wallets? Not in this pr ofc.
There is an empty file recycled-addrs.txt
if something is creating that maybe add to .gitignore
?
ElectrumX servers
Yes, I think the
I already did for Dash on my local machine and have my own fork of the server. But please look at the discussion of electrum Wallets below Electrum walletsI did the whole electrum piece because Firo does not yet have SPV wallet support (P2P) as it is lower on the priority list than Lelantus Spark and other multi year ZKP improvements. So an electrum 'SPV' wallet that would not require chain download would increase UX a lot! I would expect this to be the main (non OTC) wallet perhaps Then I looked at all the other electrum-altcoin implementations.
|
This is a function of another recent PR for recycling unused redemption and refund addresses and seems to create a directory where code is run and a file with recycled-addrs.txt. This happens when I run simnet tests in client/asset/... but I am not sure where else it would pop up (as testnet/mainnet/regtest) so not sure the extent of Including that particular one in my check-in is my bad and I will remove it ;-)
|
Thanks for your review and your interest. |
Slightly unrelated, but testing litecoin's electrum client on testnet is an pain in the butt because the servers are all over the place on different states of the chain. Would be much better testing on simnet, so this pr is exciting for me. Will test this out soon. |
For Firo I have another test that tests basic ElectrumX command API. It tests one (real) mainnet server and one (real) testnet server plus simnet server on demand (set environment var) In the same place:
|
Newer README's / scripts |
LTC already had electrum(x) regtest stuff I think. What new? |
Yes. I copied it and just modify for Firo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working well for me!
Great to hear! |
Added a compile check in run_tests.sh
|
b028ec1
to
7a8fd9e
Compare
dex/testing/firo/stop-daemon
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are GUI and daemon the only options. No standard terminal mode?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not quite sure what you mean by standard terminal mode. But I think the answer to your question is - only these two modes yes.
For startup the script is electrum-firo
and --daemon
takes it down the non-gui code path. But you can also run the script with something like:
./electrum-firo -v --offline --testnet listunspent
which will access the testnet wallet, ask password, then output all the listunspent
utxos; then exit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm asking if we make electrum block and log to the terminal. I don't want it to run as a daemon.
I cannot find any of the |
7a8fd9e
to
12b975e
Compare
For your ref: Updated everything requested except the development zombie killer. Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on simnet and testnet. Working great. Almost ready.
dex/testing/firo/README_HARNESS.md
Outdated
```bash | ||
$ killall -9 firod # kill running daemons | ||
$ tmux kill-session -t firo-harness # kill firo-harness session | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No pid file needed. There are a number of ways to figure out the pid of a zombie instance. People reading this document are expected to have some level of technical knowledge. We don't need to babysit here.
dex/testing/firo/stop-daemon
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm asking if we make electrum block and log to the terminal. I don't want it to run as a daemon.
$ ./run dcrfiroelectrum --runonce --all | ||
``` | ||
|
||
Best results by nuking everything after each run. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our various scripts should be nuking everything during setup, no?
I have updated the livetest code & updated the docs. For your questions:
When the harnesses start Yes It is not a must but can be a source of error.
CLI ./electrum-firo daemon -v --testnet This is what you want. It is electrum daemon/rpc mode but does not fork the child process like the true daemon below. Use True Daemon ./electrum-firo daemon --detach --testnet |
Default startup is CLI but starting with STARTUP="GUI" installs pyqt5 & starts the wallet Gui. Starting with STARTUP="DAEMON" forks the process.
Firo light wallet (electrum) support
original pr