diff options
author | obscuren <geffobscura@gmail.com> | 2015-01-02 18:16:42 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-01-02 18:16:42 +0800 |
commit | 1c7e8e909321acf9f5ed3ed2bca37acd577ddf9c (patch) | |
tree | 98c350c17046112b8e3fc366f8f83dde15cb632e /core | |
parent | b619b244c7c4c36215d805beac3a954b7966c9a4 (diff) | |
download | dexon-1c7e8e909321acf9f5ed3ed2bca37acd577ddf9c.tar dexon-1c7e8e909321acf9f5ed3ed2bca37acd577ddf9c.tar.gz dexon-1c7e8e909321acf9f5ed3ed2bca37acd577ddf9c.tar.bz2 dexon-1c7e8e909321acf9f5ed3ed2bca37acd577ddf9c.tar.lz dexon-1c7e8e909321acf9f5ed3ed2bca37acd577ddf9c.tar.xz dexon-1c7e8e909321acf9f5ed3ed2bca37acd577ddf9c.tar.zst dexon-1c7e8e909321acf9f5ed3ed2bca37acd577ddf9c.zip |
Set TD to block once processed
Diffstat (limited to 'core')
-rw-r--r-- | core/chain_manager.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go index 485c195d5..780242f56 100644 --- a/core/chain_manager.go +++ b/core/chain_manager.go @@ -351,6 +351,7 @@ func (self *ChainManager) InsertChain(chain types.Blocks) error { chainlogger.Infoln(err) return err } + block.Td = td self.mu.Lock() { |