diff options
Diffstat (limited to 'ethpipe')
-rw-r--r-- | ethpipe/js_pipe.go | 6 | ||||
-rw-r--r-- | ethpipe/pipe.go | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/ethpipe/js_pipe.go b/ethpipe/js_pipe.go index 24a553dad..873373b75 100644 --- a/ethpipe/js_pipe.go +++ b/ethpipe/js_pipe.go @@ -21,17 +21,17 @@ func NewJSPipe(eth ethchain.EthManager) *JSPipe { func (self *JSPipe) BlockByHash(strHash string) *JSBlock { hash := ethutil.Hex2Bytes(strHash) - block := self.obj.BlockChain().GetBlock(hash) + block := self.obj.ChainManager().GetBlock(hash) return NewJSBlock(block) } func (self *JSPipe) BlockByNumber(num int32) *JSBlock { if num == -1 { - return NewJSBlock(self.obj.BlockChain().CurrentBlock) + return NewJSBlock(self.obj.ChainManager().CurrentBlock) } - return NewJSBlock(self.obj.BlockChain().GetBlockByNumber(uint64(num))) + return NewJSBlock(self.obj.ChainManager().GetBlockByNumber(uint64(num))) } func (self *JSPipe) Block(v interface{}) *JSBlock { diff --git a/ethpipe/pipe.go b/ethpipe/pipe.go index 5e5ff7000..50507143c 100644 --- a/ethpipe/pipe.go +++ b/ethpipe/pipe.go @@ -21,7 +21,7 @@ type VmVars struct { type Pipe struct { obj ethchain.EthManager stateManager *ethchain.StateManager - blockChain *ethchain.BlockChain + blockChain *ethchain.ChainManager world *World Vm VmVars @@ -31,7 +31,7 @@ func New(obj ethchain.EthManager) *Pipe { pipe := &Pipe{ obj: obj, stateManager: obj.StateManager(), - blockChain: obj.BlockChain(), + blockChain: obj.ChainManager(), } pipe.world = NewWorld(pipe) |