Skip to content

Commit

Permalink
modify according to the comments
Browse files Browse the repository at this point in the history
  • Loading branch information
welkin22 committed Nov 25, 2024
1 parent f206e6d commit 6a61b73
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
16 changes: 0 additions & 16 deletions tests/block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 6a61b73

Please sign in to comment.