Fix mismatched method names in comments (#11913)
Signed-off-by: forcedebug <forcedebug@outlook.com>
This commit is contained in:
parent
95b6483ad9
commit
772f6a38c5
@ -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)
|
||||||
}
|
}
|
||||||
|
@ -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()
|
||||||
|
@ -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 {
|
||||||
|
@ -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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user