Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
tsachiherman committed Jan 28, 2025
1 parent bc92e65 commit cddfa5d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion vms/example/xsvm/execute/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func (t *Tx) Import(i *tx.Import) error {
return errs.Err
}

validators, err := warp.GetCanonicalValidatorSetFromSubnetID(
validators, err := warp.GetCanonicalValidatorSetFromChainID(
t.Context,
t.ChainContext.ValidatorState,
t.BlockContext.PChainHeight,
Expand Down
2 changes: 1 addition & 1 deletion vms/platformvm/txs/executor/warp_verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (w *warpVerifier) verify(message []byte) error {
return err
}

validators, err := warp.GetCanonicalValidatorSetFromSubnetID(
validators, err := warp.GetCanonicalValidatorSetFromChainID(
w.context,
w.validatorState,
w.pChainHeight,
Expand Down
2 changes: 1 addition & 1 deletion vms/platformvm/warp/signature_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ func TestSignatureVerification(t *testing.T) {
msg := tt.msgF(require)
pChainState := tt.stateF(ctrl)

validators, err := GetCanonicalValidatorSetFromSubnetID(
validators, err := GetCanonicalValidatorSetFromChainID(
context.Background(),
pChainState,
pChainHeight,
Expand Down
2 changes: 1 addition & 1 deletion vms/platformvm/warp/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (v *Validator) Compare(o *Validator) int {
}

// GetCanonicalValidatorSetFromSubnetID returns the CanonicalValidatorSet of [subnetID] at
// [pChcainHeight] in a canonical ordering. CanonicalValidatorSet includes the validator set
// [pChcainHeight]. The returned CanonicalValidatorSet includes the validator set in a canonical ordering
// and the total weight.
func GetCanonicalValidatorSetFromSubnetID(
ctx context.Context,
Expand Down

0 comments on commit cddfa5d

Please sign in to comment.