CORDA-1119 - Sign in DB transaction (#2651)

This commit is contained in:
Thomas Schroeter 2018-02-27 12:14:47 +00:00 committed by Katelyn Baker
parent 64933c07c6
commit b625dc7417

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: