aboutsummaryrefslogtreecommitdiffstats
path: root/xeth/xeth.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-02 19:55:35 +0800
committerobscuren <geffobscura@gmail.com>2015-04-02 19:55:35 +0800
commit55b1c1546b72b24b087cecf18f3e52bad5c758c8 (patch)
treeaa3dc729f7b0c5b6cda999f22e03190eec19aa9c /xeth/xeth.go
parent79828531b1e6a1d5073f45e0e672c54a019de7c0 (diff)
downloaddexon-55b1c1546b72b24b087cecf18f3e52bad5c758c8.tar
dexon-55b1c1546b72b24b087cecf18f3e52bad5c758c8.tar.gz
dexon-55b1c1546b72b24b087cecf18f3e52bad5c758c8.tar.bz2
dexon-55b1c1546b72b24b087cecf18f3e52bad5c758c8.tar.lz
dexon-55b1c1546b72b24b087cecf18f3e52bad5c758c8.tar.xz
dexon-55b1c1546b72b24b087cecf18f3e52bad5c758c8.tar.zst
dexon-55b1c1546b72b24b087cecf18f3e52bad5c758c8.zip
Moved to function
Diffstat (limited to 'xeth/xeth.go')
-rw-r--r--xeth/xeth.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go
index d9a34695a..cb2319865 100644
--- a/xeth/xeth.go
+++ b/xeth/xeth.go
@@ -29,6 +29,9 @@ var (
defaultGas = big.NewInt(90000) //500000
)
+func DefaultGas() *big.Int { return new(big.Int).Set(defaultGas) }
+func DefaultGasPrice() *big.Int { return new(big.Int).Set(defaultGasPrice) }
+
type XEth struct {
backend *eth.Ethereum
frontend Frontend
@@ -130,9 +133,6 @@ func cTopics(t [][]string) [][]common.Hash {
return topics
}
-func (self *XEth) DefaultGas() *big.Int { return new(big.Int).Set(defaultGas) }
-func (self *XEth) DefaultGasPrice() *big.Int { return new(big.Int).Set(defaultGasPrice) }
-
func (self *XEth) RemoteMining() *miner.RemoteAgent { return self.agent }
func (self *XEth) AtStateNum(num int64) *XEth {