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

Make signedTx a function #2784

Closed
wants to merge 1 commit into from
Closed

Make signedTx a function #2784

wants to merge 1 commit into from

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Nov 24, 2023

This is just a PoC at that point.

This is just a PoC at that point.
Comment on lines +930 to +935
val previousOutputs = {
val sharedOutput = fundingParams.sharedInput_opt.map(sharedInput => sharedInput.info.outPoint -> sharedInput.info.txOut).toMap
val localOutputs = txWithSigs.tx.localInputs.map(i => i.outPoint -> i.previousTx.txOut(i.previousTxOutput.toInt)).toMap
val remoteOutputs = txWithSigs.tx.remoteInputs.map(i => i.outPoint -> i.txOut).toMap
sharedOutput ++ localOutputs ++ remoteOutputs
}
Copy link
Member

Choose a reason for hiding this comment

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

Maybe move this to SharedTransaction right away to minimize diff in feature branch?

@t-bast
Copy link
Member Author

t-bast commented Dec 4, 2023

Closed in favor of #2791

@t-bast t-bast closed this Dec 4, 2023
@t-bast t-bast deleted the fully-signed-tx-function branch December 4, 2023 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants