Skip to content

Comments

feat: implement admin-only oracle consensus threshold update (#75)#172

Open
GoodnessJohn wants to merge 1 commit intoNetwalls:mainfrom
GoodnessJohn:feature/oracle-consensus-threshold-75
Open

feat: implement admin-only oracle consensus threshold update (#75)#172
GoodnessJohn wants to merge 1 commit intoNetwalls:mainfrom
GoodnessJohn:feature/oracle-consensus-threshold-75

Conversation

@GoodnessJohn
Copy link
Contributor

  • Add set_consensus_threshold function with strict admin access control
  • Validate threshold >= 1 and <= oracle_count
  • Emit ThresholdUpdatedEvent with previous/new values and timestamp
  • Add 10 comprehensive unit tests covering:
    • Successful updates and boundary values
    • Unauthorized access attempts
    • Invalid threshold rejection (zero, exceeding count)
    • Event emission verification
    • Multiple updates and integration scenarios
  • Maintain deterministic execution and storage integrity
  • Include complete documentation and validation scripts

Closes #75

…s#75)

- Add set_consensus_threshold function with strict admin access control
- Validate threshold >= 1 and <= oracle_count
- Emit ThresholdUpdatedEvent with previous/new values and timestamp
- Add 10 comprehensive unit tests covering:
  - Successful updates and boundary values
  - Unauthorized access attempts
  - Invalid threshold rejection (zero, exceeding count)
  - Event emission verification
  - Multiple updates and integration scenarios
- Maintain deterministic execution and storage integrity
- Include complete documentation and validation scripts

Closes Netwalls#75
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.

[Contract] Implement set_consensus_threshold in Oracle

1 participant