aboutsummaryrefslogtreecommitdiffstats
path: root/chain
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-11-05 01:18:57 +0800
committerobscuren <geffobscura@gmail.com>2014-11-05 01:18:57 +0800
commit1b1fa049fa483b3996d3582ad247638045657282 (patch)
tree3a43f6baa5e990410c60df46fcfe5cbcb2e7c894 /chain
parent8cfbf1836d68c49242703e3f59e4d0a06754c02b (diff)
downloadgo-tangerine-1b1fa049fa483b3996d3582ad247638045657282.tar
go-tangerine-1b1fa049fa483b3996d3582ad247638045657282.tar.gz
go-tangerine-1b1fa049fa483b3996d3582ad247638045657282.tar.bz2
go-tangerine-1b1fa049fa483b3996d3582ad247638045657282.tar.lz
go-tangerine-1b1fa049fa483b3996d3582ad247638045657282.tar.xz
go-tangerine-1b1fa049fa483b3996d3582ad247638045657282.tar.zst
go-tangerine-1b1fa049fa483b3996d3582ad247638045657282.zip
Fixed VM and added static analysis for EVM jumps
Diffstat (limited to 'chain')
-rw-r--r--chain/chain_manager.go1
-rw-r--r--chain/error.go2
2 files changed, 1 insertions, 2 deletions
diff --git a/chain/chain_manager.go b/chain/chain_manager.go
index dd965e85b..31f5f7543 100644
--- a/chain/chain_manager.go
+++ b/chain/chain_manager.go
@@ -348,7 +348,6 @@ func (self *ChainManager) TestChain(chain *BlockChain) (td *big.Int, err error)
return
}
l.td = td
- i++
}
if td.Cmp(self.TD) <= 0 {
diff --git a/chain/error.go b/chain/error.go
index 71bda8e7b..540eda95a 100644
--- a/chain/error.go
+++ b/chain/error.go
@@ -123,6 +123,6 @@ func (self *TDError) Error() string {
return fmt.Sprintf("incoming chain has a lower or equal TD (%v <= %v)", self.a, self.b)
}
func IsTDError(e error) bool {
- _, ok := err.(*TDError)
+ _, ok := e.(*TDError)
return ok
}