Skip to content

Commit

Permalink
Merge pull request #6413 from filecoin-project/chore/fix-logging-doub…
Browse files Browse the repository at this point in the history
…le-cid-encoding

Fix logging of stringified CIDs double-encoded in hex
  • Loading branch information
magik6k authored Jun 8, 2021
2 parents 631fdaa + 29d7561 commit d9ef2f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chain/vm/syscalls.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func (ss *syscallShim) VerifySeal(info proof5.SealVerifyInfo) error {
proof := info.Proof
seed := []byte(info.InteractiveRandomness)

log.Debugf("Verif r:%x; d:%x; m:%s; t:%x; s:%x; N:%d; p:%x", info.SealedCID, info.UnsealedCID, miner, ticket, seed, info.SectorID.Number, proof)
log.Debugf("Verif r:%s; d:%s; m:%s; t:%x; s:%x; N:%d; p:%x", info.SealedCID, info.UnsealedCID, miner, ticket, seed, info.SectorID.Number, proof)

//func(ctx context.Context, maddr address.Address, ssize abi.SectorSize, commD, commR, ticket, proof, seed []byte, sectorID abi.SectorNumber)
ok, err := ss.verifier.VerifySeal(info)
Expand Down
4 changes: 2 additions & 2 deletions cli/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ var StateSectorsCmd = &cli.Command{
}

for _, s := range sectors {
fmt.Printf("%d: %x\n", s.SectorNumber, s.SealedCID)
fmt.Printf("%d: %s\n", s.SectorNumber, s.SealedCID)
}

return nil
Expand Down Expand Up @@ -385,7 +385,7 @@ var StateActiveSectorsCmd = &cli.Command{
}

for _, s := range sectors {
fmt.Printf("%d: %x\n", s.SectorNumber, s.SealedCID)
fmt.Printf("%d: %s\n", s.SectorNumber, s.SealedCID)
}

return nil
Expand Down

0 comments on commit d9ef2f3

Please sign in to comment.