isPieceVerified

fun isPieceVerified(pieceIndex: Int): Boolean

True if every block belonging to pieceIndex has been verified against the root. A piece is considered verified once all of its (real) constituent block hashes are verified. Mirrors merkle_tree::blocks_verified collapsed to a single piece. For single-block pieces this is just isBlockVerified.

Parameters

pieceIndex

the piece, in [0, numPieces()).