Skip to content

Commit

Permalink
Make time module upper case
Browse files Browse the repository at this point in the history
  • Loading branch information
p-offtermatt committed Sep 29, 2023
1 parent 8818531 commit 633f8bb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions tests/difference/core/quint_model/ccv_statemachine.qnt
Original file line number Diff line number Diff line change
Expand Up @@ -192,30 +192,26 @@ module CCVDefaultStateMachine {
if (commonPackets.size() == 0) {
true // they don't share any packets, so nothing to check
} else {
// get oldest common packet
val oldestCommonPacket = commonPackets.MinBy(packet => packet.sendingTime, packets1.head())
false
val oldestCommonPacket = packets1.head()
val newestCommonPacket = packets1[packets1.length() - 1]
// get all packets sent between the oldest and newest common packet
val packetsBetween1 = packets1.select(
packet => packet.sendingTime >= oldestCommonPacket.sendingTime and packet.sendingTime <= newestCommonPacket.sendingTime
)
val packetsBetween2 = packets2.select(
packet => packet.sendingTime >= oldestCommonPacket.sendingTime and packet.sendingTime <= newestCommonPacket.sendingTime
)
// these should be the same on both chains
packetsBetween1 == packetsBetween2
}
}
)
)



// val MaturedBeforeTimeoutInv =

// \* Invariants from https://github.com/cosmos/interchain-security/blob/main/docs/quality_assurance.md

// (*
// 6.03 - Every consumer chain receives the same sequence of
// ValidatorSetChangePackets in the same order.

// Note: consider only prefixes on received packets (ccvChannelsResolved)
// *)
// Inv603 ==
// \A c1,c2 \in LiveConsumers:
// \A i \in (DOMAIN ccvChannelsResolved[c1] \intersect DOMAIN ccvChannelsResolved[c2]):
// ccvChannelsResolved[c1][i] = ccvChannelsResolved[c2][i]

// (*
// 7.01 - For every ValidatorSetChangePacket received by a consumer chain at
// time t, a MaturedVSCPacket is sent back to the provider in the first block
Expand Down

0 comments on commit 633f8bb

Please sign in to comment.