mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
rpc: support empty string as password in personal.unlockAccount
This commit is contained in:
parent
6ec13e7e2b
commit
b3e5e31a7b
1 changed files with 0 additions and 9 deletions
|
|
@ -17,7 +17,6 @@
|
|||
package api
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
|
|
@ -110,14 +109,6 @@ func (self *personalApi) UnlockAccount(req *shared.Request) (interface{}, error)
|
|||
return nil, shared.NewDecodeParamError(err.Error())
|
||||
}
|
||||
|
||||
if len(args.Passphrase) == 0 {
|
||||
fe := self.xeth.Frontend()
|
||||
if fe == nil {
|
||||
return false, fmt.Errorf("No password provided")
|
||||
}
|
||||
return fe.UnlockAccount(common.HexToAddress(args.Address).Bytes()), nil
|
||||
}
|
||||
|
||||
am := self.ethereum.AccountManager()
|
||||
addr := common.HexToAddress(args.Address)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue