Skip to content
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

Move reward logic from fvm_shared to the shared runtime #1519

Merged
merged 2 commits into from
Feb 9, 2024

Conversation

Stebalien
Copy link
Member

At the moment, I'm moving everything into fil_actors_runtime::builtin::reward. But... maybe we should have a new crate?

};
use super::*;

const ERR_BOUND: u64 = 350;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests moved from the tests/ directory so we can access private functions.

actors/market/src/ext.rs Outdated Show resolved Hide resolved
@Stebalien Stebalien requested a review from anorth February 9, 2024 02:08
Copy link
Member

@rvagg rvagg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't vouch for how these are used but it looks like a straight move and combine to me

@Stebalien Stebalien added this pull request to the merge queue Feb 9, 2024
Merged via the queue into master with commit d14c201 Feb 9, 2024
14 checks passed
@Stebalien Stebalien deleted the steb/import-reward-logic branch February 9, 2024 16:38
pub this_epoch_reward_smoothed: FilterEstimate,
#[serde(with = "bigint_ser")]
pub this_epoch_baseline_power: StoragePower,
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be consistent with our existing patterns elsewhere, this should move into the reward actor, and then be duplicated in the ext module of actors that call it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ☑️ Done (Archive)
Development

Successfully merging this pull request may close these issues.

3 participants