From 42f4aa21b97b9d93ae6560e2c2bd338f033109bd Mon Sep 17 00:00:00 2001 From: Marcin Czenko Date: Fri, 14 Mar 2025 16:27:12 +0100 Subject: [PATCH] sets the default piece length to be 256KiB --- codex/codextypes.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codex/codextypes.nim b/codex/codextypes.nim index 87c86b51..da9cfce2 100644 --- a/codex/codextypes.nim +++ b/codex/codextypes.nim @@ -25,7 +25,8 @@ export tables const # BitTorrent specific - DefaultPieceLength* = NBytes 1024 * 64 + # DefaultPieceLength* = NBytes 1024 * 1024 * 4 # 4MiB + DefaultPieceLength* = NBytes 1024 * 256 # 256KiB BitTorrentBlockSize* = NBytes 1024 * 16 # Size of blocks for storage / network exchange,