aboutsummaryrefslogtreecommitdiffstats
path: root/javascript/javascript_runtime.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2014-12-15 02:12:27 +0800
committerzelig <viktor.tron@gmail.com>2014-12-15 04:27:06 +0800
commitb89ed8eb7bc9ced4a7daa33cc81e1579a6d2ddfc (patch)
tree6a5cf2ae722013eb7f71a859f62044248e32f0b5 /javascript/javascript_runtime.go
parent118862f1ba058fa90414ab9ec6deb1ab5aac6590 (diff)
downloadgo-tangerine-b89ed8eb7bc9ced4a7daa33cc81e1579a6d2ddfc.tar.gz
go-tangerine-b89ed8eb7bc9ced4a7daa33cc81e1579a6d2ddfc.tar.zst
go-tangerine-b89ed8eb7bc9ced4a7daa33cc81e1579a6d2ddfc.zip
adapt javascript pkg to new backend, use SuggestPeer
Diffstat (limited to 'javascript/javascript_runtime.go')
-rw-r--r--javascript/javascript_runtime.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/javascript/javascript_runtime.go b/javascript/javascript_runtime.go
index 84d61d405..169ed509e 100644
--- a/javascript/javascript_runtime.go
+++ b/javascript/javascript_runtime.go
@@ -7,10 +7,10 @@ import (
"path"
"path/filepath"
- "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types"
+ "github.com/ethereum/go-ethereum/eth"
"github.com/ethereum/go-ethereum/ethutil"
"github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/logger"
@@ -202,7 +202,7 @@ func (self *JSRE) addPeer(call otto.FunctionCall) otto.Value {
if err != nil {
return otto.FalseValue()
}
- self.ethereum.ConnectToPeer(host)
+ self.ethereum.SuggestPeer(host)
return otto.TrueValue()
}