Skip to content

Conversation

@halseth
Copy link
Contributor

@halseth halseth commented Aug 20, 2018

This PR makes the fundingmanager aware of transaction spending inputs to the funding transaction, invalidating the funding tx. In this case we will cancel the funding flow.

TODO:

  • handle this also after startup by extracting common logic
  • properly set pkScript for funding tx inputs
  • add scenario to integration tests

Fixes #1494
Fixes #1623

Blocked by #1910

@halseth halseth force-pushed the funding-detect-double-spends branch from 827818b to 9c43df4 Compare August 21, 2018 07:59
@halseth halseth added this to the 0.5.1 milestone Aug 22, 2018
@Roasbeef Roasbeef added funding Related to the opening of new channels with funding transactions on the blockchain needs review PR needs review by regular contributors needs testing PR hasn't yet been actively tested on testnet/mainnet labels Sep 14, 2018
@halseth halseth modified the milestones: 0.5.1, 0.5.2 Sep 20, 2018
@halseth
Copy link
Contributor Author

halseth commented Dec 19, 2018

Not ready for review.

@halseth halseth added the incomplete WIP PR, not fully finalized, but light review possible label Dec 19, 2018
@Roasbeef Roasbeef removed this from the 0.5.2 milestone Jan 16, 2019
// the remaining part of the opening process, we must wait for
// this process to finish (either successfully or with some
// error), before the fundingManager can be shut down.
// We now launch a goroutine that will wiat for the funding
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// We now launch a goroutine that will wiat for the funding
// We now launch a goroutine that will wait for the funding

).(*lnwire.AcceptChannel)
}

// TestFundingManagerFundingDoubleSpend tests that we correctly handles the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// TestFundingManagerFundingDoubleSpend tests that we correctly handles the
// TestFundingManagerFundingDoubleSpend tests that we correctly handle the

@halseth
Copy link
Contributor Author

halseth commented May 6, 2021

Gonna close this as it is outdated and unfinished. I still think this is the way to go to solve #386 though.

@halseth halseth closed this May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

funding Related to the opening of new channels with funding transactions on the blockchain incomplete WIP PR, not fully finalized, but light review possible needs review PR needs review by regular contributors needs testing PR hasn't yet been actively tested on testnet/mainnet

Projects

None yet

3 participants