Revision 4b58c004 trunk/Pithos.Core/Agents/Downloader.cs
b/trunk/Pithos.Core/Agents/Downloader.cs | ||
---|---|---|
168 | 168 |
//Calculate the file's treehash |
169 | 169 |
|
170 | 170 |
//TODO: Should pass cancellation token here |
171 |
var treeHash = localTreeHash ?? await Signature.CalculateTreeHashAsync(localPath, (int)serverHash.BlockSize, serverHash.BlockHash, 2);
|
|
171 |
var treeHash = localTreeHash ?? Signature.CalculateTreeHashAsync(localPath, (int)serverHash.BlockSize, serverHash.BlockHash, 2); |
|
172 | 172 |
|
173 | 173 |
//And compare it with the server's hash |
174 | 174 |
var upHashes = serverHash.GetHashesAsStrings(); |
Also available in: Unified diff