Bitcoin Forum

Bitcoin => Electrum => Topic started by: hugeblack on January 27, 2020, 05:51:43 PM



Title: Electrum Lightning Demo
Post by: hugeblack on January 27, 2020, 05:51:43 PM
https://www.youtube.com/watch?v=dg1fyd5_foA&feature=youtu.be (https://www.youtube.com/watch?v=dg1fyd5_foA&feature=youtu.be)
I was browsing Youtube and this video appeared to me, it seems easy to open channels, send/receive payments and buy online.
The costs are very low and the payments are very fast.

For beginners: there is no official version, verify that you are downloading from https://github.com/spesmilo/electrum and that you verify the signature.


Title: Re: Electrum Lightning Demo
Post by: AB de Royse777 on January 27, 2020, 06:09:39 PM
Haven't played with toys for long time and seems like I have one now lol.
On my phone but when I get back to home, I will give it a go however I had plan to test it once they launch it in their official website but my interest is in the peak now.

Thanks for sharing and I will update in this thread soon.


Title: Re: Electrum Lightning Demo
Post by: DireWolfM14 on January 27, 2020, 06:19:19 PM
Nice, a new toy to play with.  I think I'll set it up in my Ubuntu virtual box and play around with it this weekend.  It looks like there's a way to run it on Windows, but you have to use cUrl and install docker, and blah blah blah.  I don't want docker on my Win system, and if I'm going through all that shizzle I might as well just do it in Ubuntu.

I can't wait to see the new release with lightning built in.


Title: Re: Electrum Lightning Demo
Post by: BitMaxz on January 27, 2020, 11:57:26 PM
The video shows the alpha version it is still not the official one so the video shows the development test for Electrum lightning.

~snip~
~snip~

Where did you found the installation guide for Electrum 4.0 alpha version?
Does it seem I can't find it even in Github? Can you put the direct link here so that I can test this alpha version?


It seems that they deleted it someone shares the link from Reddit this must be the lightning open-sourced link https://github.com/spesmilo/electrum/tree/lightning but the link is not working anymore and it will show the 404 page(It means it was removed).


Title: Re: Electrum Lightning Demo
Post by: DireWolfM14 on January 28, 2020, 12:19:53 AM
The video shows the alpha version it is still not the official one so the video shows the development test for Electrum lightning.

~snip~
~snip~

Where did you found the installation guide for Electrum 4.0 alpha version?
Does it seem I can't find it even in Github? Can you put the direct link here so that I can test this alpha version?

The instructions for the development version are near the bottom of the page linked by Royse777.

https://github.com/spesmilo/electrum#development-version



Title: Re: Electrum Lightning Demo
Post by: AB de Royse777 on January 28, 2020, 12:14:13 PM
Okay now I have time to play with the toy.

For beginners: there is no official version, verify that you are downloading from https://github.com/spesmilo/electrum and that you verify the signature.
I just downloaded the files from github. Can you tell me where do I get the PGP key to verify it in here? Also which file I install, it seems a lot of files (in the folder electrum-master) which my windows do not recognize (I have no idea about python).

I gotta tell that this is the first time I am trying something from github.

Where did you found the installation guide for Electrum 4.0 alpha version?
As you can see, haven't install yet so I have no clue yet.

Edit:
Found some instructions in here: contrib/build-wine/README.md.
But it seems they have used some alien language LOL
Can anyone speak English to me about it :-D


Title: Re: Electrum Lightning Demo
Post by: mocacinno on January 28, 2020, 12:20:51 PM
@Royse777: you cloned the git repo, not the binaries... There are no signatures for these source files.
If you want to proceed, you'll have to create the binary for yourself. I don't see any documentation as to how to compile the binary in a windows environment, but maybe you can run linux as a virtual machine on your desktop in order to compile the sourcecode (there's a complete how-to on building windows binaries from linux here: https://github.com/spesmilo/electrum/tree/master/contrib/build-wine)?

An other option is that you ask somebody you really, really, really, really trust to build the binary for you... But even then, i'd probably only run it on the testnet inside a jail (or on a computer that's not being used for anything else, contains no other user data, and will be scratched afterwards)


Title: Re: Electrum Lightning Demo
Post by: AB de Royse777 on January 28, 2020, 12:31:30 PM
Thanks mocacinno.

(there's a complete how-to on building windows binaries from linux here: https://github.com/spesmilo/electrum/tree/master/contrib/build-wine)?
This is what I was talking about to in my last post with the edit. I guess you missed it, not your fault.

Edit:
Found some instructions in here: contrib/build-wine/README.md.
But it seems they have used some alien language LOL
Can anyone speak English to me about it :-D

Quote
An other option is that you ask somebody you really, really, really, really trust to build the binary for you...
I really do not have this option which means I will need to do some studies about it. Will update you lot once I have a question.



Title: Re: Electrum Lightning Demo
Post by: mocacinno on January 28, 2020, 01:03:14 PM
@Royse777, if you're a beginner, and you want to save yourself a headache messing with docker, cross compiling,... It might be better to install the latest ubuntu on a clean virtual machine (like virtualbox).

Then follow https://github.com/spesmilo/electrum


Basically
sudo apt-get install python3-pyqt5 python3-pip python3-setuptools protobuf-compiler
git clone git://github.com/spesmilo/electrum.git
cd electrum
git submodule update --init
python3 -m pip install .[fast]
protoc --proto_path=electrum --python_out=electrum electrum/paymentrequest.proto
./run_electrum

https://i.imgur.com/pIAFWea.png


Title: Re: Electrum Lightning Demo
Post by: BitMaxz on January 28, 2020, 11:55:24 PM
~snip~

Tried these command in Linux lite but the sad part I'm stuck on upgrading the python to 3.6.2 the reason why I want to upgrade the python it's because the python version installed is 3.5.2 but the required python is 3.6.1.

https://i.imgur.com/5cimB20.png

I'll update this soon and maybe I can find a way to install the Python 3.6.1 on the Linux lite version.

Commands that I use recently.
Code:
sudo apt-get install python3-pyqt5 python3-pip python3-setuptools protobuf-compiler
sudo apt install git
git clone git://github.com/spesmilo/electrum.git
cd electrum
git submodule update --init
python3 -m pip install .[fast]

I just added the sudo apt install git because I can't make a git clone now it works fine but stuck on python-pip install.


Title: Re: Electrum Lightning Demo
Post by: ABCbits on January 29, 2020, 07:52:16 AM
I'll update this soon and maybe I can find a way to install the Python 3.6.1 on the Linux lite version.

This part isn't too hard, all you need to do is compile Python 3.6 from source then install it. Check this guide https://realpython.com/installing-python/#compiling-python-from-source (https://realpython.com/installing-python/#compiling-python-from-source)

You also could add 3rd-party repository which serve newer version of Python, but i don't know how to do it on your linux distro.


Title: Re: Electrum Lightning Demo
Post by: BitMaxz on January 29, 2020, 06:47:13 PM
This part isn't too hard, all you need to do is compile Python 3.6 from source then install it. Check this guide https://realpython.com/installing-python/#compiling-python-from-source (https://realpython.com/installing-python/#compiling-python-from-source)

You also could add 3rd-party repository which serve newer version of Python, but i don't know how to do it on your linux distro.

Yeah, I'm following the same guide from here http://devopspy.com/python/install-python-3-6-ubuntu-lts/ with method 2.
but I'm stuck again with "$ sudo make -j8" and it seems the error is "full disk" I think I will need to increase the VirtualBox space. I thought that it won't download too many resources and packages but after I use the command above it eat so much space on Virtualbox space. Anyway, I'll update this again soon. Too bad I have slow internet connection.

Do you have any idea for another way to compile it for windows instead? I don't have much space on my laptop after I applied the last step installing python.


Title: Re: Electrum Lightning Demo
Post by: dkbit98 on January 29, 2020, 06:56:21 PM
My suggestion is to install some ligth version of Windows OS in VirtualBox if you have problem with installing Linux wallet.
I had problem with install one app on Ubuntu and I had to switch back to Windows.
I hope Electrum will work, and we can soon see full version, but I do expect lot of bugs.


Title: Re: Electrum Lightning Demo
Post by: BitMaxz on January 29, 2020, 10:27:45 PM
My suggestion is to install some ligth version of Windows OS in VirtualBox if you have problem with installing Linux wallet.
I had problem with install one app on Ubuntu and I had to switch back to Windows.
I hope Electrum will work, and we can soon see full version, but I do expect lot of bugs.

My laptop is windows so I don't need to install it in VirtualBox the reason why I use VirtualBox it's because you can only compile the Electrum Alpha version with Linux according to this https://github.com/spesmilo/electrum

Unless you know how to compile it on windows OS? It will help us if you can share it here.


Title: Re: Electrum Lightning Demo
Post by: HCP on January 30, 2020, 09:12:29 AM
Just FYI, today I installed a fresh copy of Ubuntu (18.04.3) into Oracle VirtualBox... then basically followed the instructions on the Electrum Github under Development Version (https://github.com/spesmilo/electrum#development-version) step by step...

I literally copy/pasted the commands into the Ubuntu terminal window, with the only modification being that I used sudo -H python3 -m pip install .[fast] as when I originally tried it with just "python3 -m pip install .[fast]", it spat out a "permission denied" at the end.

NOTE: I also had to install git, python3-pip and curl (and possibly one or two other things that I've forgotten)... as I think I chose the "minimal" Ubuntu install.

Anyway, after I had Electrum cloned and "installed"... I then followed the instructions on the contrib/build-wine/README.md (http://contrib/build-wine/README.md) page... again, copy/pasting the commands as shown to install docker, build the image and then build the Windows binaries.

et voilà...
https://talkimg.com/images/2023/11/15/zLreD.png


Now I just have to work out how to get it to build the 4.0.0a branch... which doesn't seem to exist any more :-\

But oddly, when I run Electrum within the VirtualBox, it runs 4.0.0a??!? ???
https://talkimg.com/images/2023/11/15/zLLGf.png


Title: Re: Electrum Lightning Demo
Post by: mocacinno on January 30, 2020, 09:26:29 AM
Now I just have to work out how to get it to checkout the 4.0.0a branch... which doesn't seem to exist any more :-\

Code:
git checkout master
cat electrum/version.py

https://i.imgur.com/4Fhd5AL.png


Title: Re: Electrum Lightning Demo
Post by: HCP on January 30, 2020, 09:35:03 AM
yeah... wrong wording on my behalf, I didn't mean checkout... I meant build... if I look in my "fresh clone" directory... cat electrum/version.py shows version 4.0.0.a0, but for some reason, when running the build.sh, it is only building 3.3.8 version??!? ???

EDIT: disregard, it's just naming the output file incorrectly... it is in fact building the 4.0.0a0 version:
https://talkimg.com/images/2023/11/15/zLjLG.png

I transferred the "3.3.8" portable .exe file out of the Ubuntu VirtualBox and ran it on the Windows 10 host ;)


Title: Re: Electrum Lightning Demo
Post by: BitMaxz on January 30, 2020, 06:06:27 PM
After resize the space from VirtualBox, AFAIK you need to configure the partition to use all free space.

P.S. compile from source will use 100% CPU and it took some time (about 30 minutes on old PC with 2 core)

default.

Yeah, done on resizing the virtual box using command prompt after that it shows something unallocated space and tried to restart the virtual box and the laptop(I thought the unallocated space will merge automatically) but after that my laptop shows bluescreen of death.

Something issue on both tcpip.sys and ntoskrnl.exe they randomly showing every time I restart.
Anyway, my laptop fixed just now using the "chkdsk /f /r". I'm not going to test it again with my laptop.

I think it's better to rent a Linux VPS/RDP to install and test the Electrum alpha version rather than using my slow laptop.

I transferred the "3.3.8" portable .exe file out of the Ubuntu VirtualBox and ran it on the Windows 10 host ;)

Can I have a copy of the portable one for Windows? I would love to test it on windows 7. Please Pm me the link thanks.



I got the portable one from HCP and it's working fine to me.

https://i.imgur.com/3YQIhpv.png


Title: Re: Electrum Lightning Demo
Post by: Artemis3 on February 06, 2020, 07:48:34 PM
This part isn't too hard, all you need to do is compile Python 3.6 from source then install it. Check this guide https://realpython.com/installing-python/#compiling-python-from-source (https://realpython.com/installing-python/#compiling-python-from-source)

You also could add 3rd-party repository which serve newer version of Python, but i don't know how to do it on your linux distro.

Yeah, I'm following the same guide from here http://devopspy.com/python/install-python-3-6-ubuntu-lts/ with method 2.
but I'm stuck again with "$ sudo make -j8" and it seems the error is "full disk" I think I will need to increase the VirtualBox space. I thought that it won't download too many resources and packages but after I use the command above it eat so much space on Virtualbox space. Anyway, I'll update this again soon. Too bad I have slow internet connection.

Do you have any idea for another way to compile it for windows instead? I don't have much space on my laptop after I applied the last step installing python.

Since this is a virtualbox install, the solution is simpler than you think. Rather than "Linux Lite", you should install Lubuntu 19.10, which happens to come with Python 3.7.5

Why Lubuntu? Linux Lite IS Lubuntu with extra packages pre-installed. Contrary to what the name suggests, it isn't light. So you save space and time using Lubuntu rather than Lite.

In the earlier Ubuntus you can probably upgrade python also by adding a PPA, but this might be trickier than just wiping your image since its a virtual machine anyway. If you use the 32bit version, you can probably use 1g ram virtual machine just fine, maybe less if its just playing with Electrum.

Oh and that -j8 is the number of threads for the compiler, it depends on what cpu you have and if you want to use all of them (i don't think thats a good idea a vm, i never assign all my threads to a vm). So if you launched a VM with 2 threads (because your cpu has 4 cores), you shouldn't be using -j8 (it would just try use the 2 threads 4times). If in doubt omit the -j option its not needed.


Title: Re: Electrum Lightning Demo
Post by: DireWolfM14 on February 06, 2020, 10:22:12 PM
yeah... wrong wording on my behalf, I didn't mean checkout... I meant build... if I look in my "fresh clone" directory... cat electrum/version.py shows version 4.0.0.a0, but for some reason, when running the build.sh, it is only building 3.3.8 version??!? ???

EDIT: disregard, it's just naming the output file incorrectly... it is in fact building the 4.0.0a0 version:
https://i.imgur.com/jOKbs7v.png

I transferred the "3.3.8" portable .exe file out of the Ubuntu VirtualBox and ran it on the Windows 10 host ;)

I'm getting the same issue with names, but I have not been able to confirm if I'm actually building 4.0.0a0.  Trying to run the portable version on my Win10 machine I get an error saying the file cannot be found.  I tried running it right from the desktop, so I don't know how that's possible.  Do I need to install some python run environment something or other in Windows?


Title: Re: Electrum Lightning Demo
Post by: HCP on February 10, 2020, 08:19:50 AM
I'm getting the same issue with names,
Just FYI, the file name "bug" is caused because the build-wine system uses:
Code:
VERSION=`git describe --tags --dirty --always`
to fetch the version number... and the git "tags" are currently returning 3.3.8 :P


Quote
...but I have not been able to confirm if I'm actually building 4.0.0a0.  Trying to run the portable version on my Win10 machine I get an error saying the file cannot be found. 
If you're building from the MASTER branch, it will be building 4.0.0a0... you can have a quick look in /electrum/version.py file and see what it says there...
https://talkimg.com/images/2023/11/15/zLuE9.png

Which file cannot be found? ???


Quote
I tried running it right from the desktop, so I don't know how that's possible.  Do I need to install some python run environment something or other in Windows?
So you tried to compile the .exe? or you were running from a clone of the github repository using Python? ???


Title: Re: Electrum Lightning Demo
Post by: DireWolfM14 on March 22, 2020, 02:15:32 AM
Well after playing with this off and on for a few weeks now, I still can't get it to work.  Anyone else having trouble sending payments?  I have two testnet wallets set up, both have open channels, both are sync'd.  But I always get the same error.  Is there a setting I'm missing?

https://i.ibb.co/NKVkp0n/Untitled.jpg


Title: Re: Electrum Lightning Demo
Post by: nc50lc on March 23, 2020, 03:16:54 AM
That error is quite generic, it's hard to tell is issue.
It will also pop-up when you tried to send lightning payments if there's no opened channel,
'opening' or 'disconnected' channel status, poor connection, etc.

When you click on the lightning logo (beside the seed/connection icon), you'll see something like this:
https://i.imgur.com/FJs58kg.png
How many channels and nodes do you see?
In the "Channels" tab, what does it say under "status" of the channel?


Title: Re: Electrum Lightning Demo
Post by: DireWolfM14 on March 23, 2020, 04:40:23 AM
That error is quite generic, it's hard to tell is issue.
It will also pop-up when you tried to send lightning payments if there's no opened channel,
'opening' or 'disconnected' channel status, poor connection, etc.

When you click on the lightning logo (beside the seed/connection icon), you'll see something like this:
https://i.imgur.com/FJs58kg.png
How many channels and nodes do you see?
In the "Channels" tab, what does it say under "status" of the channel?

Interesting, I see you have a fourth line in your pop-up window, I don't see that line in mine.  The line that's missing is the "requesting xxxx channels."

https://i.ibb.co/WvNYHwX/Untitled.jpg

Both of my wallets show the status of my channels as "OPEN."  The "node alias" column is blank, the "local" shows how much I have in the channel, 0.1 BTC, and the "remote" column is 0.


Title: Re: Electrum Lightning Demo
Post by: nc50lc on March 23, 2020, 06:02:44 AM
Interesting, I see you have a fourth line in your pop-up window, I don't see that line in mine.  The line that's missing is the "requesting xxxx channels."
It's showing at random, keep the window open and you'll definitely see it.

Both of my wallets show the status of my channels as "OPEN."  The "node alias" column is blank, the "local" shows how much I have in the channel, 0.1 BTC, and the "remote" column is 0.
How about the 'channel capacity' (the amount you can send and receive)?
You can't receive anything unless you've already sent some satoshis.

-Edit-

Never mind the second part,
I've just tested to send to my other wallet (same PC) with enough inbound capacity, and it also failed to send with the same error.
I never had any problem with sending and receiving lightning funds (testnet) to others, though.


Title: Re: Electrum Lightning Demo
Post by: DireWolfM14 on March 23, 2020, 12:39:13 PM
I've just tested to send to my other wallet (same PC) with enough inbound capacity, and it also failed to send with the same error.
I never had any problem with sending and receiving lightning funds (testnet) to others, though.

I had an intuition that running both wallets on the same PC might have had something to do with it, but I dismissed that notion.  I'll try running one wallet on the VM and see if that works.  If not, I'll use a laptop.  I'll report what I find.


Title: Re: Electrum Lightning Demo
Post by: BitMaxz on March 23, 2020, 03:41:29 PM
I had an intuition that running both wallets on the same PC might have had something to do with it, but I dismissed that notion.  I'll try running one wallet on the VM and see if that works.  If not, I'll use a laptop.  I'll report what I find.

I have the same issue I've been testing things on lightning to send the testnet coin but I'm still failed until I stop testing so many things to make the lightning sending works. I was planning to test it before with BTCpayserver but since the issue still occurs I gave up.

I'm following this tweet https://twitter.com/lukechilds/status/1195739189075005440x
And waiting for him to respond to how he made the lightning payment worked.

Try to contact him through twitter and maybe this time he might answer you.


Title: Re: Electrum Lightning Demo
Post by: blue Snow on March 23, 2020, 11:57:40 PM
can someone share electrum 4.0 file with me ?, I want to try it #stayathome


Title: Re: Electrum Lightning Demo
Post by: nc50lc on March 24, 2020, 02:30:56 AM
can someone share electrum 4.0 file with me ?, I want to try it #stayathome
AFAIK, HCP (Profile link (https://bitcointalk.org/index.php?action=profile;u=867786)) have a pre-compiled Electrum 4.0.0a0. Do not search 4.0 in google because you'll only find fakes there.
Me, I'm running it from source.

I had an intuition that running both wallets on the same PC might have had something to do with it, but I dismissed that notion.  I'll try running one wallet on the VM and see if that works.  If not, I'll use a laptop.  I'll report what I find.
I have the same issue I've been testing things on lightning to send the testnet coin but I'm still failed until I stop testing so many things to make the lightning sending works. I was planning to test it before with BTCpayserver but since the issue still occurs I gave up.
@DireWolfM14 | I'm also thinking that  it's an issue with multiple instances of Electrum as the error pops-up on both instance, not just the sender.

@BitMaxz        | Try testnet and buy virtual coffee from here: https://starblocks.acinq.co/ (https://starblocks.acinq.co/), works everytime at my end.


Title: Re: Electrum Lightning Demo
Post by: DireWolfM14 on March 24, 2020, 06:27:49 PM
Status report:
I've had a chance to set up one of the wallets on my Ubuntu VM (still on the same physical PC.)  Both wallets are capable of sending payments to starblocks.acinq.co, but still have trouble sending payments to each other.  I wasn't using VPN when I created the first requests, so I tried again.  For the second test I turned VPN on the primary OS and on the VM, and confirmed both had different IPs.  I didn't expect this to solve the issue, but I figured it was worth the experiment.

https://i.ibb.co/bLGL9tH/wallet0.png (https://i.ibb.co/bLGL9tH/wallet0.png)

https://i.ibb.co/HDXCjgb/wallet1.png (https://i.ibb.co/HDXCjgb/wallet1.png)

I'm wondering if this is an issue with Electrum itself, and not the fact that I'm using the wallets on the same computer.  Would one of you be so kind as to help me test this theory?  Here's a testnet request for 100 satoshis, please only only use Electrum to fill this request.

Code:
lntb10u1p085ne6pp5rx5s46gw2ygwv3vzm8cxnnpjgrafem67xuvgpkhepu5uaq6uqgkqdzq2fjhzat9wd6zqen0wgsxsetvwqsxvun0d5syy6t5vdhkjmn5v9kxkgrdv4kkyetjcqzynxqyz5vqrzjq027z73uyyl7fy8pkrpcn7x0el82pz3fw974p2052de4uz4j5lqqxxtly5qqqmqqqqqqqqlgqqqqqqgq9qqpl4tgpvlc6eylpqj0z7h29kl0ss3x3xepruz0j2j4kkl4hekms49m3ha7hsw74elle76mpaqs0uum3gs4zvy3rf9kf0e5urgdljcssq84pfnl


One other test I will do when I have time is to close the channels, and open another while connected to VPN.  I'm not sure if my IP as anything to do with it, or if I'm barking up the wrong tree.


Title: Re: Electrum Lightning Demo
Post by: DireWolfM14 on March 24, 2020, 06:46:47 PM
@blue Snow and anyone else who's bored stuck at home and wants to play with this, I uploaded the portable executable version to my google drive, the link is below.  I signed the portable with my PGP key, and uploaded the sig file.  Links to both the key and the sig file are also linked below.

I built the binaries on March 21st, so it may not the most recent version available, but it's close.


If you use it, please keep in mind that this is a pre-beta release.  I take no responsibility for it's misuse, and any loss of funds you may experience as a result of it's use.  

Use it at your own risk.

By downloading and using this file, you are acknowledging and accepting these terms.


To use it with testnet, you'll need to create a shortcut, and add this code to end of the "target" field in the shortcut's properties.  A space is needed before the code, so make sure it's there.
Code:
 --testnet

The whole field should look something like this:
Code:
C:\path\to\file\location\electrum-3.3.8-1821-g1448bfe93-portable.exe --testnet


The links:

My PGP Key: https://bitcointalk.org/index.php?topic=1159946.msg54029233#msg54029233
Signature file: https://drive.google.com/file/d/1OgCm-Hyu2YF1bBRbAtvP82XqeKXMrT8J/view?usp=sharing
Electrum portable executable: https://drive.google.com/file/d/1Tua1pnLztCZsIcQJBFtdmYmLsGY2qhZQ/view?usp=sharing



Title: Re: Electrum Lightning Demo
Post by: BitMaxz on March 24, 2020, 11:58:15 PM
@BitMaxz        | Try testnet and buy virtual coffee from here: https://starblocks.acinq.co/ (https://starblocks.acinq.co/), works everytime at my end.

Still doesn't work look at the image below.

https://i.imgur.com/NdLh4Sc.png

I got different error as you can see above this is not the same error as before.



Title: Re: Electrum Lightning Demo
Post by: nc50lc on March 25, 2020, 03:16:29 AM
I got different error as you can see above this is not the same error as before.
I received that error before when I was using the not-so-latest build, the latest build should show the "no path found" or a specific message.
Are you sure that your channel(s)' status are all Open?
I've just tested again, and it worked:
https://i.imgur.com/R1PqUQr.pnghttps://i.imgur.com/dHYtNgt.png


Title: Re: Electrum Lightning Demo
Post by: BitMaxz on March 25, 2020, 03:37:09 AM
~snip~

The channel status is open but the result still the same.
https://i.imgur.com/G47Z0sq.png https://i.imgur.com/cGgrKdu.png

Did you set something from settings? Maybe I miss some settings that's why it doesn't work.

I got the copy from HCP the latest build and I'm currently using windows 7.


Title: Re: Electrum Lightning Demo
Post by: nc50lc on March 25, 2020, 04:06:35 AM
Did you set something from settings? Maybe I miss some settings that's why it doesn't work.

I got the copy from HCP the latest build and I'm currently using windows 7.
Try to open a channel with (node id): 0269a94e8b32c005e4336bfb743c08a6e9beb13d940d57c479d95c8e687ccbdb9f
I have noticed that Electrum has been using my channel that's connected to that node to purchase virtual coffees instead of the other ones.
That's a random node id result that I got when searching for channels using "suggest" button.

As for the settings, I set all lightning-related to default/blank.
I'm using the 2020 March 18 Build (today's latest available build).

I'm wondering if this is an issue with Electrum itself, and not the fact that I'm using the wallets on the same computer.  Would one of you be so kind as to help me test this theory?  Here's a testnet request for 100 satoshis, please only only use Electrum to fill this request.
-snip-
At least keep your Electrum online while you're away so others/I can try to fill that invoice.
I've done some test too, I successfully received some satoshi from my Eclair Wallet. [Eclair->Electrum]

@all Try mine instead (use only Electrum):
-Edit-
After 10 hours of waiting, no one have used my invoice, I'm going to close Electrum for now.
BRB after 10-12 hours.


Title: Re: Electrum Lightning Demo
Post by: BitMaxz on March 25, 2020, 11:39:37 PM
As for the settings, I set all lightning-related to default/blank.
I'm using the 2020 March 18 Build (today's latest available build).
It seems I'm a little bit late can I get this new build this might be the issue that is why it doesn't work?
PM the link or the link posted above by DireWolfM14 is the one you use?

And I need a new copy because the last build(February build) is accidentally deleted with my Kaspersky antivirus(I don't know why but the January build detected as fine.).

And let me ask if what will happen if I close my open channel? What will happen to my test coins?


Title: Re: Electrum Lightning Demo
Post by: DireWolfM14 on March 26, 2020, 01:50:27 AM
Okay, I'll try again, here's a request for 100 sats set to expire in 24 hours.  I'll keep the client running all night.

Code:
lntb1u1p08czfwpp5m9fcpqjv2a2yf64tndgueca2nkvtsclhn4k5ymvnqrtthdju6yxsdpug35hye2hdakxvnf3xss8getnw3hx2apqd35kw6r5de5kueeqwfjhzat9wd6qcqzynxqyz5vqrzjq027z73uyyl7fy8pkrpcn7x0el82pz3fw974p2052de4uz4j5lqqxxtly5qqqmqqqqqqqqlgqqqqqqgq9qzvlye5ys9f8engvsr3ftt3qu7fzjheehxpcdcz90j7zcuyy0kr94gjje3ctaj448rp0n9rnua6cyca0pdfeyqz93v63j23f2j85rc0gqe64exa

-Edit-
After 10 hours of waiting, no one have used my invoice, I'm going to close Electrum for now.
BRB after 10-12 hours.

Post up another.  If I don't get to it tonight, I'll be working from home tomorrow so I'll get to it in the morning.


Title: Re: Electrum Lightning Demo
Post by: nc50lc on March 26, 2020, 03:14:49 AM
As for the settings, I set all lightning-related to default/blank.
I'm using the 2020 March 18 Build (today's latest available build).
It seems I'm a little bit late can I get this new build this might be the issue that is why it doesn't work?
PM the link or the link posted above by DireWolfM14 is the one you use?

-snip-

And let me ask if what will happen if I close my open channel? What will happen to my test coins?
I'm running it from source so, it's the same link of the 'zip' file you get from GitHub.

If you close your channel, the funds will be back to your mainchain balance;
if you force-close it, the funds will be back after a day.
(may be wrong)

Okay, I'll try again, here's a request for 100 sats set to expire in 24 hours.  I'll keep the client running all night.
I'm getting the same result when sending to a disconnected channel.
But it's not the same error when you try to send to a single PC with multiple instances of Electrum.
https://i.imgur.com/5tKXSnG.png

I'll retry it periodically or open another channel, might be a connection or routing issue.
Update: Eclair failed to send through lightning too, it worked for me, tried just now (maybe your client was closed for some reason?).


Title: Re: Electrum Lightning Demo
Post by: DireWolfM14 on March 26, 2020, 04:17:18 AM
I'll retry it periodically or open another channel, might be a connection or routing issue.
Update: Eclair failed to send through lightning too, it worked for me, tried just now (maybe your client was closed for some reason?).

I just checked it now, my channel disconnected for some reason.  Tried to restart Electrum, but still couldn't get it reconnected.  Well, that one's a gonner.  I'll open another channel and post another request tomorrow. 


Title: Re: Electrum Lightning Demo
Post by: HCP on March 30, 2020, 09:12:36 AM
I have compiled and uploaded a snapshot of 4.0.0a0 as at 30th March 2020... It is available here: http://www.mediafire.com/file/50jvn15ysgj8qsd/electrum-3.3.8-1845-g79d57784c-portable.exe

Ignore the filename, it's just a quirk of the build system as discussed earlier in this thread. (https://bitcointalk.org/index.php?topic=5221146.msg53736740#msg53736740)

As always, Use at your own risk. I accept no responsibility if something goes wrong and you lose coins... TestNet is there for a reason! :P

https://talkimg.com/images/2023/11/15/z11iJ.png

https://talkimg.com/images/2023/11/15/z1cwC.png

Seems my channels got closed while I've been offline due to moving etc :P


Title: Re: Electrum Lightning Demo
Post by: DireWolfM14 on March 30, 2020, 05:41:15 PM
I'm running it from source.

I installed python on my Win10 machine, installed all the dependencies, and then tried to run Electrum from source myself, but I got stuck with this error:

Code:
Error: Failed to load libsecp256k1.

I did a little google search and came across this issue posted on github: https://github.com/spesmilo/electrum/issues/5976

I literally laughed out loud when I saw who posted the issue; "hey I know that guy," I said to myself.  I'm at the office today, so I don't have time to try compiling the libsecp256k1-0.dll, and I don't have a Linux vm installed on my work machine anyway (time to fix that.) 

But, I assume that worked for you, and that's all I need to run Electrum from source on my Windows 10 machine?


Title: Re: Electrum Lightning Demo
Post by: BitMaxz on March 30, 2020, 05:59:18 PM
~snip~

Do you have any other links? It's blocked on Mediafire look at the image below.

https://i.imgur.com/XxeOME0.png

Can you re-upload the file to other hosting sites I suggest you upload it here zippyshare.com. and post it here or pm the link.

Thanks in advance...

I literally laughed out loud when I saw who posted the issue; "hey I know that guy," I said to myself.  I'm at the office today, so I don't have time to try compiling the libsecp256k1-0.dll, and I don't have a Linux vm installed on my work machine anyway (time to fix that.) 

Why not just install the copy from HCP to try? I think we already talk about this "libsecp256k1" from another thread here https://bitcointalk.org/index.php?topic=5222986.0

So, I think the copy from HCP includes the "libsecp256k1"


Title: Re: Electrum Lightning Demo
Post by: HCP on March 30, 2020, 09:30:38 PM
Do you have any other links? It's blocked on Mediafire look at the image below.
...
Can you re-upload the file to other hosting sites I suggest you upload it here zippyshare.com. and post it here or pm the link.

Thanks in advance...
I just banged it up on mediafire because it was the first (easy) filehosting that came to mind! :P It would seem it is freaking out about pyinstaller and blocking the file :-\

In the meantime, I've added the same file to zippyshare for you: https://www92.zippyshare.com/v/qdHxapxK/file.html




Quote
Why not just install the copy from HCP to try? I think we already talk about this "libsecp256k1" from another thread here https://bitcointalk.org/index.php?topic=5222986.0

So, I think the copy from HCP includes the "libsecp256k1"
Yeah, I went to all the effort previously with libsecp256k1... it's been compiled on my ubuntu VM, so is automatically included when building, so all the lightning stuff is working. I managed to open a couple of channels on Testnet and send some coins.

https://talkimg.com/images/2023/11/15/z1rvW.png


Code:
Error: Failed to load libsecp256k1.

I did a little google search and came across this issue posted on github: https://github.com/spesmilo/electrum/issues/5976

I literally laughed out loud when I saw who posted the issue; "hey I know that guy," I said to myself.  I'm at the office today, so I don't have time to try compiling the libsecp256k1-0.dll, and I don't have a Linux vm installed on my work machine anyway (time to fix that.) 

But, I assume that worked for you, and that's all I need to run Electrum from source on my Windows 10 machine?
Yeah, I've tested it on Windows 10 running from source as well... so I've put the compiled ibsecp256k1-0.dll on zippyshare too: https://www92.zippyshare.com/v/CucF6mf9/file.html

Let me know if it works ok!


Title: Re: Electrum Lightning Demo
Post by: DireWolfM14 on March 30, 2020, 09:52:00 PM
Why not just install the copy from HCP to try?

I learned to compile my own binaries a little while ago so I could test the pre-beta version, but now I'm having fun working with python and learning more and more as I experiment.  I'm finding that to be quite a bit of fun.  Weird, huh?  Working with command prompt is sort of nostalgic for me, having grown up with DOS and Unix. 

I posted links to the portable binary file that I built myself here:

Electrum portable executable: https://drive.google.com/file/d/1Tua1pnLztCZsIcQJBFtdmYmLsGY2qhZQ/view?usp=sharing


I think we already talk about this "libsecp256k1" from another thread here https://bitcointalk.org/index.php?topic=5222986.0

So, I think the copy from HCP includes the "libsecp256k1"

I knew someone had discussed it already, I thought it was in this thread but couldn't find it.  Thank you for that.


Yeah, I've tested it on Windows 10 running from source as well... so I've put the compiled ibsecp256k1-0.dll on zippyshare too: https://www92.zippyshare.com/v/CucF6mf9/file.html

Let me know if it works ok!

Thanks for the link, but I really just wanted to do it myself as a learning opportunity.  It didn't occur to me that since I've already compiled the binaries (several times now,) I should have that file myself, right?  I'll have a look when I get home.


Title: Re: Electrum Lightning Demo
Post by: HCP on March 30, 2020, 10:21:10 PM
Thanks for the link, but I really just wanted to do it myself as a learning opportunity.  It didn't occur to me that since I've already compiled the binaries (several times now,) I should have that file myself, right?  I'll have a look when I get home.
Not necessarily... unless you have explicitly installed the appropriate libraries, the Windows build will still complete "OK" (with errors that scroll past) and binaries will be built... but the libsecp256k1 stuff will be missing and you'll get errors when you try to run it... as per this post: https://bitcointalk.org/index.php?topic=5222986.msg53807327#msg53807327

If you have "libsecp256k1-dev" installed in Ubuntu (with apt-get)... and the python library "libsecp256k1" installed (with pip)... then the build-wine process will automatically compile the libsecp256k1-0.dll and roll it into your binary file. You can also find this compiled .dll and then copy it to a Windows machine and put it into your Electrum "source" folder to be able to run from source.


Title: Re: Electrum Lightning Demo
Post by: nc50lc on March 31, 2020, 02:14:02 AM
I'm running it from source.
But, I assume that worked for you, and that's all I need to run Electrum from source on my Windows 10 machine?
Yes, aside from Python v3.8 or versions later than v3.6.1, just the other dependencies that you can install through pip like 'pyqt5'.
But earlier builds doesn't require "libsecp256k1", only when enabling Lightning (until Feb12).


Title: Re: Electrum Lightning Demo
Post by: DireWolfM14 on March 31, 2020, 08:23:06 PM
Status report:

I did indeed have a copy of libsecp256k1-0.dll available in my previous builds, and I copied the file to the "~\electrum_master\electrum" directory in my Windows box.  Electrum runs in my Ubuntu VM just fine, and the binaries I generated just this morning run fine as well.  There doesn't seem to be any issue with the libsecp256k1-0.dll file itself, but I still get this error when trying to run it from source:

Code:
PS D:\Program_Files\Electrum_Dev\electrum-master_20200330\electrum-master> python run_electrum
D:\Program_Files\Python\Python38\lib\site-packages\aiohttp\helpers.py:107: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def noop(*args, **kwargs):  # type: ignore
E | ecc_fast | libsecp256k1 library failed to load. exceptions: [OSError(8, '%1 is not a valid Win32 application', None, 193, None), OSError(8, '%1 is not a valid Win32 application', None, 193, None)]
Error: Failed to load libsecp256k1.
PS D:\Program_Files\Electrum_Dev\electrum-master_20200330\electrum-master>  

I'm using Windows 10 v. 1903
Python 3.8.2 64bit
downloaded the master yesterday, 30 MAR 2020
installed the following dependencies:

Code:
python -m pip install --upgrade pip
python -m pip install dnspython
python -m pip install pyaes
python -m pip install ecdsa
python -m pip install certifi
python -m pip install qrcode
python -m pip install protobuf-compiler
python -m pip install google
python -m pip install aiorpcx
python -m pip install aiohttp
python -m pip install aiohttp_socks
python -m pip install cryptography
python -m pip install pycryptodomex
python -m pip install bitstring
python -m pip install jsonrpcclient
python -m pip install jsonrpcserver
python -m pip install pyqt5

If anyone has any suggestions, please share.


Title: Re: Electrum Lightning Demo
Post by: HCP on March 31, 2020, 09:16:34 PM
I had that exact error initially... it's because it is generating the wrong "type" of dll... ie. 32bit instead of 64bit.

Refer: https://github.com/spesmilo/electrum/issues/5976#issuecomment-589809870

If you're building manually outside of the docker "fresh_clone"... you need to ensure you have "gcc-mingw-w64" installed:
Code:
sudo apt-get install gcc-mingw-w64

Then make sure you set the correct GCC_TRIPLET_HOST variable when running contrib/make_libsecp256k1.sh. I believe the comments in contrib/make_libsecp256k1.sh were updated to reflect which command you needed. Refer: https://github.com/spesmilo/electrum/commit/875e6b31b1d4fa0e133a7176e7592361c45beee7


Title: Re: Electrum Lightning Demo
Post by: DireWolfM14 on March 31, 2020, 10:39:13 PM
I had that exact error initially... it's because it is generating the wrong "type" of dll... ie. 32bit instead of 64bit.

Refer: https://github.com/spesmilo/electrum/issues/5976#issuecomment-589809870

If you're building manually outside of the docker "fresh_clone"... you need to ensure you have "gcc-mingw-w64" installed:
Code:
sudo apt-get install gcc-mingw-w64

Then make sure you set the correct GCC_TRIPLET_HOST variable when running contrib/make_libsecp256k1.sh. I believe the comments in contrib/make_libsecp256k1.sh were updated to reflect which command you needed. Refer: https://github.com/spesmilo/electrum/commit/875e6b31b1d4fa0e133a7176e7592361c45beee7

Perfect!  Thank you so much HCP!

https://i.ibb.co/tmFtZWD/Capture.jpg (https://ibb.co/f1L58PH)

I should have known something was up with the libsecp255k1-0.dll compilation.  Whenever I ran the script on my Ubuntu VM it would finish up with the following error.  I kept thinking it was a file permission thing, was trying to work around it.

Code:
error: could not copy secp256k1 binary to its destination


Title: Re: Electrum Lightning Demo
Post by: HCP on April 01, 2020, 04:23:30 AM
In other news... mocacinno has been kind enough to provide a small file hosting repository for me (https://www.mocacinno.com/HCP/)... so, in future I'll be able to get 4.0.0 builds uploaded there instead of having to rely on free file hosting sites that have popups and ads and shit like that.

As you can see, aside from my current build, it also has my PGP signature (hcp_pgp.asc) and a .sig file for the build itself. You can also see the instructions in the README for how to retrieve my public key from keybase.io.

Again, big thanks to mocacinno... he really does an awful lot for our community!


Title: Re: Electrum Lightning Demo
Post by: DireWolfM14 on April 01, 2020, 03:11:49 PM
Again, big thanks to mocacinno... he really does an awful lot for our community!

That is quite generous, thanks mocacinno.


Now, back to my stupid questions:

I didn't get a chance to play with lightning transactions yesterday with the newest source, but I'm wondering; would the libsecp255k1-0.dll file being 32bit vs 64 have had anything to do with my inability to send from one of my Electrum wallets to the other?

Now that I know I compiled the 64bit version of libsecp255k1-0.dll, I'm assuming that all of my previous compilations were 32bit. 


Title: Re: Electrum Lightning Demo
Post by: HCP on April 02, 2020, 03:22:05 AM
I honestly don't know that answer to that question. It could be that, or it could have simply been the more common "no route"-type issue. I had a few of those at various times (with lnd etc)... sometimes channels drop off and you can't get a payment route.

But yeah... a nonfunctional libsecp256k1-0.dll might cause issues.


Title: Re: Electrum Lightning Demo
Post by: mocacinno on July 01, 2020, 06:34:18 AM
Just as a general heads-up...

It seems like ThomasV is now actively compiling and signing electrum 4.x beta releases :)

https://download.electrum.org/4.0.0b1/

I'll keep my repo open, but it might be a good idear to get your builds directly from ThomasV's repo!


Title: Re: Electrum Lightning Demo
Post by: AB de Royse777 on July 01, 2020, 08:32:13 AM
Just as a general heads-up...
Good to know and thanks for the heads up. I usually update my version after few weeks of releasing the newer one. I can not wait to see it in run and feedback from the users.