removed ffi
This commit is contained in:
parent
ddefa11695
commit
3dfda15ef3
@ -1,15 +1,16 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bitbucket.org/kardianos/osext"
|
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/ethereum/eth-go/ethlog"
|
|
||||||
"os"
|
"os"
|
||||||
"os/user"
|
"os/user"
|
||||||
"path"
|
"path"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
|
"bitbucket.org/kardianos/osext"
|
||||||
|
"github.com/ethereum/eth-go/ethlog"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Identifier string
|
var Identifier string
|
||||||
@ -78,7 +79,7 @@ func Init() {
|
|||||||
flag.StringVar(&KeyRing, "keyring", "", "identifier for keyring to use")
|
flag.StringVar(&KeyRing, "keyring", "", "identifier for keyring to use")
|
||||||
flag.StringVar(&KeyStore, "keystore", "db", "system to store keyrings: db|file (db)")
|
flag.StringVar(&KeyStore, "keystore", "db", "system to store keyrings: db|file (db)")
|
||||||
flag.StringVar(&OutboundPort, "port", "30303", "listening port")
|
flag.StringVar(&OutboundPort, "port", "30303", "listening port")
|
||||||
flag.BoolVar(&UseUPnP, "upnp", false, "enable UPnP support")
|
flag.BoolVar(&UseUPnP, "upnp", true, "enable UPnP support")
|
||||||
flag.IntVar(&MaxPeer, "maxpeer", 10, "maximum desired peers")
|
flag.IntVar(&MaxPeer, "maxpeer", 10, "maximum desired peers")
|
||||||
flag.IntVar(&RpcPort, "rpcport", 8080, "port to start json-rpc server on")
|
flag.IntVar(&RpcPort, "rpcport", 8080, "port to start json-rpc server on")
|
||||||
flag.BoolVar(&StartRpc, "rpc", false, "start rpc server")
|
flag.BoolVar(&StartRpc, "rpc", false, "start rpc server")
|
||||||
|
@ -13,8 +13,6 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"bitbucket.org/binet/go-ffi/pkg/ffi"
|
|
||||||
"github.com/ethereum/eth-go"
|
"github.com/ethereum/eth-go"
|
||||||
"github.com/ethereum/eth-go/ethchain"
|
"github.com/ethereum/eth-go/ethchain"
|
||||||
"github.com/ethereum/eth-go/ethdb"
|
"github.com/ethereum/eth-go/ethdb"
|
||||||
@ -27,6 +25,7 @@ import (
|
|||||||
"gopkg.in/qml.v1"
|
"gopkg.in/qml.v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
/*
|
||||||
func LoadExtension(path string) (uintptr, error) {
|
func LoadExtension(path string) (uintptr, error) {
|
||||||
lib, err := ffi.NewLibrary(path)
|
lib, err := ffi.NewLibrary(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -40,15 +39,14 @@ func LoadExtension(path string) (uintptr, error) {
|
|||||||
|
|
||||||
ptr := so()
|
ptr := so()
|
||||||
|
|
||||||
/*
|
|
||||||
err = lib.Close()
|
err = lib.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
return ptr.Interface().(uintptr), nil
|
return ptr.Interface().(uintptr), nil
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
var logger = ethlog.NewLogger("GUI")
|
var logger = ethlog.NewLogger("GUI")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user