aboutsummaryrefslogtreecommitdiffstats
path: root/ethpipe
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-20 17:53:11 +0800
committerobscuren <geffobscura@gmail.com>2014-10-20 17:53:11 +0800
commit097ba56df59293f9225a8ecdc9e1c43a5ad891bb (patch)
tree2aba3bb53afd2ff8738c2e71526454917707b7ed /ethpipe
parent33ca8d7b8f3d4db4b01890e39fa806766fbe8f84 (diff)
downloadgo-tangerine-097ba56df59293f9225a8ecdc9e1c43a5ad891bb.tar.gz
go-tangerine-097ba56df59293f9225a8ecdc9e1c43a5ad891bb.tar.zst
go-tangerine-097ba56df59293f9225a8ecdc9e1c43a5ad891bb.zip
Renamed block_chain to chain_manager
Diffstat (limited to 'ethpipe')
-rw-r--r--ethpipe/js_pipe.go6
-rw-r--r--ethpipe/pipe.go4
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)