Skip to content

implement mark_node_bad in router.rs #106

Closed

Description

@savil

https://github.com/rust-bitcoin/rust-lightning/blob/master/src/ln/router.rs#L356-L364

some questions:

  1. which callsite(s) would invoke this function? trying to see how to test it.
  2. where should we store the state for marking it bad?
  • I'm thinking struct NodeInfo. We can add a field that stores a timestamp for when it was marked bad, which will let us calculate the exponential decay. Let me know if you have other thoughts.

cc @TheBlueMatt

Activity

  1. TheBlueMatt commented on Aug 1, 2018

    @TheBlueMatt
    Collaborator

    I intended this to be along the lines of #59 but for intermediate hops, ie if we fail to route a payment but can't definitively assign blame we might call that to just avoid routing via nodes that might be at fault, but honestly that's not nearly a sufficiently granular API and should maybe just be dropped in favor of a more general "I succeeded at routing a payment over this Route" "I failed to route a payment over this Route, and the blame is Some(node_id) or None" API so we can track whether nodes may be behaving honestly and add some weighting in get_route.

  2. TheBlueMatt commented on Jun 23, 2021

    @TheBlueMatt
    Collaborator

    Subsumed by #486 and #636.

  3. added a commit that references this issue on Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions