mirror of
https://github.com/corda/corda.git
synced 2025-06-19 15:43:52 +00:00
Fixed TransactionSerializationTests.signWireTX by ensuring the signed transaction corruption always corrupts the signature.
This commit is contained in:
@ -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()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user