Skip to content

Commit

Permalink
add imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kanishkatn committed Oct 25, 2023
1 parent 01d8834 commit 5e46a60
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 67 deletions.
33 changes: 1 addition & 32 deletions dot/parachain/dispute/mock_runtime_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dot/parachain/dispute/mocks_generate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@

package dispute

//go:generate mockgen -destination=mocks_test.go -package=$GOPACKAGE . PoVRequestor
//go:generate mockgen -destination=mock_runtime_test.go -package $GOPACKAGE github.com/ChainSafe/gossamer/dot/parachain/runtime RuntimeInstance
2 changes: 1 addition & 1 deletion dot/parachain/dispute/scraping/mock_runtime_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 0 additions & 31 deletions dot/parachain/mock_runtime_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions dot/parachain/runtime/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package parachain

import (
"bytes"
"errors"
"fmt"

parachaintypes "github.com/ChainSafe/gossamer/dot/parachain/types"
Expand All @@ -13,6 +14,12 @@ import (
"github.com/ChainSafe/gossamer/pkg/scale"
)

var (
ErrCodeEmpty = errors.New("code is empty")
ErrWASMDecompress = errors.New("wasm decompression failed")
ErrInstanceIsStopped = errors.New("instance is stopped")
)

// ValidationResult is result received from validate_block. It is similar to CandidateCommitments, but different order.
type ValidationResult struct {
// The head-data is the new head data that should be included in the relay chain state.
Expand Down
6 changes: 3 additions & 3 deletions lib/babe/inherents/parachain_inherents.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ type backedCandidate struct {
}

// MultiDisputeStatementSet is a set of dispute statements.
type MultiDisputeStatementSet []DisputeStatementSet
type MultiDisputeStatementSet []disputeStatementSet

// validatorIndex is the index of the validator.
type validatorIndex uint32
Expand All @@ -387,8 +387,8 @@ type statement struct {
DisputeStatement DisputeStatement
}

// DisputeStatementSet is a set of statements about a specific candidate.
type DisputeStatementSet struct {
// disputeStatementSet is a set of statements about a specific candidate.
type disputeStatementSet struct {
// The candidate referenced by this set.
CandidateHash common.Hash `scale:"1"`
// The session index of the candidate.
Expand Down

0 comments on commit 5e46a60

Please sign in to comment.