Fix mismatched method names in comments (#11913)

Signed-off-by: forcedebug <forcedebug@outlook.com>
This commit is contained in:
forcedebug 2024-04-23 08:56:43 +08:00 committed by GitHub
parent 95b6483ad9
commit 772f6a38c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -149,7 +149,7 @@ func MockWindowPoStProof(proofType abi.RegisteredPoStProof, minerAddr address.Ad
return proof, nil 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 { func MockCommR(minerAddr address.Address, sno abi.SectorNumber) cid.Cid {
return tutils.MakeCID(fmt.Sprintf("%s:%d", minerAddr, sno), &miner5.SealedCIDPrefix) return tutils.MakeCID(fmt.Sprintf("%s:%d", minerAddr, sno), &miner5.SealedCIDPrefix)
} }

View File

@ -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 { 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. // Compute the epoch at which we can start trying to commit.
preCommitDelay := policy.GetPreCommitChallengeDelay() preCommitDelay := policy.GetPreCommitChallengeDelay()

View File

@ -54,7 +54,7 @@ func (*PreCommitStage) Name() string {
return "pre-commit" 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) { func (stage *PreCommitStage) PackMessages(ctx context.Context, bb *blockbuilder.BlockBuilder) (_err error) {
if !stage.initialized { if !stage.initialized {
if err := stage.load(ctx, bb); err != nil { if err := stage.load(ctx, bb); err != nil {

View File

@ -296,7 +296,7 @@ func TestTransactionHashLookupSecpFilecoinMessage(t *testing.T) {
require.Equal(t, ethtypes.EthBytes(expected), chainTx.Input) 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) { func TestTransactionHashLookupNonexistentMessage(t *testing.T) {
kit.QuietMiningLogs() kit.QuietMiningLogs()