Coder Social home page Coder Social logo

Comments (5)

cdecker avatar cdecker commented on July 23, 2024

After discussing this issue on IRC we came to the conclusion that the 0218 node was restarted and it chose a different random port, making re-connecting impossible. Maybe we could write the port back into the config if we have chosen it randomly so that we at least always restart with the same port?

from lightning.

rustyrussell avatar rustyrussell commented on July 23, 2024

Christian Decker [email protected] writes:

After discussing this issue on IRC we came to the conclusion that the
0218 node was restarted and it chose a different random port, making
re-connecting impossible. Maybe we could write the port back into the
config if we have chosen it randomly so that we at least always
restart with the same port?

Rewriting config files is usually bad. I would prefer that we don't
create the listening at all unless they specify a port in their config?

Cheers,
Rusty.

from lightning.

cdecker avatar cdecker commented on July 23, 2024

I'm fine with that for now, with 0.6 we will also have a default port, so we won't have too many people not accepting incoming connections :-)

from lightning.

tdaede avatar tdaede commented on July 23, 2024

I imagine the P2P discovery will eventually allow rediscovery when an IP or port changes. IP addresses could also change - it would be nice to have an "addnode" RPC call to update the peer address table.

The other problem is that it wasn't obvious what was making it stuck, but now I know to check both getpeers and getnodes. Might be nice for lightning-pay to do the same.

from lightning.

cdecker avatar cdecker commented on July 23, 2024

As soon as we have the new routing announcement protocol from #88 I'll also update existing channels so that reconnecting works.

from lightning.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.