good morning!!!!

Skip to content
Snippets Groups Projects
Commit d791fe49 authored by Taylor Gerring's avatar Taylor Gerring
Browse files

Remove unnecessary event mux

parent 19360c00
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,6 @@ import ( ...@@ -12,7 +12,6 @@ import (
"github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/xeth" "github.com/ethereum/go-ethereum/xeth"
) )
...@@ -24,7 +23,6 @@ var ( ...@@ -24,7 +23,6 @@ var (
type EthereumApi struct { type EthereumApi struct {
eth *xeth.XEth eth *xeth.XEth
xethMu sync.RWMutex xethMu sync.RWMutex
mux *event.TypeMux
// // Register keeps a list of accounts and transaction data // // Register keeps a list of accounts and transaction data
// regmut sync.Mutex // regmut sync.Mutex
...@@ -34,10 +32,10 @@ type EthereumApi struct { ...@@ -34,10 +32,10 @@ type EthereumApi struct {
} }
func NewEthereumApi(eth *xeth.XEth, dataDir string) *EthereumApi { func NewEthereumApi(eth *xeth.XEth, dataDir string) *EthereumApi {
// What about when dataDir is empty?
db, _ := ethdb.NewLDBDatabase(path.Join(dataDir, "dapps")) db, _ := ethdb.NewLDBDatabase(path.Join(dataDir, "dapps"))
api := &EthereumApi{ api := &EthereumApi{
eth: eth, eth: eth,
mux: eth.Backend().EventMux(),
db: db, db: db,
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment