Skip to content

implement mark_node_bad in router.rs #106

Closed
@savil

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

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