aboutsummaryrefslogtreecommitdiffstats
path: root/xeth/frontend.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-21 00:08:14 +0800
committerobscuren <geffobscura@gmail.com>2015-04-21 00:08:14 +0800
commit36ec42e50c9367e86621ff58b8e3d835abbbad79 (patch)
tree94c9d0a98b625ca5a8be59f5b780fd3bd54254c7 /xeth/frontend.go
parent76025cc4245f0abc0749f4d1e433be865107bf24 (diff)
parent093a9106b093310acf4c3911baa61916cff52ab8 (diff)
downloaddexon-36ec42e50c9367e86621ff58b8e3d835abbbad79.tar
dexon-36ec42e50c9367e86621ff58b8e3d835abbbad79.tar.gz
dexon-36ec42e50c9367e86621ff58b8e3d835abbbad79.tar.bz2
dexon-36ec42e50c9367e86621ff58b8e3d835abbbad79.tar.lz
dexon-36ec42e50c9367e86621ff58b8e3d835abbbad79.tar.xz
dexon-36ec42e50c9367e86621ff58b8e3d835abbbad79.tar.zst
dexon-36ec42e50c9367e86621ff58b8e3d835abbbad79.zip
Merge branch 'frontier/natspec' of https://github.com/ethersphere/go-ethereum into ethersphere-frontier/natspec
Diffstat (limited to 'xeth/frontend.go')
-rw-r--r--xeth/frontend.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/xeth/frontend.go b/xeth/frontend.go
index 8deb5c98c..fe1d57c50 100644
--- a/xeth/frontend.go
+++ b/xeth/frontend.go
@@ -1,9 +1,5 @@
package xeth
-import (
- "github.com/ethereum/go-ethereum/core/types"
-)
-
// Frontend should be implemented by users of XEth. Its methods are
// called whenever XEth makes a decision that requires user input.
type Frontend interface {
@@ -21,12 +17,12 @@ type Frontend interface {
//
// ConfirmTransaction is not used for Call transactions
// because they cannot change any state.
- ConfirmTransaction(tx *types.Transaction) bool
+ ConfirmTransaction(tx string) bool
}
// dummyFrontend is a non-interactive frontend that allows all
// transactions but cannot not unlock any keys.
type dummyFrontend struct{}
-func (dummyFrontend) UnlockAccount([]byte) bool { return false }
-func (dummyFrontend) ConfirmTransaction(*types.Transaction) bool { return true }
+func (dummyFrontend) UnlockAccount([]byte) bool { return false }
+func (dummyFrontend) ConfirmTransaction(string) bool { return true }