Skip to content

Commit

Permalink
Merge branch 'implement-acp-77-warp-verification' into implement-acp-…
Browse files Browse the repository at this point in the history
…77-warp-signing
  • Loading branch information
StephenButtolph authored Nov 13, 2024
2 parents e485bd0 + 52e04ff commit 7953623
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion snow/validators/traced_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (s *tracedState) GetCurrentHeight(ctx context.Context) (uint64, error) {
}

func (s *tracedState) GetSubnetID(ctx context.Context, chainID ids.ID) (ids.ID, error) {
ctx, span := s.tracer.Start(ctx, s.getValidatorSetTag, oteltrace.WithAttributes(
ctx, span := s.tracer.Start(ctx, s.getSubnetIDTag, oteltrace.WithAttributes(
attribute.Stringer("chainID", chainID),
))
defer span.End()
Expand Down
11 changes: 7 additions & 4 deletions vms/platformvm/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ type SubnetOnlyValidator struct {
StartTime uint64
Weight uint64
MinNonce uint64
// Balance is the remaining amount of AVAX this SoV has to pay the
// Balance is the remaining amount of AVAX this SoV has for paying the
// continuous fee.
Balance uint64
}
Expand All @@ -352,9 +352,12 @@ func (c *client) GetSubnetOnlyValidator(
options ...rpc.Option,
) (SubnetOnlyValidator, uint64, error) {
res := &GetSubnetOnlyValidatorReply{}
err := c.requester.SendRequest(ctx, "platform.getSubnetOnlyValidator", &GetSubnetOnlyValidatorArgs{
ValidationID: validationID,
}, res, options...)
err := c.requester.SendRequest(ctx, "platform.getSubnetOnlyValidator",
&GetSubnetOnlyValidatorArgs{
ValidationID: validationID,
},
res, options...,
)
if err != nil {
return SubnetOnlyValidator{}, 0, err
}
Expand Down
6 changes: 4 additions & 2 deletions vms/platformvm/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -984,8 +984,9 @@ type GetSubnetOnlyValidatorReply struct {
StartTime avajson.Uint64 `json:"startTime"`
Weight avajson.Uint64 `json:"weight"`
MinNonce avajson.Uint64 `json:"minNonce"`
// Balance is the remaining amount of AVAX this SoV has to pay the
// continuous fee, according to the last accepted state.
// Balance is the remaining amount of AVAX this SoV has for paying the
// continuous fee, according to the last accepted state. If the validator is
// inactive, the balance will be 0.
Balance avajson.Uint64 `json:"balance"`
// Height is the height of the last accepted block
Height avajson.Uint64 `json:"height"`
Expand All @@ -996,6 +997,7 @@ func (s *Service) GetSubnetOnlyValidator(r *http.Request, args *GetSubnetOnlyVal
s.vm.ctx.Log.Debug("API called",
zap.String("service", "platform"),
zap.String("method", "getSubnetOnlyValidator"),
zap.Stringer("validationID", args.ValidationID),
)

s.vm.ctx.Lock.Lock()
Expand Down

0 comments on commit 7953623

Please sign in to comment.