Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
p-offtermatt committed Jan 26, 2024
1 parent 36867d5 commit 5aec102
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/mbt/model/ccv.qnt
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,12 @@ module ccv_types {
// whether a chain is the provider or not
pure val PROVIDER_CHAIN = "provider"

// ===================
// UTILITY FUNCTIONS
// which do not hold the core logic of the protocol, but are invoked by it
// ===================


// Takes the current provider state and validator set and returns
// the validator set under the current key assignments for the given consumer, as stored in the provider state.
pure def applyKeyAssignmentToValSet(
Expand Down Expand Up @@ -287,11 +293,6 @@ module ccv_types {
)
}

// ===================
// UTILITY FUNCTIONS
// which do not hold the core logic of the protocol, but are still part of it
// ===================

// Appends the key assignment for the given oldConsAddr on the consumer by a validator
// to be pruned when a VscMaturedPacket for the current runningVscId is received from the consumer.
pure def AppendConsumerAddrToPrune(currentState: ProtocolState, oldConsAddr: ConsumerAddr, consumer: Chain): ProtocolState = {
Expand Down

0 comments on commit 5aec102

Please sign in to comment.