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

Feat/optimise oracle #6

Merged
merged 15 commits into from
Jul 23, 2024
Merged

Feat/optimise oracle #6

merged 15 commits into from
Jul 23, 2024

Conversation

yan-soon
Copy link
Collaborator

@yan-soon yan-soon commented Jul 15, 2024

  • add hook from carbon to check if a particular result (given a timestamp and oracle id) has already been committed
  • prune votes that have been committed
  • add chain id to signing of oracle votes
  • increase p2p frequency from 100ms -> 250ms
  • enable subaccount signing of oracle votes
  • add signature prefix to differentiate between main/subaccount signing, and signature type (ed25519/sr25519/secp256k1)

oracle/reactor.go Outdated Show resolved Hide resolved
}

const (
DefaultOracleSubAccountKeyName = "oracle_sub_account_key.json"
Copy link
Member

Choose a reason for hiding this comment

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

can we default to what was previously used by the legacy oracle service

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the legacy oracle service didnt have a key file like this because the key was added directly to the keyring, but since we are signing the oracle votes from cometbft, i used the same format as to how they import validator keys to sign block votes/proposals

@yan-soon yan-soon merged commit 532def2 into v0.38.5-patched Jul 23, 2024
9 of 16 checks passed
@yan-soon yan-soon deleted the feat/optimise-oracle branch July 23, 2024 08:24
@yan-soon yan-soon restored the feat/optimise-oracle branch September 26, 2024 12:41
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.

3 participants