Uploaded image for project: 'Corda'
  1. CORDA-2745

Unable to insert state into vault if notary not on network map

    Details

    • Type: Bug
    • Status: Done (View workflow)
    • Priority: Medium
    • Resolution: Done
    • Affects versions: Corda 4, Corda Enterprise 4
    • Fix versions: Corda 4.1
    • Components: None
    • Labels:
      None

      Description

      If a node for some reason does not (yet) have the notary's network map entry, and receives a notarised transaction from a counterparty, it fails to update the vault after recording it:

      Caused by: org.h2.jdbc.JdbcSQLException: NULL not allowed for column "NOTARY_NAME"; SQL statement:
      insert into vault_states (consumed_timestamp, contract_state_class_name, lock_id, lock_timestamp, notary_name, recorded_timestamp, state_status, output_index, transaction_id) values (?, ?, ?, ?, ?, ?, ?, ?, ?) [23502-197]
      

      This is because we automatically try to resolve all {{AbstractParty}}s from the identity service when inserting into the database.

        Attachments

          Activity

            People

            • Assignee:
              andrius.dagys Andrius Dagys
              Reporter:
              andrius.dagys Andrius Dagys
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: