# commitmentの食い違いを直す

> Participant NodeのAdmin APIで、digestの整合の検査と、commitmentの初期化のやり直しと、ACSを使った修理と、保留中の操作の一覧と削除の7つのRPCを、要求と応答の欄で追います。

- URL: https://cardene.dev/diagrams/canton-pn-repair-digest
- 公開日: 2026-11-23
- 更新日: 2026-11-23
- トピック: Blockchain
- タグ: Canton
- 親の図解: [repairとpartyの複製](https://cardene.dev/diagrams/canton-participant-repair-ops.md): Participant NodeのAdmin APIで、repairによるACSの書き出しと取り込み、割り当ての修正、commitmentの修復と、partyの別ノードへの複製を、gRPCでどう呼ぶかを4頁で追います。

この頁は、Participant NodeのAdmin APIで、commitmentの食い違いを直すRPCを、要求と応答の欄で追います。
Admin APIは、運用者がノードを管理するために使うAPIの1つで、gRPCで呼びます。
RPCは、ネットワーク越しに、別のプログラムの処理を呼び出す操作です。

:::details gRPC
gRPCは、Googleが開発した、ネットワーク越しに別のプログラムの処理を呼び出すための通信の仕組みです。
:::

ACSは、Active Contract Setの略で、Participant Nodeがhostするpartyのコントラクトのうち、まだarchiveされていない物の集まりです。
ACS commitmentは、Participant Nodeが署名した、共有するactiveなコントラクトの暗号のまとめです。
頁「ACSの食い違いを調べて直す」は、commitmentが破損した時の再初期化と、digestの整合を検査するコマンドを、Canton Consoleで追っています。

https://cardene.dev/diagrams/canton-acs-commitments

digestは、ACSとその変化を、partyごとと相手のParticipant Nodeごとにまとめた値です。
digestの作り方は、頁「新しいACS commitmentの作り方」が追っています。

https://cardene.dev/diagrams/canton-acs-commitment-v36

## 7つのRPCはどれもストリーミングを持たない

この頁の7つのRPCは、前の頁と同じ`ParticipantRepairService`のRPCです。
どのRPCも、クライアントからもサーバーからもストリーミングを持たず、`RunDigestConsistencyCheckRequest`のように、名前に`Request`を足したメッセージを受けて、`Response`を足したメッセージを返します。
ストリーミングは、続けて何度もデータを送る形です。
`RepairCommitmentsUsingAcs`を除く6つは、3.6.1で足されました。

| RPC | パス |
|---|---|
| `RunDigestConsistencyCheck` | `/com.digitalasset.canton.admin.participant.v30.ParticipantRepairService/RunDigestConsistencyCheck` |
| `DigestConsistencyCheckStatus` | `/com.digitalasset.canton.admin.participant.v30.ParticipantRepairService/DigestConsistencyCheckStatus` |
| `ReinitializeDigestCommitments` | `/com.digitalasset.canton.admin.participant.v30.ParticipantRepairService/ReinitializeDigestCommitments` |
| `ReinitializeDigestCommitmentsStatus` | `/com.digitalasset.canton.admin.participant.v30.ParticipantRepairService/ReinitializeDigestCommitmentsStatus` |
| `RepairCommitmentsUsingAcs` | `/com.digitalasset.canton.admin.participant.v30.ParticipantRepairService/RepairCommitmentsUsingAcs` |
| `ListPendingOperations` | `/com.digitalasset.canton.admin.participant.v30.ParticipantRepairService/ListPendingOperations` |
| `DeletePendingOperation` | `/com.digitalasset.canton.admin.participant.v30.ParticipantRepairService/DeletePendingOperation` |

## 7つのRPCの欄を見る

図Aは、中央にこの頁の7つのRPCを置き、それぞれの要求と応答の欄を足します。
段1が7つのRPCを置き、段2がdigestの整合を検査する2つのRPCの欄を、段3がcommitmentの初期化をやり直す2つのRPCの欄を足します。
段4がACSを使って修理するRPCの欄を、段5が応答の対象ごとの結果の欄を足します。
段6が保留中の操作を一覧にするRPCの欄を、段7が保留中の操作を消すRPCの欄を足します。

図の箱は、操作を日本語の名前で示し、欄の札は、識別子の代わりに短い日本語で、要求と応答のどちらの欄かを先頭の語で示します。
札と識別子の対応は、後の節の表の「図の札」の列にあります。
段5は、根の下に、段4で足した応答の対象ごとの結果の並びの各要素の型の枝を足し、その欄を並べます。

```dragon
mind commitmentを直す7つのRPCの欄

step 7つのRPC
  say この頁が追う7つのRPCは、同じサービスに入っています。
  idea root as "commitmentを直す7つのRPC" [color: slate]
  idea rc as "整合の検査を始めるRPC" of root [color: blue]
  idea cs as "整合の検査の状態を問うRPC" of root [color: blue]
  idea rd as "初期化のやり直しを始めるRPC" of root [color: blue]
  idea rs as "初期化のやり直しの状態を問うRPC" of root [color: blue]
  idea ra as "ACSを使って修理するRPC" of root [color: blue]
  idea lp as "保留中の操作を一覧にするRPC" of root [color: blue]
  idea dp as "保留中の操作を消すRPC" of root [color: blue]
  source CantonのParticipantRepairService [url: https://docs.canton.network/reference/admin-api/protobuf/packages/com-digitalasset-canton-admin-participant-v30]

step digestの整合を検査する2つのRPCの欄
  say 検査を始めるRPCは1つの欄を受け取り、検査の状態を問うRPCは、実行中かと、直近の検査が使ったチェックポイントの記録時刻を返します。
  idea rc1 as "要求のSynchronizerのID" of rc [color: blue]
  idea rc2 as "応答は欄なし" of rc [color: blue]
  idea cs1 as "要求のSynchronizerのID" of cs [color: blue]
  idea cs2 as "応答の検査の実行中か" of cs [color: blue]
  idea cs3 as "応答の直近の検査のチェックポイントの記録時刻" of cs [color: blue]
  source CantonのRunDigestConsistencyCheck [url: https://docs.canton.network/reference/admin-api/protobuf/operations/com-digitalasset-canton-admin-participant-v30/participantrepairservice/rundigestconsistencycheck]
  source CantonのDigestConsistencyCheckStatus [url: https://docs.canton.network/reference/admin-api/protobuf/operations/com-digitalasset-canton-admin-participant-v30/participantrepairservice/digestconsistencycheckstatus]

step commitmentの初期化をやり直す2つのRPCの欄
  say 初期化のやり直しを始めるRPCは、対象のACSの記録時刻を返し、その状態を問うRPCは、最後に完了した初期化し直しの記録時刻を返します。
  idea rd1 as "要求のSynchronizerのID" of rd [color: blue]
  idea rd2 as "応答の初期化し直す対象のACSの記録時刻" of rd [color: blue]
  idea rs1 as "要求のSynchronizerのID" of rs [color: blue]
  idea rs2 as "応答の最後に完了した初期化し直しの記録時刻" of rs [color: blue]
  source CantonのReinitializeDigestCommitments [url: https://docs.canton.network/reference/admin-api/protobuf/operations/com-digitalasset-canton-admin-participant-v30/participantrepairservice/reinitializedigestcommitments]
  source CantonのReinitializeDigestCommitmentsStatus [url: https://docs.canton.network/reference/admin-api/protobuf/operations/com-digitalasset-canton-admin-participant-v30/participantrepairservice/reinitializedigestcommitmentsstatus]

step ACSを使って修理するRPCの欄
  say ACSを使って修理するRPCは、4つの欄の要求を受け取り、対象ごとの結果の並びを返します。
  idea ra1 as "要求の対象のSynchronizerのIDの列" of ra [color: blue]
  idea ra2 as "要求の相手のParticipant NodeのIDの列" of ra [color: blue]
  idea ra3 as "要求のpartyのIDの列" of ra [color: blue]
  idea ra4 as "要求の待つ時間" of ra [color: blue]
  idea ra5 as "応答の対象ごとの結果の並び" of ra [color: blue]
  source CantonのRepairCommitmentsUsingAcs [url: https://docs.canton.network/reference/admin-api/protobuf/operations/com-digitalasset-canton-admin-participant-v30/participantrepairservice/repaircommitmentsusingacs]

step 対象ごとの結果の欄
  say 応答の対象ごとの結果の型は、Synchronizerと、エラーの文か修理したACSの時刻のどちらか1つを持ちます。
  idea st as "応答の対象ごとの結果の型" of root [color: blue]
  idea st1 as "対象のID" of st [color: blue]
  idea st2 as "エラーの文" of st [color: blue]
  idea st3 as "修理したACSの時刻" of st [color: blue]
  source CantonのRepairCommitmentsUsingAcs [url: https://docs.canton.network/reference/admin-api/protobuf/operations/com-digitalasset-canton-admin-participant-v30/participantrepairservice/repaircommitmentsusingacs]

step 保留中の操作を一覧にするRPCの欄
  say 一覧にするRPCは、絞り込みの3つの欄の要求を受け取り、保留中の操作の並びを返します。
  idea lp1 as "要求の操作の種類の名前" of lp [color: blue]
  idea lp2 as "要求の絞るSynchronizer" of lp [color: blue]
  idea lp3 as "要求の絞る操作のキー" of lp [color: blue]
  idea lp4 as "応答の保留中の操作の並び" of lp [color: blue]
  source CantonのListPendingOperations [url: https://docs.canton.network/reference/admin-api/protobuf/operations/com-digitalasset-canton-admin-participant-v30/participantrepairservice/listpendingoperations]

step 保留中の操作を消すRPCの欄
  say 消すRPCは、対象の操作を指す3つの欄の要求を受け取り、欄の無い応答を返します。
  idea dp1 as "要求の操作の種類の名前" of dp [color: blue]
  idea dp2 as "要求のSynchronizer" of dp [color: blue]
  idea dp3 as "要求の操作のキー" of dp [color: blue]
  idea dp4 as "応答は欄なし" of dp [color: blue]
  source CantonのDeletePendingOperation [url: https://docs.canton.network/reference/admin-api/protobuf/operations/com-digitalasset-canton-admin-participant-v30/participantrepairservice/deletependingoperation]
```

## digestの整合を検査する

`RunDigestConsistencyCheck`の要求は、文字列の`synchronizer_id`を1つ持ち、応答の`RunDigestConsistencyCheckResponse`は、欄を持ちません。
このRPCは、検査を始めるだけで、終わりを待ちません。
`DigestConsistencyCheckStatus`の要求も、文字列の`synchronizer_id`を1つ持ち、対象のSynchronizerのIDで、検査の状態を問います。
応答の`DigestConsistencyCheckStatusResponse`は、検査が実行中かを示すboolの`is_running`と、直近の検査が使ったチェックポイントの記録時刻のTimestampの`last_started_check_time`を持ちます。

boolは、真か偽のどちらかの値を持つ型で、Timestampは、時刻の型です。
`last_started_check_time`は、検査を始めた時計の時刻ではなく、記録時刻です。
対象になる記録が無い時は、時刻の欄は入りません。

| RPC | 図の札 | 欄 |
|---|---|---|
| `RunDigestConsistencyCheck` | 要求のSynchronizerのID | 文字列の`synchronizer_id` |
| `DigestConsistencyCheckStatus` | 要求のSynchronizerのID | 文字列の`synchronizer_id` |
| `DigestConsistencyCheckStatus` | 応答の検査の実行中か | boolの`is_running` |
| `DigestConsistencyCheckStatus` | 応答の直近の検査のチェックポイントの記録時刻 | Timestampの`last_started_check_time` |

## commitmentの初期化をやり直す

`ReinitializeDigestCommitments`の要求は、文字列の`synchronizer_id`を1つ持ち、応答の`ReinitializeDigestCommitmentsResponse`は、初期化し直す対象のACSの記録時刻のTimestampの`reinitialization_timestamp`を1つ持ちます。
この時刻は、初期化し直しが完了した時刻ではありません。
このRPCは、初期化し直しを始めるだけで、終わりを待たないので、この応答だけでは完了は分かりません。

`ReinitializeDigestCommitmentsStatus`の要求も、文字列の`synchronizer_id`を1つ持ち、応答の`ReinitializeDigestCommitmentsStatusResponse`は、最後に完了した初期化し直しの記録時刻のTimestampの`last_completed_reinitialization_time`を1つ持ちます。
まだ完了した初期化し直しが無い時は、時刻の欄は入りません。

| RPC | 図の札 | 欄 |
|---|---|---|
| `ReinitializeDigestCommitments` | 要求のSynchronizerのID | 文字列の`synchronizer_id` |
| `ReinitializeDigestCommitments` | 応答の初期化し直す対象のACSの記録時刻 | Timestampの`reinitialization_timestamp` |
| `ReinitializeDigestCommitmentsStatus` | 要求のSynchronizerのID | 文字列の`synchronizer_id` |
| `ReinitializeDigestCommitmentsStatus` | 応答の最後に完了した初期化し直しの記録時刻 | Timestampの`last_completed_reinitialization_time` |

初期化し直しを始めるRPCで始め、状態を問うRPCで完了を確かめます。

## ACSを使ってcommitmentを修理する

`RepairCommitmentsUsingAcs`の要求は、4つの欄を持ちます。
列は、Protobufの定義で`repeated`と書かれた、同じ型の値を並べた欄です。
Durationは、時間の長さの型です。

:::details Protobuf
Protobufは、Protocol Buffersの略で、Googleが開発した、データを決まった形式のバイト列に変換してやり取りするための仕組みです。
送るデータの形を先に定義しておき、その定義から送る側と受ける側のコードを作ります。
:::

| 欄 | 図の札 | 型 |
|---|---|---|
| `synchronizer_ids` | 要求の対象のSynchronizerのIDの列 | 文字列の列 |
| `counter_participant_ids` | 要求の相手のParticipant NodeのIDの列 | 文字列の列 |
| `party_ids` | 要求のpartyのIDの列 | 文字列の列 |
| `timeout_seconds` | 要求の待つ時間 | Duration |

3つのIDの列は、修理する対象を絞り、空にすると、`synchronizer_ids`はどのSynchronizerも、`counter_participant_ids`はどの相手のParticipant Nodeも、`party_ids`はどのstakeholderの組も対象にします。
`timeout_seconds`は、呼び出しが成功を返すまで待つ長さで、過ぎた後も、修理の状態は後から問い合わせられます。
頁「ACSの食い違いを調べて直す」のCanton Consoleのコマンド`commitments.reinitialize_commitments`は、`synchronizerIds`と`counterParticipants`と`partyIds`で絞り、`timeout`で再初期化の終わりを待つ長さを決め、このRPCの4つの欄に当たります。
`timeout`は、秒より細かい単位を無視します。

応答の`RepairCommitmentsUsingAcsResponse`は、`RepairCommitmentsStatus`の列の`statuses`を1つ持ちます。
`RepairCommitmentsStatus`は、文字列の`synchronizer_id`と、エラーの文の`error_message`か、修理したACSの時刻のTimestampの`completed_repair_timestamp`のどちらか1つを持ちます。
修理が失敗した時のエラーは、`error_message`で読みます。

| 欄 | 図の札 |
|---|---|
| `synchronizer_id` | 対象のID |
| `error_message` | エラーの文 |
| `completed_repair_timestamp` | 修理したACSの時刻 |

## 保留中の操作を一覧にして消す

`ListPendingOperations`の要求は、3つの欄を持ち、どれも省略できる絞り込みです。
応答は`PendingOperationMetadata`の列の`pending_operations`を1つ持ち、操作のメタデータだけを返します。
`DeletePendingOperation`の要求は、操作の種類の名前と、Synchronizerと、操作のキーの3つの欄で、削除する操作を指します。
応答の`DeletePendingOperationResponse`は、欄を持ちません。

どちらも、Synchronizerを指す欄に、`Synchronizer`の型を使います。

| RPC | 要求の欄 | 応答の欄 |
|---|---|---|
| `ListPendingOperations` | 文字列の`operation_name`、`Synchronizer`の`filter_synchronizer`、文字列の`filter_operation_key` | `PendingOperationMetadata`の列の`pending_operations` |
| `DeletePendingOperation` | 文字列の`operation_name`、`Synchronizer`の`synchronizer`、文字列の`operation_key` | 欄を持たない |

| 欄 | 図の札 |
|---|---|
| `ListPendingOperations`の`operation_name` | 要求の操作の種類の名前 |
| `ListPendingOperations`の`filter_synchronizer` | 要求の絞るSynchronizer |
| `ListPendingOperations`の`filter_operation_key` | 要求の絞る操作のキー |
| `ListPendingOperations`の`pending_operations` | 応答の保留中の操作の並び |
| `DeletePendingOperation`の`operation_name` | 要求の操作の種類の名前 |
| `DeletePendingOperation`の`synchronizer` | 要求のSynchronizer |
| `DeletePendingOperation`の`operation_key` | 要求の操作のキー |

削除の空の応答は、操作を削除した場合と、一致する操作が無かった場合の両方で返ります。
応答だけでは、操作が削除されたとは確認できないので、一覧のRPCで、その操作が残っていないかを確かめます。

`PendingOperationMetadata`は、保留中の1つの操作を表し、操作の種類の名前の文字列の`operation_name`と、文字列の`operation_key`、`Synchronizer`の`synchronizer`の3つの欄を持ちます。
`Synchronizer`は、このサービスのパッケージ`com.digitalasset.canton.admin.participant.v30`でなく、topologyの管理のパッケージ`com.digitalasset.canton.topology.admin.v30`の型です。
この型は、Participant Nodeの管理のRPCと、時刻の管理のRPCも使い、文字列の`id`と`physical_id`の2つの欄を持ちます。

## 打つ前にバックアップを取る

初期化のやり直しと、ACSを使った修理と、保留中の操作の削除は、commitmentや操作の記録を手で変えます。
頁「ACSの食い違いを調べて直す」は、食い違いの原因が決まってから、影響を受けたParticipant Nodeに保存したデータを、repairで直す順を追っています。
repairのコマンドは、頁「Synchronizerにつなげない時の対処」が追うとおり、予期しないデータの破損から戻すための道具で、ふだんの運用では危ういコマンドです。
打つ前に、Participant Nodeのバックアップを取り、食い違いの原因を確かめます。

https://cardene.dev/diagrams/canton-error-sync

## grpcurlの例が送る物と返る物

`grpcurl`は、gRPCのサーバーのRPCを、JSONで呼び出すための道具です。

:::details JSON
JSONは、データを文字で表すための形式で、Webのプログラムどうしのデータのやり取りに広く使われています。
:::

JSONの欄の名前は、protoの欄の名前をcamelCaseにした形です。
camelCaseは、単語をつなぎ、2つ目からの単語の頭を大文字にする書き方です。
Timestampは、JSONでは、日付と時刻とタイムゾーンを含むRFC 3339の文字列で表します。
RFC 3339は、日付と時刻とタイムゾーンを文字で表す規格です。

Durationは、JSONでは、秒に`s`を付けた文字列で表します。
例の`"30s"`と`"2026-01-01T00:00:00Z"`は、形を示す値で、運用で使う値でも、既定の値でも、実際の結果でもありません。

接続先のホスト名とポートは、コロンでつないだ値を、シェルの変数`HOST_PORT`に設定してから、次の例を実行します。
変数は引用符で囲んで渡し、TLSを使わないサーバーを呼ぶ時は、`-plaintext`を足します。

:::details TLS
TLSは、ネットワークの通信を暗号化し、通信の相手が本物かを証明書で確かめるための規格です。
WebサイトのHTTPSの通信も、TLSを使っています。
:::

次の例の値は、実際のSynchronizerやpartyを指さないので、例のまま呼ばず、バックアップを取り、食い違いの原因を確かめてから、実際の値に置き換えます。

```bash
# Add -plaintext if the server is not using TLS.
grpcurl \
  -d @ \
  "$HOST_PORT" \
  com.digitalasset.canton.admin.participant.v30.ParticipantRepairService/RepairCommitmentsUsingAcs <<'EOF'
{
  "synchronizerIds": [
    "SYNCHRONIZER_ID"
  ],
  "counterParticipantIds": [
    "COUNTER_PARTICIPANT_ID"
  ],
  "partyIds": [
    "PARTY_ID"
  ],
  "timeoutSeconds": "30s"
}
EOF
```

大文字の名前の値は、実際のIDに置き換える場所を示す仮の名前です。
OKの応答の例は、`statuses`の配列で、各要素が`synchronizerId`と`errorMessage`を持つJSONです。
この例は、RPC自体が正常に応答し、対象の結果にエラーが入る場合の形です。
修理が成功した結果は、`errorMessage`の代わりに、`completedRepairTimestamp`を持ちます。

次の表は、残りの6つのRPCの例の要求と応答です。
表の大文字の名前の値は仮の名前で、`true`は例の値です。

| RPC | 例の要求 | 例の応答 |
|---|---|---|
| `RunDigestConsistencyCheck` | `{"synchronizerId": "SYNCHRONIZER_ID"}` | `{}` |
| `DigestConsistencyCheckStatus` | `{"synchronizerId": "SYNCHRONIZER_ID"}` | `{"isRunning": true, "lastStartedCheckTime": "2026-01-01T00:00:00Z"}` |
| `ReinitializeDigestCommitments` | `{"synchronizerId": "SYNCHRONIZER_ID"}` | `{"reinitializationTimestamp": "2026-01-01T00:00:00Z"}` |
| `ReinitializeDigestCommitmentsStatus` | `{"synchronizerId": "SYNCHRONIZER_ID"}` | `{"lastCompletedReinitializationTime": "2026-01-01T00:00:00Z"}` |
| `ListPendingOperations` | `{"operationName": "OPERATION_NAME", "filterSynchronizer": {"id": "SYNCHRONIZER_ID"}, "filterOperationKey": "OPERATION_KEY"}` | `{"pendingOperations": [{"operationName": "OPERATION_NAME", "operationKey": "OPERATION_KEY", "synchronizer": {"id": "SYNCHRONIZER_ID"}}]}` |
| `DeletePendingOperation` | `{"operationName": "OPERATION_NAME", "synchronizer": {"id": "SYNCHRONIZER_ID"}, "operationKey": "OPERATION_KEY"}` | `{}` |

## 7つの別々の呼び出し

図Bは、呼び出す側とParticipant NodeのAdmin APIの2つの箱で、7つのRPCの要求と応答を、1つのRPCにつき1つの段で追います。
呼び出す側は、例の`grpcurl`です。
7つの呼び出しは別々で、どの段も、別の呼び出しの始まりです。
この図では、7つのRPCを呼ぶ順を示しません。

```dragon
sequence commitmentを直す7つの別々の呼び出し

box G as 呼び出す側 [note: 要求を送り応答を受け取る, color: slate, icon: exe]
box S as Participant NodeのAdmin API [note: ホスト名とポートで指定する, color: rose, icon: server]

step digestの整合の検査を始める
  say 呼び出す側は、検査を始めるRPCへ、対象のSynchronizerを指すIDを1つ送り、Admin APIが欄の無い応答を返します。
  G -> S: SynchronizerのID
  S -> G: 空の応答
  source CantonのRunDigestConsistencyCheck [url: https://docs.canton.network/reference/admin-api/protobuf/operations/com-digitalasset-canton-admin-participant-v30/participantrepairservice/rundigestconsistencycheck]

step 検査の状態を問う
  say 呼び出す側は、検査の状態を問うRPCへ、対象のSynchronizerを指すIDを送り、実行中かと、直近の検査が使ったチェックポイントの記録時刻を受け取ります。
  G -> S: SynchronizerのID
  S -> G: 実行中かと記録時刻
  source CantonのDigestConsistencyCheckStatus [url: https://docs.canton.network/reference/admin-api/protobuf/operations/com-digitalasset-canton-admin-participant-v30/participantrepairservice/digestconsistencycheckstatus]

step 初期化のやり直しを始める
  say 呼び出す側は、初期化のやり直しを始めるRPCへ、対象のSynchronizerを指すIDを1つ送り、初期化し直す対象のACSの記録時刻を受け取ります。
  G -> S: SynchronizerのID
  S -> G: 対象のACSの記録時刻
  source CantonのReinitializeDigestCommitments [url: https://docs.canton.network/reference/admin-api/protobuf/operations/com-digitalasset-canton-admin-participant-v30/participantrepairservice/reinitializedigestcommitments]

step 初期化の状態を問う
  say 呼び出す側は、初期化の状態を問うRPCへ、対象のSynchronizerを指すIDを送り、最後に完了した初期化し直しの記録時刻を受け取ります。
  G -> S: SynchronizerのID
  S -> G: 完了した記録時刻
  source CantonのReinitializeDigestCommitmentsStatus [url: https://docs.canton.network/reference/admin-api/protobuf/operations/com-digitalasset-canton-admin-participant-v30/participantrepairservice/reinitializedigestcommitmentsstatus]

step ACSを使って修理する
  say 呼び出す側は、修理するRPCへ、SynchronizerとpartyとParticipant NodeのIDの並びと、待つ時間を送り、対象ごとの結果の並びを受け取ります。
  G -> S: IDの並びと時間
  S -> G: 対象ごとの結果
  source CantonのRepairCommitmentsUsingAcs [url: https://docs.canton.network/reference/admin-api/protobuf/operations/com-digitalasset-canton-admin-participant-v30/participantrepairservice/repaircommitmentsusingacs]

step 保留中の操作を一覧にする
  say 呼び出す側は、一覧にするRPCへ、操作の種類の名前と、Synchronizerと、操作のキーの絞り込みを送り、保留中の操作の並びを受け取ります。
  G -> S: 3つの絞り込み
  S -> G: 保留中の操作の並び
  source CantonのListPendingOperations [url: https://docs.canton.network/reference/admin-api/protobuf/operations/com-digitalasset-canton-admin-participant-v30/participantrepairservice/listpendingoperations]

step 保留中の操作を消す
  say 呼び出す側は、消すRPCへ、操作の種類の名前と、Synchronizerと、操作のキーを送り、削除した場合も一致する操作が無い場合も、Admin APIが欄の無い応答を返します。
  G -> S: 名前とSynchronizerとキー
  S -> G: 空の応答
  source CantonのDeletePendingOperation [url: https://docs.canton.network/reference/admin-api/protobuf/operations/com-digitalasset-canton-admin-participant-v30/participantrepairservice/deletependingoperation]
```

## 次に読む頁

次の頁「partyを別のノードへ写す」は、`PartyManagementService`の8つのRPCと、partyを一覧にするRPCで、partyをACSごと別のParticipant Nodeへ複製し、進み具合とonboardingを終えたかを示す印の扱い方を追います。

https://cardene.dev/diagrams/canton-pn-party-replication

## 出典

https://docs.canton.network/reference/admin-api/protobuf/packages/com-digitalasset-canton-admin-participant-v30

https://docs.canton.network/reference/admin-api/protobuf/operations/com-digitalasset-canton-admin-participant-v30/participantrepairservice/rundigestconsistencycheck

https://docs.canton.network/reference/admin-api/protobuf/operations/com-digitalasset-canton-admin-participant-v30/participantrepairservice/digestconsistencycheckstatus

https://docs.canton.network/reference/admin-api/protobuf/operations/com-digitalasset-canton-admin-participant-v30/participantrepairservice/reinitializedigestcommitments

https://docs.canton.network/reference/admin-api/protobuf/operations/com-digitalasset-canton-admin-participant-v30/participantrepairservice/reinitializedigestcommitmentsstatus

https://docs.canton.network/reference/admin-api/protobuf/operations/com-digitalasset-canton-admin-participant-v30/participantrepairservice/repaircommitmentsusingacs

https://docs.canton.network/reference/admin-api/protobuf/operations/com-digitalasset-canton-admin-participant-v30/participantrepairservice/listpendingoperations

https://docs.canton.network/reference/admin-api/protobuf/operations/com-digitalasset-canton-admin-participant-v30/participantrepairservice/deletependingoperation

https://docs.canton.network/global-synchronizer/reference/canton-console-commands
