Skip to content

NO-TICKET: Relax constraints on the ValidatorSecret trait#63

Closed
fizyk20 wants to merge 1 commit intocasper-network:masterfrom
fizyk20:validator_secret
Closed

NO-TICKET: Relax constraints on the ValidatorSecret trait#63
fizyk20 wants to merge 1 commit intocasper-network:masterfrom
fizyk20:validator_secret

Conversation

@fizyk20
Copy link
Contributor

@fizyk20 fizyk20 commented Jul 9, 2020

This replaces a bunch of #[derive]s on Highway structs with manual implementations so that Context::ValidatorSecret doesn't have to implement Clone, Debug and Eq. For some reason, even though these structs only contain fields of type Context::ValidatorSecret::Signature, the derives require these traits to also be implemented on ValidatorSecret itself, and we might deliberately not want to implement them for secret values.

}

// `#[derive]` doesn't work if `C::ValidatorSecret` is not `Eq`
impl<C: Context> Eq for SignedWireVote<C> {}
Copy link
Contributor

Choose a reason for hiding this comment

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

What's happening here? Is it using the PartialEq?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. Trait Eq is just a marker which says that the PartialEq implementation has some specific properties. It doesn't add any methods itself.

@fizyk20
Copy link
Contributor Author

fizyk20 commented Jul 9, 2020

Closing in favor of #64

@fizyk20 fizyk20 closed this Jul 9, 2020
@fizyk20 fizyk20 deleted the validator_secret branch July 9, 2020 12:10
dwerner pushed a commit to dwerner/casper-node that referenced this pull request Apr 4, 2022
63: Remove temporary restrictions on trie leaf size and number of delegators per validator r=rafal-ch a=rafal-ch

This PR removes a temporary limit on the maximum size for a trie leaf and lifts the restriction on the max number of delegators per validator.

Closes casper-network#2636

Co-authored-by: Rafał Chabowski <rafal@casperlabs.io>
fizyk20 pushed a commit to fizyk20/casper-node that referenced this pull request Sep 9, 2022
rafal-ch pushed a commit that referenced this pull request Sep 11, 2024
rafal-ch pushed a commit that referenced this pull request Sep 11, 2024
* add byte_price field

* fix MAX_GAS_PER_TX to apply to gas limit instead of gas price
rafal-ch pushed a commit that referenced this pull request Sep 11, 2024
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