Skip to content

Commit

Permalink
chore: pkg import only once
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
  • Loading branch information
testwill committed Oct 13, 2023
1 parent 939375f commit d4d3f20
Showing 1 changed file with 3 additions and 4 deletions.
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

0 comments on commit d4d3f20

Please sign in to comment.