Pages:
Author

Topic: Electrum Lightning Demo (Read 1026 times)

legendary
Activity: 2464
Merit: 3878
Hire Bitcointalk Camp. Manager @ r7promotions.com
July 01, 2020, 03:32:13 AM
#54
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.
legendary
Activity: 3514
Merit: 5123
https://merel.mobi => buy facemasks with BTC/LTC
July 01, 2020, 01:34:18 AM
#53
Just as a general heads-up...

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

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!
HCP
legendary
Activity: 2086
Merit: 4361
April 01, 2020, 10:22:05 PM
#52
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.
copper member
Activity: 2338
Merit: 4543
Join the world-leading crypto sportsbook NOW!
April 01, 2020, 10:11:49 AM
#51
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. 
HCP
legendary
Activity: 2086
Merit: 4361
March 31, 2020, 11:23:30 PM
#50
In other news... mocacinno has been kind enough to provide a small file hosting repository for me... 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!
copper member
Activity: 2338
Merit: 4543
Join the world-leading crypto sportsbook NOW!
March 31, 2020, 05:39:13 PM
#49
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!



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
HCP
legendary
Activity: 2086
Merit: 4361
March 31, 2020, 04:16:34 PM
#48
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
copper member
Activity: 2338
Merit: 4543
Join the world-leading crypto sportsbook NOW!
March 31, 2020, 03:23:06 PM
#47
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.
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
March 30, 2020, 09:14:02 PM
#46
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).
HCP
legendary
Activity: 2086
Merit: 4361
March 30, 2020, 05:21:10 PM
#45
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://bitcointalksearch.org/topic/m.53807327

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.
copper member
Activity: 2338
Merit: 4543
Join the world-leading crypto sportsbook NOW!
March 30, 2020, 04:52:00 PM
#44
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:



I think we already talk about this "libsecp256k1" from another thread here https://bitcointalksearch.org/topic/electrum-400a0-new-feature-5222986

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.
HCP
legendary
Activity: 2086
Merit: 4361
March 30, 2020, 04:30:38 PM
#43
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! Tongue It would seem it is freaking out about pyinstaller and blocking the file Undecided

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




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!
legendary
Activity: 3374
Merit: 3095
BTC price road to $80k
March 30, 2020, 12:59:18 PM
#42
~snip~

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 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://bitcointalksearch.org/topic/electrum-400a0-new-feature-5222986

So, I think the copy from HCP includes the "libsecp256k1"
copper member
Activity: 2338
Merit: 4543
Join the world-leading crypto sportsbook NOW!
March 30, 2020, 12:41:15 PM
#41
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?
HCP
legendary
Activity: 2086
Merit: 4361
March 30, 2020, 04:12:36 AM
#40
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.

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! Tongue





Seems my channels got closed while I've been offline due to moving etc Tongue
copper member
Activity: 2338
Merit: 4543
Join the world-leading crypto sportsbook NOW!
March 25, 2020, 11:17:18 PM
#39
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. 
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
March 25, 2020, 10:14:49 PM
#38
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.


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?).
copper member
Activity: 2338
Merit: 4543
Join the world-leading crypto sportsbook NOW!
March 25, 2020, 08:50:27 PM
#37
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.
legendary
Activity: 3374
Merit: 3095
BTC price road to $80k
March 25, 2020, 06:39:37 PM
#36
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?
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
March 24, 2020, 11:06:35 PM
#35
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.
Pages:
Jump to: