From 1bc63d48f1df9b752a17787bd8bc5e3dfd0651e1 Mon Sep 17 00:00:00 2001 From: Dhruba Basu <7675102+dhrubabasu@users.noreply.github.com> Date: Wed, 11 Oct 2023 16:34:12 -0400 Subject: [PATCH] Rename `removeSubnetValidatorValidation` to `verifyRemoveSubnetValidatorTx` (#2162) --- vms/platformvm/txs/executor/staker_tx_verification.go | 2 +- vms/platformvm/txs/executor/standard_tx_executor.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vms/platformvm/txs/executor/staker_tx_verification.go b/vms/platformvm/txs/executor/staker_tx_verification.go index 3f5a7e3afd90..6330f8f13fae 100644 --- a/vms/platformvm/txs/executor/staker_tx_verification.go +++ b/vms/platformvm/txs/executor/staker_tx_verification.go @@ -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, diff --git a/vms/platformvm/txs/executor/standard_tx_executor.go b/vms/platformvm/txs/executor/standard_tx_executor.go index b2504b6b9b9d..d9b1997bfb3f 100644 --- a/vms/platformvm/txs/executor/standard_tx_executor.go +++ b/vms/platformvm/txs/executor/standard_tx_executor.go @@ -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,