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

Enhance ledger-tool for multi-epoch rewards#13837

Merged
mergify[bot] merged 3 commits intosolana-labs:masterfrom
ryoqun:ledger-tool-cap-multi-epoch-rewards
Nov 27, 2020
Merged

Enhance ledger-tool for multi-epoch rewards#13837
mergify[bot] merged 3 commits intosolana-labs:masterfrom
ryoqun:ledger-tool-cap-multi-epoch-rewards

Conversation

@ryoqun
Copy link
Copy Markdown
Contributor

@ryoqun ryoqun commented Nov 27, 2020

Problem

#13680 succeeded to retain ability for multi-epoch rewards for nano stake accounts, which was planned to be killed by #13233 .

And ledger-tool cap hasn't been prepared for it it beause I was planning to merge #13233.

Summary of Changes

So, support multi-epoch rewards correctly and bunch of other niceties:

  • --enable-stake-v2 handle more in-transistion ledger state. (we have now two relevant feature flags)
  • Show old_credits_observed as well for debugging
  • Additionally show effective_stake at the rewarded epoch for debugging

I'm pretty sure there is no functional change to core implementation; so I'm bypassing review to ease fixing more important bug (#13836).

Fixes #

@ryoqun ryoqun added automerge Merge this Pull Request automatically once CI passes v1.3 labels Nov 27, 2020
@ryoqun
Copy link
Copy Markdown
Contributor Author

ryoqun commented Nov 27, 2020

@ryoqun ryoqun added automerge v1.3, v1.4 labels now

I'm also backporting this into v1.3 just in case.

@ryoqun ryoqun changed the title Support ledger-tool for multi-epoch rewards Enhance ledger-tool for multi-epoch rewards Nov 27, 2020
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 27, 2020

Codecov Report

Merging #13837 (af9d9f7) into master (0b00a1b) will increase coverage by 0.0%.
The diff coverage is 50.0%.

@@           Coverage Diff           @@
##           master   #13837   +/-   ##
=======================================
  Coverage    82.0%    82.0%           
=======================================
  Files         381      381           
  Lines       93217    93220    +3     
=======================================
+ Hits        76522    76531    +9     
+ Misses      16695    16689    -6     

@mergify mergify Bot merged commit 6048342 into solana-labs:master Nov 27, 2020
mergify Bot pushed a commit that referenced this pull request Nov 27, 2020
* Support ledger-tool for multi-epoch rewards

* nits

* Ensure not to skip some records in csv

(cherry picked from commit 6048342)

# Conflicts:
#	ledger-tool/src/main.rs
mergify Bot pushed a commit that referenced this pull request Nov 27, 2020
* Support ledger-tool for multi-epoch rewards

* nits

* Ensure not to skip some records in csv

(cherry picked from commit 6048342)
mergify Bot added a commit that referenced this pull request Nov 27, 2020
* Support ledger-tool for multi-epoch rewards

* nits

* Ensure not to skip some records in csv

(cherry picked from commit 6048342)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

automerge Merge this Pull Request automatically once CI passes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant