forked from cerc-io/plugeth
Reflect RPC changes
This commit is contained in:
parent
6ea44c466a
commit
6f08e30109
@ -7,10 +7,7 @@ import QtQuick.Layouts 1.0;
|
|||||||
import QtQuick.Window 2.1;
|
import QtQuick.Window 2.1;
|
||||||
import Ethereum 1.0
|
import Ethereum 1.0
|
||||||
|
|
||||||
import "../ext/qml_messaging.js" as Messaging
|
Rectangle {
|
||||||
|
|
||||||
//ApplicationWindow {
|
|
||||||
Rectangle {
|
|
||||||
id: window
|
id: window
|
||||||
property var title: "Browser"
|
property var title: "Browser"
|
||||||
property var iconSource: "../browser.png"
|
property var iconSource: "../browser.png"
|
||||||
@ -154,12 +151,6 @@ import "../ext/qml_messaging.js" as Messaging
|
|||||||
webview.experimental.postMessage(JSON.stringify(data))
|
webview.experimental.postMessage(JSON.stringify(data))
|
||||||
}
|
}
|
||||||
|
|
||||||
onTitleChanged: {
|
|
||||||
var data = Messaging.HandleMessage(title);
|
|
||||||
if(data) {
|
|
||||||
sendMessage(data)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
experimental.preferences.javascriptEnabled: true
|
experimental.preferences.javascriptEnabled: true
|
||||||
experimental.preferences.navigatorQtObjectEnabled: true
|
experimental.preferences.navigatorQtObjectEnabled: true
|
||||||
@ -414,4 +405,4 @@ import "../ext/qml_messaging.js" as Messaging
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,9 +19,9 @@ import (
|
|||||||
"github.com/ethereum/eth-go/ethlog"
|
"github.com/ethereum/eth-go/ethlog"
|
||||||
"github.com/ethereum/eth-go/ethminer"
|
"github.com/ethereum/eth-go/ethminer"
|
||||||
"github.com/ethereum/eth-go/ethpipe"
|
"github.com/ethereum/eth-go/ethpipe"
|
||||||
"github.com/ethereum/eth-go/ethrpc"
|
|
||||||
"github.com/ethereum/eth-go/ethutil"
|
"github.com/ethereum/eth-go/ethutil"
|
||||||
"github.com/ethereum/eth-go/ethwire"
|
"github.com/ethereum/eth-go/ethwire"
|
||||||
|
"github.com/ethereum/eth-go/rpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
var logger = ethlog.NewLogger("CLI")
|
var logger = ethlog.NewLogger("CLI")
|
||||||
@ -244,7 +244,7 @@ func KeyTasks(keyManager *ethcrypto.KeyManager, KeyRing string, GenAddr bool, Se
|
|||||||
|
|
||||||
func StartRpc(ethereum *eth.Ethereum, RpcPort int) {
|
func StartRpc(ethereum *eth.Ethereum, RpcPort int) {
|
||||||
var err error
|
var err error
|
||||||
ethereum.RpcServer, err = ethrpc.NewJsonRpcServer(ethpipe.NewJSPipe(ethereum), RpcPort)
|
ethereum.RpcServer, err = rpc.NewJsonRpcServer(ethpipe.NewJSPipe(ethereum), RpcPort)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Errorf("Could not start RPC interface (port %v): %v", RpcPort, err)
|
logger.Errorf("Could not start RPC interface (port %v): %v", RpcPort, err)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user