Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ChainSafe/gossamer
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d7daddcaa36507279095ac748fc708f8bfc233cf
Choose a base ref
..
head repository: ChainSafe/gossamer
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8b67d3aa5feccf101aaf81906c52c579da73720c
Choose a head ref
Showing with 7 additions and 1 deletion.
  1. +7 −1 dot/parachain/types/scraping.go
8 changes: 7 additions & 1 deletion dot/parachain/types/scraping.go
Original file line number Diff line number Diff line change
@@ -5,23 +5,29 @@ import (
"github.com/ChainSafe/gossamer/lib/common"
)

// BackingValidators backing validators for a candidate
type BackingValidators struct {
ValidatorIndex ValidatorIndex
ValidityAttestation inherents.ValidityAttestation
}

// BackingValidatorsPerCandidate Set of backing validators for each candidate, represented by its candidate receipt.
type BackingValidatorsPerCandidate struct {
CandidateReceipt common.Hash
BackingValidators []BackingValidators
}

// ScrapedOnChainVotes scraped runtime backing votes and resolved disputes
type ScrapedOnChainVotes struct {
Session SessionIndex
BackingValidators BackingValidatorsPerCandidate
Disputes inherents.MultiDisputeStatementSet
}

// ScrapedUpdates Updates to `OnChainVotes` and included receipts for new active leaf and its unprocessed ancestors.
type ScrapedUpdates struct {
OnChainVotes []ScrapedOnChainVotes
// New votes as seen on chain
OnChainVotes []ScrapedOnChainVotes
// Newly included parachain block candidate receipts as seen on chain
IncludedReceipts []CandidateReceipt
}