[CORDA-1119] Sign in DB transaction (#2645)

This commit is contained in:
Thomas Schroeter 2018-02-27 10:00:30 +00:00 committed by GitHub
parent 0adc203d7a
commit 147f46fbf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -248,7 +248,7 @@ object BFTSMaRt {
/** Generates a transaction signature over the specified transaction [txId]. */
protected fun sign(txId: SecureHash): TransactionSignature {
val signableData = SignableData(txId, SignatureMetadata(services.myInfo.platformVersion, Crypto.findSignatureScheme(notaryIdentityKey).schemeNumberID))
return services.keyManagementService.sign(signableData, notaryIdentityKey)
return services.database.transaction { services.keyManagementService.sign(signableData, notaryIdentityKey) }
}
// TODO: