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

added reward application before layer is processed by tortoise #617

Merged
merged 2 commits into from
Mar 6, 2019

Conversation

antonlerner
Copy link
Contributor

No description provided.

config/config.go Outdated
@@ -42,6 +43,7 @@ type Config struct {
HARE hareConfig.Config `mapstructure:"hare"`
TIME timeConfig.TimeConfig `mapstructure:"time"`
GAS state.GasParams `mapstructure:"gas"`
REWARD mesh.RewardParams
Copy link
Contributor

Choose a reason for hiding this comment

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

if gas and reward are basically config's it would be nice to align the naming

mesh/mesh.go Outdated
@@ -92,6 +94,12 @@ func (m *Mesh) SetLatestLayer(idx uint32) {

func (m *Mesh) ValidateLayer(layer *Layer) {
m.Info("Validate layer %d", layer.Index())

//todo: with the introduction of rewards we need to refactor this loop out of since it now serves multiple purposes
Copy link
Contributor

Choose a reason for hiding this comment

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

diden't understand what still needs to be done here

@antonlerner antonlerner merged commit ae9116f into develop Mar 6, 2019
@y0sher y0sher deleted the reward_integration branch September 10, 2019 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants