aboutsummaryrefslogtreecommitdiffstats
path: root/consensus
diff options
context:
space:
mode:
authorsunxiaojun2014 <sunxiaojun-xy@360.cn>2017-12-31 19:38:39 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-12-31 19:38:39 +0800
commit908faf8cd715c873e4b5fdbb7af8d4f496702d84 (patch)
tree5da488774b499ba6e1f034e1a79720bf7baffbc4 /consensus
parentb9731767af634ff90ae9b387bd035d9bc4b128e3 (diff)
downloadgo-tangerine-908faf8cd715c873e4b5fdbb7af8d4f496702d84.tar
go-tangerine-908faf8cd715c873e4b5fdbb7af8d4f496702d84.tar.gz
go-tangerine-908faf8cd715c873e4b5fdbb7af8d4f496702d84.tar.bz2
go-tangerine-908faf8cd715c873e4b5fdbb7af8d4f496702d84.tar.lz
go-tangerine-908faf8cd715c873e4b5fdbb7af8d4f496702d84.tar.xz
go-tangerine-908faf8cd715c873e4b5fdbb7af8d4f496702d84.tar.zst
go-tangerine-908faf8cd715c873e4b5fdbb7af8d4f496702d84.zip
consensus/ethash: fix overdue link (#15786)
Diffstat (limited to 'consensus')
-rw-r--r--consensus/ethash/consensus.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/consensus/ethash/consensus.go b/consensus/ethash/consensus.go
index 5fe67c851..0a2f1520e 100644
--- a/consensus/ethash/consensus.go
+++ b/consensus/ethash/consensus.go
@@ -381,7 +381,7 @@ func calcDifficultyByzantium(time uint64, parent *types.Header) *big.Int {
// the difficulty that a new block should have when created at time given the
// parent block's time and difficulty. The calculation uses the Homestead rules.
func calcDifficultyHomestead(time uint64, parent *types.Header) *big.Int {
- // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2.mediawiki
+ // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2.md
// algorithm:
// diff = (parent_diff +
// (parent_diff / 2048 * max(1 - (block_timestamp - parent_timestamp) // 10, -99))