feat(c-bridge): force min collateral#2468
Open
guidiaz wants to merge 78 commits intowitnet:2.0-masterfrom
Open
feat(c-bridge): force min collateral#2468guidiaz wants to merge 78 commits intowitnet:2.0-masterfrom
guidiaz wants to merge 78 commits intowitnet:2.0-masterfrom
Conversation
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
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); |
Member
There was a problem hiding this comment.
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); |
| Ok(dr_output) => { | ||
| let required_reward_collateral_ratio = | ||
| PSEUDO_CONSENSUS_CONSTANTS_WIP0022_REWARD_COLLATERAL_RATIO; | ||
| let mut dr_output = dr_output.clone(); |
Member
There was a problem hiding this comment.
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
ebdb81c to
33a49c4
Compare
52bccd3 to
daa66db
Compare
Member
|
@guidiaz is this relevant or needed anymore? |
This file contains hidden or 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
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.