mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 11:31:08 +03:00
all duplicates (incorrectly) to maintain compatibility with testnet2 (#1103)
This commit is contained in:
parent
982dae99a5
commit
601c9e769e
1 changed files with 8 additions and 1 deletions
|
@ -513,7 +513,14 @@ impl<'a> Extension<'a> {
|
||||||
// processing a new fork so we may get a position on the old
|
// processing a new fork so we may get a position on the old
|
||||||
// fork that exists but matches a different node
|
// fork that exists but matches a different node
|
||||||
// filtering that case out
|
// filtering that case out
|
||||||
if hash == OutputIdentifier::from_output(out).hash_with_index(pos - 1) {
|
//
|
||||||
|
// TODO - the following call to hash() is *INCORRECT*
|
||||||
|
// TODO - we should be calling hash_with_index(pos - 1)
|
||||||
|
// TODO - but we cannot safely make this change in testnet2
|
||||||
|
// TODO - with this incorrect behavior we never get a match, so duplicates are
|
||||||
|
// allowed
|
||||||
|
//
|
||||||
|
if hash == OutputIdentifier::from_output(out).hash() {
|
||||||
return Err(Error::DuplicateCommitment(commit));
|
return Err(Error::DuplicateCommitment(commit));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue