confidential-computing-modules icon indicating copy to clipboard operation
confidential-computing-modules copied to clipboard

[test] state-runtimeノードのintegrationテストに異なる順番でノード参加してしまった場合のテストケースを追加

Open osuketh opened this issue 4 years ago • 0 comments

State-runtimeノードは事前に定義されたroster_idxの順番にグループ参加する必要がある。 異なる順番で参加した場合はオンチェーン検証でrevertするので、このエラー検出が正しくされうるかのテストケースを追加する。 ケース例

  • 最初のメンバーとしてroster_idx=1のノードが参加
  • roster_idx=1のノードが参加するはずが、roster_idx=2のノードが参加

https://github.com/LayerXcom/anonify/blob/master/nodes/state-runtime/server/src/tests.rs

osuketh avatar Feb 23 '21 04:02 osuketh