sweep: expand NotifyBroadcast to include an outpoint index

In this commit, we expand the `NotifyBroadcast` to include an outpoint
index. This is useful as it indicates the index of a given required tx
out input.
This commit is contained in:
Olaoluwa Osuntokun
2024-11-07 18:28:08 -08:00
parent ab41f28a8f
commit ba16a74491
4 changed files with 26 additions and 11 deletions

View File

@@ -93,5 +93,6 @@ type AuxSweeper interface {
// NotifyBroadcast is used to notify external callers of the broadcast
// of a sweep transaction, generated by the passed BumpRequest.
NotifyBroadcast(req *BumpRequest, tx *wire.MsgTx,
totalFees btcutil.Amount) error
totalFees btcutil.Amount,
outpointToTxIndex map[wire.OutPoint]int) error
}