diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-20 17:53:11 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-20 17:53:11 +0800 |
commit | 097ba56df59293f9225a8ecdc9e1c43a5ad891bb (patch) | |
tree | 2aba3bb53afd2ff8738c2e71526454917707b7ed /ethpipe/js_pipe.go | |
parent | 33ca8d7b8f3d4db4b01890e39fa806766fbe8f84 (diff) | |
download | go-tangerine-097ba56df59293f9225a8ecdc9e1c43a5ad891bb.tar go-tangerine-097ba56df59293f9225a8ecdc9e1c43a5ad891bb.tar.gz go-tangerine-097ba56df59293f9225a8ecdc9e1c43a5ad891bb.tar.bz2 go-tangerine-097ba56df59293f9225a8ecdc9e1c43a5ad891bb.tar.lz go-tangerine-097ba56df59293f9225a8ecdc9e1c43a5ad891bb.tar.xz go-tangerine-097ba56df59293f9225a8ecdc9e1c43a5ad891bb.tar.zst go-tangerine-097ba56df59293f9225a8ecdc9e1c43a5ad891bb.zip |
Renamed block_chain to chain_manager
Diffstat (limited to 'ethpipe/js_pipe.go')
-rw-r--r-- | ethpipe/js_pipe.go | 6 |
1 files changed, 3 insertions, 3 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 { |