-
Notifications
You must be signed in to change notification settings - Fork 56
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(c-bridge): force min collateral #2468
Open
guidiaz
wants to merge
78
commits into
witnet:2.0-master
Choose a base branch
from
guidiaz:c-bridge/force-min-collateral
base: 2.0-master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
also: update secp256k1 deps close witnet#2418
also: make protocol versioning safer
This method allows to query the stakes of the specified argument. The argument can contain: - A validator and a withdrawer - A validator - A withdrawer - Empty argument, uses the node's address as validator. The type of the argument is an address as a string.
Please enter the commit message for your changes. Lines starting
- adapt to wsb v2.0 - report dr_tally_tx_hash instead of dr_tx_hash - low evm funds alert - detect and dismiss already reported queries
- adapt to wsb v2.0 - reject queries with collateral too low (<20 wit) - reject queries with total wit value too high - set dr tx fee to the minimum of query sla and config - polling rate set to half of eth_pollers' - log trace reporting witnet node's pkh
- adapt to wsb v2.0 - limit max batch sizes by config
- extract dr_tally_tx_hash from wit_dataRequestReport - calculate dr_timestamp as that of the block where the dr commit txs were included
guidiaz
force-pushed
the
c-bridge/force-min-collateral
branch
from
June 4, 2024 13:01
2a8be75
to
b540f8b
Compare
Tommytrg
requested changes
Jun 4, 2024
dr_min_collateral_nanowits, | ||
reward_collateral_ratio, | ||
); | ||
log::warn!("DRO [{}]: witnessing collateral ({}) increased to mininum ({})", dro_hash, dro_prev_collateral, dr_min_collateral_nanowits); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
log::warn!("DRO [{}]: witnessing collateral ({}) increased to mininum ({})", dro_hash, dro_prev_collateral, dr_min_collateral_nanowits); | |
log::warn!("DRO [{}]: witnessing collateral ({}) increased to minimum ({})", dro_hash, dro_prev_collateral, dr_min_collateral_nanowits); |
@@ -310,12 +311,11 @@ fn deserialize_and_validate_dr_bytes( | |||
match DataRequestOutput::from_pb_bytes(dr_bytes) { | |||
Err(e) => Err(DrSenderError::Deserialization { msg: e.to_string() }), | |||
Ok(dr_output) => { | |||
let required_reward_collateral_ratio = | |||
PSEUDO_CONSENSUS_CONSTANTS_WIP0022_REWARD_COLLATERAL_RATIO; | |||
let mut dr_output = dr_output.clone(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this .clone
isn't necessary
Suggested change
let mut dr_output = dr_output.clone(); | |
let mut dr_output = dr_output; |
Tommytrg
approved these changes
Jun 4, 2024
Tommytrg
approved these changes
Jun 7, 2024
aesedepece
force-pushed
the
2.0-master
branch
from
October 18, 2024 14:09
ebdb81c
to
33a49c4
Compare
aesedepece
force-pushed
the
2.0-master
branch
from
October 31, 2024 11:05
52bccd3
to
daa66db
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.