We're updating the issue view to help you get more done. 

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

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:

1 2 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.

Status

Assignee

Andrius Dagys

Reporter

Andrius Dagys

Priority

Medium

Labels

None

Severity

Medium

Fix versions

Ported to...

None

Feature Team

Notaries

Affects versions

Corda 4
Corda Enterprise 4