Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Add is_valid member function to block_signing_authority_v0 #688

Merged
merged 1 commit into from
Oct 2, 2019

Conversation

arhag
Copy link
Contributor

@arhag arhag commented Oct 2, 2019

Change Description

Add is_valid member function to block_signing_authority_v0 which allows the caller to determine whether the block signing authority is valid, or:

  • does not have repeating keys;
  • the sum of the weights is at least equal to the threshold;
  • and, the threshold is not 0.

It does not validate whether the keys are valid.

These are the same validations that are done on the EOSIO native side for each of the block signing authorities submitted via set_proposed_producers_ex when using the new format (at least after EOSIO/eos#8021 has been merged in).

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

@arhag arhag merged commit aad0c47 into develop Oct 2, 2019
@arhag arhag deleted the block_signing_authority-is_valid branch October 2, 2019 21:37
rise-worlds pushed a commit to potato-coin/eosio.cdt that referenced this pull request Jul 14, 2020
Add is_valid member function to block_signing_authority_v0
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants