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

chore: pkg import only once #8093

Merged
merged 1 commit into from
Oct 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions lnwallet/btcwallet/btcwallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
"github.com/btcsuite/btcd/wire"
"github.com/btcsuite/btcwallet/chain"
"github.com/btcsuite/btcwallet/waddrmgr"
"github.com/btcsuite/btcwallet/wallet"
base "github.com/btcsuite/btcwallet/wallet"
"github.com/btcsuite/btcwallet/wallet/txauthor"
"github.com/btcsuite/btcwallet/wallet/txrules"
Expand Down Expand Up @@ -1263,7 +1262,7 @@ func extractBalanceDelta(
// getPreviousOutpoints is a helper function which gets the previous
// outpoints of a transaction.
func getPreviousOutpoints(wireTx *wire.MsgTx,
myInputs []wallet.TransactionSummaryInput) []lnwallet.PreviousOutPoint {
myInputs []base.TransactionSummaryInput) []lnwallet.PreviousOutPoint {

// isOurOutput is a map containing the output indices
// controlled by the wallet.
Expand Down Expand Up @@ -1538,7 +1537,7 @@ out:
// Launch a goroutine to re-package and send
// notifications for any newly confirmed transactions.
//nolint:lll
go func(txNtfn *wallet.TransactionNotifications) {
go func(txNtfn *base.TransactionNotifications) {
for _, block := range txNtfn.AttachedBlocks {
details, err := minedTransactionsToDetails(
currentHeight, block,
Expand All @@ -1561,7 +1560,7 @@ out:

// Launch a goroutine to re-package and send
// notifications for any newly unconfirmed transactions.
go func(txNtfn *wallet.TransactionNotifications) {
go func(txNtfn *base.TransactionNotifications) {
for _, tx := range txNtfn.UnminedTransactions {
detail, err := unminedTransactionsToDetail(
tx, t.w.ChainParams(),
Expand Down
Loading