diff options
author | obscuren <geffobscura@gmail.com> | 2014-12-18 20:17:24 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-12-18 20:17:24 +0800 |
commit | 2d09e67713757e2a80eb614562c97f962af36cf7 (patch) | |
tree | 896f70825f9048ec569ad78ae77018435210b9e9 /core | |
parent | 49e0267fe76cfd13eaf3e5e26caa637b93dbdd29 (diff) | |
download | go-tangerine-2d09e67713757e2a80eb614562c97f962af36cf7.tar.gz go-tangerine-2d09e67713757e2a80eb614562c97f962af36cf7.tar.zst go-tangerine-2d09e67713757e2a80eb614562c97f962af36cf7.zip |
Updated to new methods
Diffstat (limited to 'core')
-rw-r--r-- | core/chain_manager.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go index c81552b5d..794ae0011 100644 --- a/core/chain_manager.go +++ b/core/chain_manager.go @@ -74,6 +74,13 @@ func (self *ChainManager) LastBlockNumber() uint64 { return self.lastBlockNumber } +func (self *ChainManager) LastBlockHash() []byte { + self.mu.RLock() + defer self.mu.RUnlock() + + return self.lastBlockHash +} + func (self *ChainManager) CurrentBlock() *types.Block { self.mu.RLock() defer self.mu.RUnlock() |