Skip to content

[feature]: Include ParentFee when doing a CPFP using bumpFee RPC #7652

@ziggie1984

Description

@ziggie1984

Currently when we try to bump the fee of a transaction via CPFP lnd's sweeper engine it is not accounting for the parent unconfirmed transaction:

https://github.com/lightningnetwork/lnd/blob/master/lnrpc/walletrpc/walletkit_server.go#L926

I was trying to give it a shot while implementing the kweight feature (#7454) but I am not quite sure how I can fetch the inputs of the transaction here:

utxo, err := w.cfg.Wallet.FetchInputInfo(op)
	if err != nil {
		return nil, err
	}

So we have the full transaction saved in the utxo.PrevTx, but to get the fee, I need to basically do Outputs - Inputs, but I do not know how to fetch the Prevout Amounts being in the walletkit_server ? Any ideas how to do that ?

Metadata

Metadata

Assignees

Labels

enhancementImprovements to existing features / behaviour

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions