mirror of
https://github.com/corda/corda.git
synced 2025-06-18 23:28:21 +00:00
Never send transactions to the Notary that aren't signed by all parties. Toughen up to use validating Notary in general and put Client precheck into NotaryProtocol.
Rename method to better reflect its actions Handle comments from PR Correct indentation
This commit is contained in:
@ -66,9 +66,10 @@ class ValidatingNotaryServiceTests {
|
||||
tx.toSignedTransaction(false)
|
||||
}
|
||||
|
||||
val future = runClient(stx)
|
||||
|
||||
val ex = assertFailsWith(ExecutionException::class) { future.get() }
|
||||
val ex = assertFailsWith(ExecutionException::class) {
|
||||
val future = runClient(stx)
|
||||
future.get()
|
||||
}
|
||||
val notaryError = (ex.cause as NotaryException).error
|
||||
assertThat(notaryError).isInstanceOf(NotaryError.SignaturesMissing::class.java)
|
||||
|
||||
|
Reference in New Issue
Block a user