Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

htlcswitch: randomize link fee updates #1229

Merged
merged 2 commits into from
Jun 14, 2018

Commits on Jun 14, 2018

  1. peer+htlcswitch: randomize link commitment fee updates

    In this commit, we modify the behavior of links updating their
    commitment fees. Rather than attempting to update the commitment fee for
    each link every time a new block comes in, we'll use a timer with a
    random interval between 10 and 60 minutes for each link to determine
    when to update their corresponding commitment fee. This prevents us from
    oscillating the fee rate for our various commitment transactions.
    wpaulino committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    4cc6049 View commit details
    Browse the repository at this point in the history
  2. multi: move block epochs dependency from links to switch

    In this commit, we move the block height dependency from the links in
    the switch to the switch itself. This is possible due to a recent change
    on the links no longer depending on the block height to update their
    commitment fees.
    
    We'll now only have the switch be alerted of new blocks coming in and
    links will retrieve the height from it atomically.
    wpaulino committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    8198466 View commit details
    Browse the repository at this point in the history