hardcore debugging...

This commit is contained in:
Péter Szilágyi 2015-10-13 12:39:55 +03:00
parent 88e1df0a48
commit 0cd24e07b8

View file

@ -32,17 +32,10 @@ import (
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/logger/glog"
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/trie"
)
func init() {
glog.SetV(6)
glog.SetToStderr(true)
// Retest #1
}
var (
testdb, _ = ethdb.NewMemDatabase()
testKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
@ -50,6 +43,13 @@ var (
genesis = core.GenesisBlockForTesting(testdb, testAddress, big.NewInt(1000000000))
)
func init() {
go func() {
time.Sleep(3 * time.Minute)
panic("wtf")
}()
}
// makeChain creates a chain of n blocks starting at and including parent.
// the returned hash chain is ordered head->parent. In addition, every 3rd block
// contains a transaction and every 5th an uncle to allow testing correct block