Merge pull request #1438 from corda/mnesbit-remove-dead-code

Remove dead and expensive call to key management service
This commit is contained in:
Matthew Nesbit
2017-09-06 15:51:17 +01:00
committed by GitHub

View File

@ -169,7 +169,6 @@ class NodeVaultService(private val services: ServiceHub) : SingletonSerializeAsT
} }
private fun notifyNotaryChange(txns: Iterable<NotaryChangeWireTransaction>) { private fun notifyNotaryChange(txns: Iterable<NotaryChangeWireTransaction>) {
val ourKeys = services.keyManagementService.keys
fun makeUpdate(tx: NotaryChangeWireTransaction): Vault.Update<ContractState> { fun makeUpdate(tx: NotaryChangeWireTransaction): Vault.Update<ContractState> {
// We need to resolve the full transaction here because outputs are calculated from inputs // We need to resolve the full transaction here because outputs are calculated from inputs
// We also can't do filtering beforehand, since output encumbrance pointers get recalculated based on // We also can't do filtering beforehand, since output encumbrance pointers get recalculated based on