aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
Diffstat (limited to 'xeth')
-rw-r--r--xeth/xeth.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go
index 81197d381..4925fe635 100644
--- a/xeth/xeth.go
+++ b/xeth/xeth.go
@@ -69,6 +69,13 @@ type XEth struct {
agent *miner.RemoteAgent
}
+func NewTest(eth *eth.Ethereum, frontend Frontend) *XEth {
+ return &XEth{
+ backend: eth,
+ frontend: frontend,
+ }
+}
+
// New creates an XEth that uses the given frontend.
// If a nil Frontend is provided, a default frontend which
// confirms all transactions will be used.