diff --git a/miner/worker.go b/miner/worker.go index bfd60f253..5cf742bcd 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -1076,7 +1076,6 @@ func (w *worker) generateDAGTx(statedb *state.StateDB, signer types.Signer, txIn return nil, fmt.Errorf("current signer is nil") } - //privateKey, err := crypto.HexToECDSA(privateKeyHex) sender := w.config.ParallelTxDAGSenderPriv if sender == nil { return nil, fmt.Errorf("missing sender private key") diff --git a/tests/block_test.go b/tests/block_test.go index a650ca07f..045751082 100644 --- a/tests/block_test.go +++ b/tests/block_test.go @@ -74,7 +74,6 @@ func TestExecutionSpecBlocktests(t *testing.T) { } func TestBlockchainWithTxDAG(t *testing.T) { - //log.SetDefault(log.NewLogger(log.NewTerminalHandlerWithLevel(os.Stderr, log.LevelDebug, true))) bt := new(testMatcher) // General state tests are 'exported' as blockchain tests, but we can run them natively. // For speedier CI-runs, the line below can be uncommented, so those are skipped. @@ -108,21 +107,6 @@ func TestBlockchainWithTxDAG(t *testing.T) { return } }) - - //bt := new(testMatcher) - //path := filepath.Join(blockTestDir, "ValidBlocks", "bcStatetests", "refundReset.json") - //_, name := filepath.Split(path) - //t.Run(name, func(t *testing.T) { - // bt.runTestFile(t, path, name, func(t *testing.T, name string, test *BlockTest) { - // if runtime.GOARCH == "386" && runtime.GOOS == "windows" && rand.Int63()%2 == 0 { - // t.Skip("test (randomly) skipped on 32-bit windows") - // } - // if err := bt.checkFailure(t, test.Run(true, rawdb.PathScheme, nil, true, nil)); err != nil { - // t.Errorf("test in path mode with snapshotter failed: %v", err) - // return - // } - // }) - //}) } func execBlockTest(t *testing.T, bt *testMatcher, test *BlockTest) {