Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/state_prefetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (p *statePrefetcher) Prefetch(transactions types.Transactions, header *type

// Iterate over and process the individual transactions
for i, tx := range transactions {
stateCpy := statedb.CopyDoPrefetch() // closure
stateCpy := statedb.CopyDoPrefetch()
workers.Go(func() error {
// If block precaching was interrupted, abort
if interrupt != nil && interrupt.Load() {
Expand Down
3 changes: 1 addition & 2 deletions miner/bid_simulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -771,8 +771,7 @@ func (b *bidSimulator) simBid(interruptCh chan int32, bidRuntime *BidRuntime) {
if len(bidRuntime.bid.Txs) > prefetchTxNumber {
var interrupt atomic.Bool
defer interrupt.Store(true) // terminate the prefetch at the end
// TODO(Nathan): use ReadersWithCacheStats to accelerate
throwaway := bidRuntime.env.state.CopyDoPrefetch()
throwaway := bidRuntime.env.state.StateForPrefetch()
// Disable tracing for prefetcher executions.
vmCfg := *b.chain.GetVMConfig()
vmCfg.Tracer = nil
Expand Down