aboutsummaryrefslogtreecommitdiffstats
path: root/eth/gasprice.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-10-05 22:14:01 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-10-05 22:14:01 +0800
commit5b34fa538e54320778314081df97da561f7c6314 (patch)
treedca15c858b8ac4cd79ed7b7733260ab3021bbd0c /eth/gasprice.go
parent8b865fa9bf75e728d5d76f5a1460e0c37d8b5f9e (diff)
parent7c7692933c21b77328a94eed714f66c276776197 (diff)
downloaddexon-5b34fa538e54320778314081df97da561f7c6314.tar
dexon-5b34fa538e54320778314081df97da561f7c6314.tar.gz
dexon-5b34fa538e54320778314081df97da561f7c6314.tar.bz2
dexon-5b34fa538e54320778314081df97da561f7c6314.tar.lz
dexon-5b34fa538e54320778314081df97da561f7c6314.tar.xz
dexon-5b34fa538e54320778314081df97da561f7c6314.tar.zst
dexon-5b34fa538e54320778314081df97da561f7c6314.zip
Merge pull request #1756 from obscuren/core-refactor
core, core/vm: refactor
Diffstat (limited to 'eth/gasprice.go')
-rw-r--r--eth/gasprice.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/gasprice.go b/eth/gasprice.go
index 3caad73c6..c08b96129 100644
--- a/eth/gasprice.go
+++ b/eth/gasprice.go
@@ -36,7 +36,7 @@ type blockPriceInfo struct {
type GasPriceOracle struct {
eth *Ethereum
- chain *core.ChainManager
+ chain *core.BlockChain
events event.Subscription
blocks map[uint64]*blockPriceInfo
firstProcessed, lastProcessed uint64
@@ -48,7 +48,7 @@ func NewGasPriceOracle(eth *Ethereum) (self *GasPriceOracle) {
self = &GasPriceOracle{}
self.blocks = make(map[uint64]*blockPriceInfo)
self.eth = eth
- self.chain = eth.chainManager
+ self.chain = eth.blockchain
self.events = eth.EventMux().Subscribe(
core.ChainEvent{},
core.ChainSplitEvent{},