Skip to content

Commit

Permalink
rename OwnerRewardAddress to UserRewardAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
itswisdomagain committed Sep 22, 2019
1 parent 48ad576 commit 5cf2dba
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 110 deletions.
2 changes: 1 addition & 1 deletion backend/stakepoold/rpc/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ message GetTicketInfoRequest {
message GetTicketInfoResponse {
string MultiSigAddress = 1;
string VspRewardAddress = 2;
string OwnerRewardAddress = 3;
string UserRewardAddress = 3;
}

message SetAddedLowFeeTicketsRequest {
Expand Down
12 changes: 6 additions & 6 deletions backend/stakepoold/rpc/rpcserver/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ type ticketMetadata struct {
}

type TicketInfo struct {
MultiSigAddress string
VspRewardAddress string
OwnerRewardAddress string
MultiSigAddress string
VspRewardAddress string
UserRewardAddress string
}

// EvaluateStakePoolTicket evaluates a voting service ticket to see if it's
Expand Down Expand Up @@ -449,9 +449,9 @@ func (ctx *AppContext) GetTicketInfo(ticketHash string) (*TicketInfo, error) {
}

return &TicketInfo{
MultiSigAddress: multiSigAddress.EncodeAddress(),
VspRewardAddress: vspCommitAddr.EncodeAddress(),
OwnerRewardAddress: ownerCommitAddr.EncodeAddress(),
MultiSigAddress: multiSigAddress.EncodeAddress(),
VspRewardAddress: vspCommitAddr.EncodeAddress(),
UserRewardAddress: ownerCommitAddr.EncodeAddress(),
}, nil
}

Expand Down
6 changes: 3 additions & 3 deletions backend/stakepoold/rpc/rpcserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ func (s *stakepooldServer) GetTicketInfo(ctx context.Context, req *pb.GetTicketI
}

return &pb.GetTicketInfoResponse{
MultiSigAddress: ticketInfo.MultiSigAddress,
OwnerRewardAddress: ticketInfo.OwnerRewardAddress,
VspRewardAddress: ticketInfo.VspRewardAddress,
MultiSigAddress: ticketInfo.MultiSigAddress,
VspRewardAddress: ticketInfo.VspRewardAddress,
UserRewardAddress: ticketInfo.UserRewardAddress,
}, nil
}

Expand Down
Loading

0 comments on commit 5cf2dba

Please sign in to comment.