mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Rename to AllAccounts
This commit is contained in:
parent
aef792b636
commit
9d0ca263e8
1 changed files with 2 additions and 2 deletions
|
|
@ -190,7 +190,7 @@ func NewPublicAccountAPI(am *accounts.Manager) *PublicAccountAPI {
|
||||||
|
|
||||||
// Accounts returns the collection of accounts this node manages
|
// Accounts returns the collection of accounts this node manages
|
||||||
func (s *PublicAccountAPI) Accounts() []common.Address {
|
func (s *PublicAccountAPI) Accounts() []common.Address {
|
||||||
return s.am.AllAccounts()
|
return s.am.Accounts()
|
||||||
}
|
}
|
||||||
|
|
||||||
// PrivateAccountAPI provides an API to access accounts managed by this node.
|
// PrivateAccountAPI provides an API to access accounts managed by this node.
|
||||||
|
|
@ -213,7 +213,7 @@ func NewPrivateAccountAPI(b Backend, nonceLock *AddrLocker) *PrivateAccountAPI {
|
||||||
|
|
||||||
// ListAccounts will return a list of addresses for accounts this node manages.
|
// ListAccounts will return a list of addresses for accounts this node manages.
|
||||||
func (s *PrivateAccountAPI) ListAccounts() []common.Address {
|
func (s *PrivateAccountAPI) ListAccounts() []common.Address {
|
||||||
return s.am.AllAccounts()
|
return s.am.Accounts()
|
||||||
}
|
}
|
||||||
|
|
||||||
// rawWallet is a JSON representation of an accounts.Wallet interface, with its
|
// rawWallet is a JSON representation of an accounts.Wallet interface, with its
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue