aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_manager.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-06 21:02:47 +0800
committerobscuren <geffobscura@gmail.com>2015-01-06 21:02:47 +0800
commit25e6c4eff8364770cfd2908db9c54a012b9e4ec4 (patch)
tree6e8284b8510b7f1deb1b96eb4f14c6a3283a7e25 /core/chain_manager.go
parenta76b7dadaee6eddf64cba8ad8dd6ce71c785a7ee (diff)
downloadgo-tangerine-25e6c4eff8364770cfd2908db9c54a012b9e4ec4.tar.gz
go-tangerine-25e6c4eff8364770cfd2908db9c54a012b9e4ec4.tar.zst
go-tangerine-25e6c4eff8364770cfd2908db9c54a012b9e4ec4.zip
Adjusted difficulty and skip get tx messages
Diffstat (limited to 'core/chain_manager.go')
-rw-r--r--core/chain_manager.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go
index 82b17cd93..e73ea6378 100644
--- a/core/chain_manager.go
+++ b/core/chain_manager.go
@@ -25,7 +25,7 @@ func CalcDifficulty(block, parent *types.Block) *big.Int {
bh, ph := block.Header(), parent.Header()
adjust := new(big.Int).Rsh(ph.Difficulty, 10)
- if bh.Time >= ph.Time+5 {
+ if bh.Time >= ph.Time+13 {
diff.Sub(ph.Difficulty, adjust)
} else {
diff.Add(ph.Difficulty, adjust)