mirror of
https://github.com/LBRYFoundation/lbcwallet.git
synced 2025-08-28 16:01:29 +00:00
Kill last MarkAddressForAccount call and func.
This commit is contained in:
parent
902bbd1111
commit
abbe457ddc
3 changed files with 1 additions and 10 deletions
|
@ -28,10 +28,6 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MarkAddressForAccount marks an address as belonging to an account.
|
|
||||||
func MarkAddressForAccount(address, account string) {
|
|
||||||
}
|
|
||||||
|
|
||||||
// Account is a structure containing all the components for a
|
// Account is a structure containing all the components for a
|
||||||
// complete wallet. It contains the Armory-style wallet (to store
|
// complete wallet. It contains the Armory-style wallet (to store
|
||||||
// addresses and keys), and tx and utxo stores, and a mutex to prevent
|
// addresses and keys), and tx and utxo stores, and a mutex to prevent
|
||||||
|
|
|
@ -225,11 +225,6 @@ func openSavedAccount(name string, cfg *config) (*Account, error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mark all active payment addresses as belonging to this account.
|
|
||||||
for addr := range a.ActivePaymentAddresses() {
|
|
||||||
MarkAddressForAccount(addr, name)
|
|
||||||
}
|
|
||||||
|
|
||||||
return a, finalErr
|
return a, finalErr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -218,7 +218,7 @@ func (a *Account) txToPairs(pairs map[string]int64, minconf int) (*CreatedTx, er
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mark change address as belonging to this account.
|
// Mark change address as belonging to this account.
|
||||||
MarkAddressForAccount(changeAddr.EncodeAddress(), a.Name())
|
AcctMgr.MarkAddressForAccount(changeAddr, a)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Spend change.
|
// Spend change.
|
||||||
|
|
Loading…
Add table
Reference in a new issue