diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 11:34:35 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 11:34:35 +0800 |
commit | d791fe4975fa62618f854a86f1648d5fe7081b79 (patch) | |
tree | ddbbcc32c6cbbf03b06930a75780b4d3e8c08af8 | |
parent | 19360c00795d356d052a379663c3f36aedba3f9e (diff) | |
download | dexon-d791fe4975fa62618f854a86f1648d5fe7081b79.tar dexon-d791fe4975fa62618f854a86f1648d5fe7081b79.tar.gz dexon-d791fe4975fa62618f854a86f1648d5fe7081b79.tar.bz2 dexon-d791fe4975fa62618f854a86f1648d5fe7081b79.tar.lz dexon-d791fe4975fa62618f854a86f1648d5fe7081b79.tar.xz dexon-d791fe4975fa62618f854a86f1648d5fe7081b79.tar.zst dexon-d791fe4975fa62618f854a86f1648d5fe7081b79.zip |
Remove unnecessary event mux
-rw-r--r-- | rpc/api.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/rpc/api.go b/rpc/api.go index f31b9a344..cef5e4689 100644 --- a/rpc/api.go +++ b/rpc/api.go @@ -12,7 +12,6 @@ import ( "github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/xeth" ) @@ -24,7 +23,6 @@ var ( type EthereumApi struct { eth *xeth.XEth xethMu sync.RWMutex - mux *event.TypeMux // // Register keeps a list of accounts and transaction data // regmut sync.Mutex @@ -34,10 +32,10 @@ type EthereumApi struct { } func NewEthereumApi(eth *xeth.XEth, dataDir string) *EthereumApi { + // What about when dataDir is empty? db, _ := ethdb.NewLDBDatabase(path.Join(dataDir, "dapps")) api := &EthereumApi{ eth: eth, - mux: eth.Backend().EventMux(), db: db, } |