Skip to content

Commit

Permalink
Rename removeSubnetValidatorValidation to `verifyRemoveSubnetValida…
Browse files Browse the repository at this point in the history
…torTx` (#2162)
  • Loading branch information
dhrubabasu authored Oct 11, 2023
1 parent 99fc926 commit 1bc63d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion vms/platformvm/txs/executor/staker_tx_verification.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ func verifyAddSubnetValidatorTx(
// * [sTx]'s creds authorize it to spend the stated inputs.
// * [sTx]'s creds authorize it to remove a validator from [tx.Subnet].
// * The flow checker passes.
func removeSubnetValidatorValidation(
func verifyRemoveSubnetValidatorTx(
backend *Backend,
chainState state.Chain,
sTx *txs.Tx,
Expand Down
6 changes: 3 additions & 3 deletions vms/platformvm/txs/executor/standard_tx_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,12 +358,12 @@ func (e *StandardTxExecutor) AddDelegatorTx(tx *txs.AddDelegatorTx) error {
}

// Verifies a [*txs.RemoveSubnetValidatorTx] and, if it passes, executes it on
// [e.State]. For verification rules, see [removeSubnetValidatorValidation].
// This transaction will result in [tx.NodeID] being removed as a validator of
// [e.State]. For verification rules, see [verifyRemoveSubnetValidatorTx]. This
// transaction will result in [tx.NodeID] being removed as a validator of
// [tx.SubnetID].
// Note: [tx.NodeID] may be either a current or pending validator.
func (e *StandardTxExecutor) RemoveSubnetValidatorTx(tx *txs.RemoveSubnetValidatorTx) error {
staker, isCurrentValidator, err := removeSubnetValidatorValidation(
staker, isCurrentValidator, err := verifyRemoveSubnetValidatorTx(
e.Backend,
e.State,
e.Tx,
Expand Down

0 comments on commit 1bc63d4

Please sign in to comment.