Skip to content

Commit

Permalink
wallet: get rid of unnecessary lock
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjan committed Jan 30, 2024
1 parent 9c872b3 commit 329d228
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions wallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,6 @@ func (sw *SingleAddressWallet) Tip() (types.ChainIndex, error) {
// UnconfirmedTransactions returns all unconfirmed transactions relevant to the
// wallet.
func (sw *SingleAddressWallet) UnconfirmedTransactions() ([]Transaction, error) {
sw.mu.Lock()
defer sw.mu.Unlock()

confirmed, err := sw.store.UnspentSiacoinElements()
if err != nil {
return nil, fmt.Errorf("failed to get unspent outputs: %w", err)
Expand Down

0 comments on commit 329d228

Please sign in to comment.