Skip to content

Commit

Permalink
Merge branch 'implement-acp-77-increase-balance-tx' into implement-ac…
Browse files Browse the repository at this point in the history
…p-77-disable-subnet-validator-tx
  • Loading branch information
StephenButtolph authored Oct 2, 2024
2 parents 1145367 + 77a69c9 commit 8da2f93
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions vms/platformvm/txs/executor/standard_tx_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,12 @@ func (e *StandardTxExecutor) ConvertSubnetTx(tx *txs.ConvertSubnetTx) error {
)
for i, vdr := range tx.Validators {
vdr := vdr

nodeID, err := ids.ToNodeID(vdr.NodeID)
if err != nil {
return err
}

remainingBalanceOwner, err := txs.Codec.Marshal(txs.CodecVersion, &vdr.RemainingBalanceOwner)
if err != nil {
return err
Expand All @@ -566,7 +572,7 @@ func (e *StandardTxExecutor) ConvertSubnetTx(tx *txs.ConvertSubnetTx) error {
sov := state.SubnetOnlyValidator{
ValidationID: tx.Subnet.Append(uint32(i)),
SubnetID: tx.Subnet,
NodeID: vdr.NodeID,
NodeID: nodeID,
PublicKey: bls.PublicKeyToUncompressedBytes(vdr.Signer.Key()),
RemainingBalanceOwner: remainingBalanceOwner,
DeactivationOwner: deactivationOwner,
Expand Down Expand Up @@ -597,7 +603,7 @@ func (e *StandardTxExecutor) ConvertSubnetTx(tx *txs.ConvertSubnetTx) error {
}

subnetConversionData.Validators[i] = message.SubnetConversionValidatorData{
NodeID: vdr.NodeID.Bytes(),
NodeID: vdr.NodeID,
BLSPublicKey: vdr.Signer.PublicKey,
Weight: vdr.Weight,
}
Expand Down

0 comments on commit 8da2f93

Please sign in to comment.