Commit 7ff09d6f authored by hezhengjun's avatar hezhengjun

set validator address when recovery private key from db

parent 5bedef2f
......@@ -108,6 +108,7 @@ func (chain33Relayer *Chain33Relayer) RestorePrivateKeys(passphrase string) erro
chain33Relayer.rwLock.Lock()
chain33Relayer.privateKey4Ethereum = privateKey
chain33Relayer.ethSender = crypto.PubkeyToAddress(privateKey.PublicKey)
chain33Relayer.rwLock.Unlock()
chain33Relayer.unlock <- start
return nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment