Fixed TransactionSerializationTests.signWireTX by ensuring the signed transaction corruption always corrupts the signature.

This commit is contained in:
Clinton Alexander 2017-01-11 10:36:19 +00:00
parent 172be1301d
commit e83c6e6b9d

View File

@ -69,7 +69,7 @@ class TransactionSerializationTests {
signedTX.verifySignatures() signedTX.verifySignatures()
// Corrupt the data and ensure the signature catches the problem. // Corrupt the data and ensure the signature catches the problem.
signedTX.id.bytes[5] = 0 signedTX.id.bytes[5] = signedTX.id.bytes[5].inc()
assertFailsWith(SignatureException::class) { assertFailsWith(SignatureException::class) {
signedTX.verifySignatures() signedTX.verifySignatures()
} }