From abbe457ddc1baefcbfe401f0602e3eda211919f8 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Tue, 8 Apr 2014 17:49:46 -0500 Subject: [PATCH] Kill last MarkAddressForAccount call and func. --- account.go | 4 ---- acctmgr.go | 5 ----- createtx.go | 2 +- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/account.go b/account.go index dff15e3..659efa5 100644 --- a/account.go +++ b/account.go @@ -28,10 +28,6 @@ import ( "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 // complete wallet. It contains the Armory-style wallet (to store // addresses and keys), and tx and utxo stores, and a mutex to prevent diff --git a/acctmgr.go b/acctmgr.go index b25b05a..478ea8a 100644 --- a/acctmgr.go +++ b/acctmgr.go @@ -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 } diff --git a/createtx.go b/createtx.go index e4e3c97..78358ad 100644 --- a/createtx.go +++ b/createtx.go @@ -218,7 +218,7 @@ func (a *Account) txToPairs(pairs map[string]int64, minconf int) (*CreatedTx, er } // Mark change address as belonging to this account. - MarkAddressForAccount(changeAddr.EncodeAddress(), a.Name()) + AcctMgr.MarkAddressForAccount(changeAddr, a) } // Spend change.