diff --git a/actor/builtin/miner/miner.go b/actor/builtin/miner/miner.go index a0347f85a4..4c23705c28 100644 --- a/actor/builtin/miner/miner.go +++ b/actor/builtin/miner/miner.go @@ -6,6 +6,7 @@ import ( "github.com/filecoin-project/go-sectorbuilder" "github.com/ipfs/go-cid" cbor "github.com/ipfs/go-ipld-cbor" + logging "github.com/ipfs/go-log" "github.com/libp2p/go-libp2p-core/peer" xerrors "github.com/pkg/errors" @@ -19,6 +20,8 @@ import ( "github.com/filecoin-project/go-filecoin/vm/errors" ) +var log = logging.Logger("miner-actor") + func init() { cbor.RegisterCborType(State{}) cbor.RegisterCborType(Ask{}) @@ -926,6 +929,7 @@ func (ma *Actor) SubmitPoSt(ctx exec.VMContext, poStProof types.PoStProof, fault if err != nil { return nil, errors.RevertErrorWrap(err, "failed to sample chain for challenge seed") } + log.Infof("Verifying post for addr %s -- end: %s -- seed: %x \n", ctx.Message().To.String(), state.ProvingPeriodEnd.String(), seed) var sectorInfos []go_sectorbuilder.SectorInfo for _, id := range state.ProvingSet.Values() { diff --git a/protocol/storage/prover.go b/protocol/storage/prover.go index 063afd7d61..5c914c4afa 100644 --- a/protocol/storage/prover.go +++ b/protocol/storage/prover.go @@ -4,6 +4,7 @@ import ( "context" "github.com/filecoin-project/go-sectorbuilder" + logging "github.com/ipfs/go-log" "github.com/pkg/errors" "github.com/filecoin-project/go-filecoin/actor/builtin/miner" @@ -11,6 +12,8 @@ import ( "github.com/filecoin-project/go-filecoin/types" ) +var logProver = logging.Logger("/fil/storage/prover") + const ( // Maximum number of rounds delay to allow for when submitting a PoSt for computing any // fee necessary due to late submission. The miner expects the PoSt message to be mined @@ -93,6 +96,8 @@ func (p *Prover) CalculatePoSt(ctx context.Context, start, end *types.BlockHeigh } sectorInfos[i] = info } + logProver.Infof("Prover calculating post for addr %s -- start: %s -- end: %s -- seed: %x \n", p.actorAddress.String(), start.String(), end.String(), seed) + proof, err := p.calculator.CalculatePoSt(ctx, go_sectorbuilder.NewSortedSectorInfo(sectorInfos...), seed) if err != nil { return nil, errors.Wrap(err, "failed to calculate PoSt")