pub fn assert_ring<T: Config>(
    queues: &[<<T as Config>::MessageProcessor as ProcessMessage>::Origin]
)
Expand description

Check that the Ready Ring consists of queues in that exact order.

Also check that all backlinks are valid and that the first element is the service head.

Examples found in repository?
src/mock_helpers.rs (line 166)
157
158
159
160
161
162
163
164
165
166
167
pub fn build_ring<T: Config>(
	queues: &[<<T as Config>::MessageProcessor as ProcessMessage>::Origin],
) {
	for queue in queues {
		BookStateFor::<T>::insert(queue, empty_book::<T>());
	}
	for queue in queues {
		knit::<T>(queue);
	}
	assert_ring::<T>(queues);
}