markAsDownloading

fun markAsDownloading(block: PieceBlock, peerId: Any? = null): Boolean

Mark block as requested from peerId. Mirrors mark_as_downloading. Returns false (without changing state) if the block is already writing or finished. If the block was already requested from another peer, this just bumps its peer count (end-game style). Lazily creates the piece's DownloadingPiece the first time a block of an open piece is touched.