Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Rpc: make getStakeActivation response consistent for undelegated accounts #16038

Merged

Conversation

CriesofCarrots
Copy link
Contributor

Problem

For inactive epochs of a stake account, the getStakeActivation endpoint returns a different response when a stake account has never been delegated vs when it has.

Summary of Changes

Make consistent. If the stake account exists but is not yet delegated, return the same inactive RpcStakeActivation as if the account had been delegated and immediately deactivated.

Fixes #16021

@codecov
Copy link

codecov bot commented Mar 19, 2021

Codecov Report

Merging #16038 (14938dc) into master (939c654) will increase coverage by 0.0%.
The diff coverage is 0.0%.

@@           Coverage Diff           @@
##           master   #16038   +/-   ##
=======================================
  Coverage    79.9%    79.9%           
=======================================
  Files         409      409           
  Lines      107685   107692    +7     
=======================================
+ Hits        86102    86127   +25     
+ Misses      21583    21565   -18     

@CriesofCarrots CriesofCarrots merged commit 2ec24d4 into solana-labs:master Mar 19, 2021
mergify bot pushed a commit that referenced this pull request Mar 19, 2021
mergify bot added a commit that referenced this pull request Mar 19, 2021
…16038) (#16040)

(cherry picked from commit 2ec24d4)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
@CriesofCarrots CriesofCarrots deleted the stake-activation-nit branch March 30, 2021 16:21
@brooksprumo brooksprumo mentioned this pull request Aug 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Json-RPC getStakeActivation Response
1 participant