GithubHelp home page GithubHelp logo

Comments (3)

Alonzo-Coeus avatar Alonzo-Coeus commented on August 23, 2024

Or maybe we each node could have a channel heart beat that makes the other node close connection with if it stops

from thunder.

matsjj avatar matsjj commented on August 23, 2024

Oh we do that already, there is a standard ping behaviour between nodes.

The bigger problem is that when a channel is closed, other nodes will not get notified and will keep trying to route through that channel.

from thunder.

Alonzo-Coeus avatar Alonzo-Coeus commented on August 23, 2024

Ok then here is an idea.
it is a new routing system when you want a payment routed across the network you ask for a signature from the payment receiver which is relayed to all nodes you are connected to and each node will do this step and also ask there clients for the signature once there is a valid signature then payments will be routed in a channel between the to users the rule of thumb will always be root back over from the node you received the message first from this has the added advantage of always finding the fastest route.

1: once a node has received a request for a signature it wont re-relay that signature request this is stop the network relaying the requests in a loop

2: also when a reply to the signature request is given to a node from the payment receiver it will send it to the node that gave the request to it and so on until it reaches the paying user

3: this happens before paying and after connecting to a hub

4: finally if a request is answered before the request has reached everyone you stop listening for reply to you request (if your friend who will be payed is connected to meany nodes he will also wont answer any identical requests) now you will wait until the network wont relay the request any more.

ps: request does not contain payment info all it is. is a random nonce to be signed by an address structure of request will be [payer_addr, nonce].

from thunder.

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.