aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_manager.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-06-16 00:09:44 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-06-16 00:09:44 +0800
commitcc0b451119478ba4a005ec8840573252636f45dc (patch)
treef1e9882b7dea20eab9cd30850224a07bb312f067 /core/chain_manager.go
parentf2a2164184a9397d8e6100c370595ccdcd00ca0b (diff)
parent2628103f1df35ad6a130f2f41e73c7703bf61886 (diff)
downloadgo-tangerine-cc0b451119478ba4a005ec8840573252636f45dc.tar.gz
go-tangerine-cc0b451119478ba4a005ec8840573252636f45dc.tar.zst
go-tangerine-cc0b451119478ba4a005ec8840573252636f45dc.zip
Merge pull request #1260 from obscuren/tx-drop-low-tx
core: drop low gas tx
Diffstat (limited to 'core/chain_manager.go')
-rw-r--r--core/chain_manager.go12
1 files changed, 2 insertions, 10 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go
index e56d82cce..c3b7273c2 100644
--- a/core/chain_manager.go
+++ b/core/chain_manager.go
@@ -5,7 +5,6 @@ import (
"fmt"
"io"
"math/big"
- "os"
"runtime"
"sync"
"sync/atomic"
@@ -235,15 +234,8 @@ func (bc *ChainManager) setLastState() {
if block != nil {
bc.currentBlock = block
bc.lastBlockHash = block.Hash()
- } else { // TODO CLEAN THIS UP TMP CODE
- block = bc.GetBlockByNumber(400000)
- if block == nil {
- fmt.Println("Fatal. LastBlock not found. Report this issue")
- os.Exit(1)
- }
- bc.currentBlock = block
- bc.lastBlockHash = block.Hash()
- bc.insert(block)
+ } else {
+ glog.Fatalf("Fatal. LastBlock not found. Please run removedb and resync")
}
} else {
bc.Reset()