]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/chunked.go
MTH
[nncp.git] / src / chunked.go
index 573bb9a8f0f636894ab7d03cb171cf81df3cfce8..29f2228efceb6e3263ed2b48402754e2d6c40295 100644 (file)
@@ -18,7 +18,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 package nncp
 
 var (
-       MagicNNCPMv1 [8]byte = [8]byte{'N', 'N', 'C', 'P', 'M', 0, 0, 1}
+       MagicNNCPMv2 [8]byte = [8]byte{'N', 'N', 'C', 'P', 'M', 0, 0, 2}
 
        ChunkedSuffixMeta = ".nncp.meta"
        ChunkedSuffixPart = ".nncp.chunk"
@@ -28,5 +28,5 @@ type ChunkedMeta struct {
        Magic     [8]byte
        FileSize  uint64
        ChunkSize uint64
-       Checksums [][32]byte
+       Checksums [][MTHSize]byte
 }