Updated to new methods

This commit is contained in:
obscuren
2014-12-18 13:17:24 +01:00
parent 49e0267fe7
commit 2d09e67713
8 changed files with 16 additions and 9 deletions

View File

@ -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()