diff --git a/src/sync-v2/index.ts b/src/sync-v2/index.ts index 4c78907a..789f7695 100644 --- a/src/sync-v2/index.ts +++ b/src/sync-v2/index.ts @@ -172,7 +172,9 @@ function syncStandbyNodeList( return robustQueryForStandbyNodeListHash(activeNodes).andThen(({ value, winningNodes }) => // get full standby list from one of the winning nodes getStandbyNodeListFromNode(winningNodes[0], value.standbyNodeListHash).andThen((standbyList) => - okAsync([standbyList, value.standbyNodeListHash] as [P2PTypes.JoinTypes.JoinRequest[], hexstring]) + verifyStandbyList(standbyList, value.standbyNodeListHash).map( + () => [standbyList, value.standbyNodeListHash] as [P2PTypes.JoinTypes.JoinRequest[], hexstring] + ) ) ) }