Skip to content

Conversation

@guggero
Copy link
Contributor

@guggero guggero commented Jun 9, 2022

Pull Request Checklist

  • PR is opened against correct version branch.
  • Version compatibility matrix in the README and minimal required version
    in lnd_services.go are updated.
  • Update macaroon_recipes.go if your PR adds a new method that is called
    differently than the RPC method it invokes.

@guggero guggero requested review from bhandras and positiveblue June 9, 2022 11:52
}
]
},
"/walletrpc.WalletKit/SignPsbt": {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The FundPsbt and FinalizePsbt methods were already here.

Copy link
Contributor

@positiveblue positiveblue left a comment

Choose a reason for hiding this comment

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

👍

return nil, nil, err
}

finalTx := wire.NewMsgTx(2)
Copy link
Contributor

Choose a reason for hiding this comment

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

out of scope for this PR but we may want to create some iota for the tx version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, it looks like we're only using it this way throughout the lnd codebase. But you're right, we should probably do it at some point :)

Copy link
Member

@bhandras bhandras left a comment

Choose a reason for hiding this comment

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

LGTM 👌

return nil, 0, nil, err
}

packet, err := psbt.NewFromRawBytes(
Copy link
Member

Choose a reason for hiding this comment

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

I suppose this is the kind of error that must never happen since otherwise the selected inputs will be locked forever?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah... Though the inputs wouldn't be locked forever, only 10 minutes.

@guggero guggero merged commit e70b910 into lnd-15-0 Jun 10, 2022
@guggero guggero deleted the psbt-methods branch June 10, 2022 10:59
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.

4 participants