-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test that pools have non-myopic member rewards #1783
Conversation
8ff53f2
to
636d4e4
Compare
636d4e4
to
4c73df1
Compare
0223947
to
ec1fc6c
Compare
bors try |
tryBuild failed |
ec1fc6c
to
03ae72b
Compare
bors try |
tryBuild failed |
17b7799
to
30870fc
Compare
If the ranking is weird, we can know what stake-value was used.
Fixup: Add todo about STAKE_POOLS_LIST_01 not passing in isolation Also test that pools are sorted
30870fc
to
4f436a6
Compare
bors try |
@@ -790,6 +792,8 @@ instance ToText NetworkLayerLog where | |||
[ "Destroying cursor connection at" | |||
, T.pack (show threadId) | |||
] | |||
MsgWillQueryRewardsForStake c -> | |||
"Will query non-myopic rewards using the stake " <> pretty c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the balance private and not to be logged? (not necessarily the user's balance, but likely correlated)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, fine. Balances are already logged as part of the wallet. Current logs aren't much private.
tryBuild failed |
(trying the branch locally) |
bors r+ |
Locally, the test pass when run in isolation. But it fails when run with the entire test-suite. One of two conditions is not verified. |
It seems the pools all have the same non-myopic member rewards. Perhaps leaving them running for long removes the noise. I tried giving one pool twice the amount of pledge/stake, and it seemed to work. But perhaps giving each pool different costs, or margins would be neater 🤔 |
bors try |
tryBuild failed
|
bors try |
tryBuild failed |
Such that we can test that pools actually are ordered by descending rewards.
3bf90ac
to
367b626
Compare
bors try |
tryBuild failed |
bors try |
tryBuild succeeded |
bors r+ |
Build succeeded |
Issue Number
#1276
Overview
GET /stake-pools
MsgWillQueryRewardsForStake
traceComments