aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/block.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-11 22:23:38 +0800
committerobscuren <geffobscura@gmail.com>2014-08-11 22:23:38 +0800
commita760ce05b948e89bc564af20599dcf95698ac0eb (patch)
treee9a1f0161521bc895de45e683ba6904a0d4923f9 /ethchain/block.go
parent2e5d28c73f1d97865def3ffe8c7ad0a4819f15f3 (diff)
downloaddexon-a760ce05b948e89bc564af20599dcf95698ac0eb.tar
dexon-a760ce05b948e89bc564af20599dcf95698ac0eb.tar.gz
dexon-a760ce05b948e89bc564af20599dcf95698ac0eb.tar.bz2
dexon-a760ce05b948e89bc564af20599dcf95698ac0eb.tar.lz
dexon-a760ce05b948e89bc564af20599dcf95698ac0eb.tar.xz
dexon-a760ce05b948e89bc564af20599dcf95698ac0eb.tar.zst
dexon-a760ce05b948e89bc564af20599dcf95698ac0eb.zip
Updated chain for filtering
Diffstat (limited to 'ethchain/block.go')
-rw-r--r--ethchain/block.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/ethchain/block.go b/ethchain/block.go
index 5b06fd58d..5765abd51 100644
--- a/ethchain/block.go
+++ b/ethchain/block.go
@@ -142,19 +142,6 @@ func (block *Block) CalcGasLimit(parent *Block) *big.Int {
min := big.NewInt(125000)
return ethutil.BigMax(min, result)
- /*
- base := new(big.Int)
- base2 := new(big.Int)
- parentGL := bc.CurrentBlock.GasLimit
- parentUsed := bc.CurrentBlock.GasUsed
-
- base.Mul(parentGL, big.NewInt(1024-1))
- base2.Mul(parentUsed, big.NewInt(6))
- base2.Div(base2, big.NewInt(5))
- base.Add(base, base2)
- base.Div(base, big.NewInt(1024))
- */
-
}
func (block *Block) BlockInfo() BlockInfo {