Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

send MIRROR_FAILED instead of FAILED_INTEGRITY #751

Merged
merged 1 commit into from
Jan 2, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/network/protocol.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ Protocol.prototype.handleMirror = function(params, callback) {
function _onFinish() {
if (item.hash !== utils.rmd160(hasher256.digest())) {
self._logger.warn('mirror read integrity check failed, destroying');
report.end(ExchangeReport.FAILURE, 'FAILED_INTEGRITY');
report.end(ExchangeReport.FAILURE, 'MIRROR_FAILED');
item.shard.destroy(utils.warnOnError(self._logger));
} else {
self._logger.info('successfully mirrored shard hash %s size %s',
Expand Down