Skip to content

Commit

Permalink
Fix mismatched method names in comments (#11913)
Browse files Browse the repository at this point in the history
Signed-off-by: forcedebug <[email protected]>
  • Loading branch information
forcedebug authored Apr 23, 2024
1 parent 95b6483 commit 772f6a3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/lotus-sim/simulation/mock/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func MockWindowPoStProof(proofType abi.RegisteredPoStProof, minerAddr address.Ad
return proof, nil
}

// makeCommR generates a "fake" but valid CommR for a sector. It is unique for the given sector/miner.
// MockCommR generates a "fake" but valid CommR for a sector. It is unique for the given sector/miner.
func MockCommR(minerAddr address.Address, sno abi.SectorNumber) cid.Cid {
return tutils.MakeCID(fmt.Sprintf("%s:%d", minerAddr, sno), &miner5.SealedCIDPrefix)
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/lotus-sim/simulation/stages/commit_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (q *commitQueue) advanceEpoch(epoch abi.ChainEpoch) {
})
}

// enquueProveCommit enqueues prove-commit for the given pre-commit for the given miner.
// enqueueProveCommit enqueues prove-commit for the given pre-commit for the given miner.
func (q *commitQueue) enqueueProveCommit(addr address.Address, preCommitEpoch abi.ChainEpoch, info minertypes.SectorPreCommitInfo) error {
// Compute the epoch at which we can start trying to commit.
preCommitDelay := policy.GetPreCommitChallengeDelay()
Expand Down
2 changes: 1 addition & 1 deletion cmd/lotus-sim/simulation/stages/precommit_stage.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (*PreCommitStage) Name() string {
return "pre-commit"
}

// packPreCommits packs pre-commit messages until the block is full.
// PackMessages packs pre-commit messages until the block is full.
func (stage *PreCommitStage) PackMessages(ctx context.Context, bb *blockbuilder.BlockBuilder) (_err error) {
if !stage.initialized {
if err := stage.load(ctx, bb); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion itests/eth_hash_lookup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func TestTransactionHashLookupSecpFilecoinMessage(t *testing.T) {
require.Equal(t, ethtypes.EthBytes(expected), chainTx.Input)
}

// TestTransactionHashLookupSecpFilecoinMessage tests to see if lotus can find a Secp Filecoin Message using the transaction hash
// TestTransactionHashLookupNonexistentMessage tests to see if lotus can find a Secp Filecoin Message using the transaction hash
func TestTransactionHashLookupNonexistentMessage(t *testing.T) {
kit.QuietMiningLogs()

Expand Down

0 comments on commit 772f6a3

Please sign in to comment.