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:
Matthew Nesbit
2016-10-07 17:57:35 +01:00
parent f4b113cc7e
commit 1388454396
10 changed files with 45 additions and 30 deletions

View File

@ -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)