You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: provecommit_stage.go
    path of file: ./repos/lotus/cmd/lotus-sim/simulation/stages
    
    the code of the file until where you have to start completion: package stages

import (
	"context"
	"time"

	"github.com/filecoin-project/go-address"
	"github.com/filecoin-project/go-bitfield"
	"github.com/filecoin-project/go-state-types/abi"
	"github.com/filecoin-project/go-state-types/builtin"
	minertypes "github.com/filecoin-project/go-state-types/builtin/v9/miner"
	"githu
    
func (stage *ProveCommitStage) load(ctx context.Context, bb *blockbuilder.BlockBuilder) error {
	stage.initialized = false // in case something failes while we're doing this.
	stage.commitQueue = commitQueue{offset: bb.Height()}
	powerState, err := loadPower(bb.ActorStore(), bb.ParentStateTree())
	if err != nil {
		return err
	}

	err = powerState.ForEachClaim(func(minerAddr address.Address, claim power.Claim) error {
		// TODO: If we want to finish pre-commits for "new" miners, we'll need to change
		// this.
		if claim.RawBytePower.IsZero() {
			return nil
		}
		return stage.loadMiner(ctx, bb, minerAddr)
	})
	if err != nil {
		return err
	}

	stage.initialized = true
	return nil
}