fix verifier condition.
This commit is contained in:
@@ -36,7 +36,7 @@ func (seq Sequence) Verify(bitcoin Bitcoin, initial []byte) error {
|
|||||||
merkleRoot := blockHeader.MerkleRoot[:]
|
merkleRoot := blockHeader.MerkleRoot[:]
|
||||||
|
|
||||||
result := seq.Compute(initial)
|
result := seq.Compute(initial)
|
||||||
if slices.Equal(result, merkleRoot) {
|
if !slices.Equal(result, merkleRoot) {
|
||||||
return fmt.Errorf("sequence result '%x' doesn't match the bitcoin merkle root for block %d: %x",
|
return fmt.Errorf("sequence result '%x' doesn't match the bitcoin merkle root for block %d: %x",
|
||||||
result, att.BitcoinBlockHeight, merkleRoot)
|
result, att.BitcoinBlockHeight, merkleRoot)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user