forked from cerc-io/plugeth
cmd, eth, node: deprecate personal namespace (#26390)
* eth: cmd: deprecate personal namespace * eth: cmd: move deprecation to node * node: disable toml of enablepersonal * node: disable personal on ipc as well * Update node/node.go Co-authored-by: Martin Holst Swende <martin@swende.se> * console: error -> warn * node: less roulette --------- Co-authored-by: Martin Holst Swende <martin@swende.se>
This commit is contained in:
co-authored by
Martin Holst Swende
parent
a8cf4399a9
commit
d0a4989a8d
+2
-1
@@ -215,7 +215,7 @@ func (c *Console) initExtensions() error {
|
||||
}
|
||||
|
||||
// Compute aliases from server-provided modules.
|
||||
aliases := map[string]struct{}{"eth": {}, "personal": {}}
|
||||
aliases := map[string]struct{}{"eth": {}}
|
||||
for api := range apis {
|
||||
if api == "web3" {
|
||||
continue
|
||||
@@ -260,6 +260,7 @@ func (c *Console) initPersonal(vm *goja.Runtime, bridge *bridge) {
|
||||
if personal == nil || c.prompter == nil {
|
||||
return
|
||||
}
|
||||
log.Warn("Enabling deprecated personal namespace")
|
||||
jeth := vm.NewObject()
|
||||
vm.Set("jeth", jeth)
|
||||
jeth.Set("openWallet", personal.Get("openWallet"))
|
||||
|
||||
Reference in New Issue
Block a user