accounts: use pointers consistently

Account is now always a non-pointer. This will be important once
the manager starts remembering accounts.

AccountManager is now always a pointer because it contains locks
and locks cannot be copied.
This commit is contained in:
Felix Lange
2015-03-08 00:18:13 +01:00
parent a2810c06d7
commit fda7b4c79d
3 changed files with 14 additions and 17 deletions

View File

@ -311,7 +311,7 @@ func (self *XEth) Transact(fromStr, toStr, valueStr, gasStr, gasPriceStr, codeSt
nonce := state.GetNonce(from)
tx.SetNonce(nonce)
sig, err := self.accountManager.Sign(&accounts.Account{Address: from}, tx.Hash())
sig, err := self.accountManager.Sign(accounts.Account{Address: from}, tx.Hash())
if err != nil {
return "", err
}