3.1.4.12 Application Closes the Graph

When the application requests that the local node close, the following actions MUST be performed:

  • If the local node has published a Contact record, it MUST delete it, as specified in section 3.1.7.9.

  • If the local node has published a Presence record, it MUST delete it, as specified in section 3.1.7.9.

  • If the local node has published the Signature record, it MUST delete it, as specified in section 3.1.7.9.

  • The local node MUST send a DISCONNECT message and terminate each connection currently in state LINK_STATE_CONNECTED.

  • The local node MUST terminate any connection in any state.

  • If the application requests to persist the database, the graph database MUST be persisted on disk along with the node's current Peer Time Delta.