-
Notifications
You must be signed in to change notification settings - Fork 4
28 early quit event validation #81
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
Merged
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
8f305de
Early quit event validation (to test)
GiovanniTorrisi-ChainSecurity 7472517
Add simple test for missing event occurrence
GiovanniTorrisi-ChainSecurity 2cd8b90
Temporarily suppress debug print
GiovanniTorrisi-ChainSecurity 7a0c761
Split get_events function, debug log
GiovanniTorrisi-ChainSecurity e5e31d4
Fix formatting
GiovanniTorrisi-ChainSecurity 2fae3da
Fix double pagination in event validation, debug prints
GiovanniTorrisi-ChainSecurity baef630
Debug log
GiovanniTorrisi-ChainSecurity 396a4bc
Put failing command first (debug)
GiovanniTorrisi-ChainSecurity 07ec935
Up
GiovanniTorrisi-ChainSecurity 375808c
Up
GiovanniTorrisi-ChainSecurity a87f3d2
Add verbose log
GiovanniTorrisi-ChainSecurity f3dd5f3
Debug log
GiovanniTorrisi-ChainSecurity 3752607
Handle empty string response from eth_getLogs
GiovanniTorrisi-ChainSecurity c2d6e46
Print full web3 response
GiovanniTorrisi-ChainSecurity 76213cd
Full response text log
GiovanniTorrisi-ChainSecurity 61da67c
Fix formatting
GiovanniTorrisi-ChainSecurity 5598bc0
Query same amount of blocks as main
GiovanniTorrisi-ChainSecurity 6e74984
Fix formatting
GiovanniTorrisi-ChainSecurity 181ed00
Decrease max block range from 10000 to 5000
GiovanniTorrisi-ChainSecurity 8557f5e
Query odd block range
GiovanniTorrisi-ChainSecurity 3463fc0
Decrease block range to 2000
GiovanniTorrisi-ChainSecurity a415fd6
Even block range
GiovanniTorrisi-ChainSecurity 3ef3434
Follow query pattern 10'000 block-range, then 9998 block-range
GiovanniTorrisi-ChainSecurity b804201
Restore ci_tests.sh
GiovanniTorrisi-ChainSecurity f1432df
Refactor paginated event query
1ac8ca4
Try consistent init-validate block ranges
GiovanniTorrisi-ChainSecurity 446ce65
Query 10k blocks instead of 9999
GiovanniTorrisi-ChainSecurity 145af49
Show warning of cached proxy empty response
GiovanniTorrisi-ChainSecurity 5355bb7
Revert "Query 10k blocks instead of 9999"
GiovanniTorrisi-ChainSecurity 7926583
Update cached proxy cache
GiovanniTorrisi-ChainSecurity de6abad
Minor fix
GiovanniTorrisi-ChainSecurity 7e6418b
Update cached proxy cache
GiovanniTorrisi-ChainSecurity 1bf21ce
Push debug CI test
GiovanniTorrisi-ChainSecurity b3eb3d5
Revert "Update cached proxy cache"
GiovanniTorrisi-ChainSecurity 2054828
Revert "Update cached proxy cache"
GiovanniTorrisi-ChainSecurity 266a580
Correctly update cached proxy cache
GiovanniTorrisi-ChainSecurity 699b6ef
Up
GiovanniTorrisi-ChainSecurity 68bb9ad
Clean up
GiovanniTorrisi-ChainSecurity 0724277
added check for fewer events than expected
98c56f1
format
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -197,53 +197,80 @@ fn validate_dvf( | |
| // Validate events | ||
| print_progress("Validating Critical Events.", &mut pc, &progress_mode); | ||
| let pb = ProgressBar::new(filled.critical_events.len().try_into().unwrap()); | ||
| let start_block = filled.deployment_block_num; | ||
| let end_block = validation_block_num; | ||
|
|
||
| for critical_event in &filled.critical_events { | ||
| let seen_events = web3::get_eth_events( | ||
| config, | ||
| &filled.address, | ||
| filled.deployment_block_num, | ||
| validation_block_num, | ||
| &vec![critical_event.topic0], | ||
| )?; | ||
| if seen_events.len() != critical_event.occurrences.len() { | ||
| return Err(ValidationError::Invalid(format!( | ||
| "Found {} occurrences of event {}, but expected {}.", | ||
| seen_events.len(), | ||
| critical_event.sig, | ||
| critical_event.occurrences.len() | ||
| ))); | ||
| } | ||
| let mut num_occurrences = 0; | ||
| let num_occurrences_expected = critical_event.occurrences.len(); | ||
|
|
||
| let mut current_from = start_block; | ||
| while current_from <= end_block { | ||
| let current_to = std::cmp::min( | ||
| current_from + config.max_blocks_per_event_query - 1, | ||
| end_block, | ||
| ); | ||
| let seen_events = web3::get_eth_events( | ||
| config, | ||
| &filled.address, | ||
| current_from, | ||
| current_to, | ||
| &vec![critical_event.topic0], | ||
| )?; | ||
|
|
||
| #[allow(clippy::needless_range_loop)] | ||
| for i in 0..seen_events.len() { | ||
| let log_inner = &seen_events[i].inner; | ||
| if log_inner.topics() != critical_event.occurrences[i].topics { | ||
| let message = format!( | ||
| "Mismatching topics for event occurrence {} of {}.", | ||
| i, critical_event.sig | ||
| ); | ||
| if continue_on_mismatch { | ||
| mismatch_found = true; | ||
| println!("{}", message); | ||
| } else { | ||
| return Err(ValidationError::Invalid(message)); | ||
| } | ||
| if num_occurrences + seen_events.len() > num_occurrences_expected { | ||
| return Err(ValidationError::Invalid(format!( | ||
| "Found more occurrences of event {} than expected ({}).", | ||
| critical_event.sig, num_occurrences_expected | ||
| ))); | ||
| } | ||
| if log_inner.data.data != critical_event.occurrences[i].data { | ||
| let message = format!( | ||
| "Mismatching data for event occurrence {} of {}.", | ||
| i, critical_event.sig | ||
| ); | ||
| if continue_on_mismatch { | ||
| mismatch_found = true; | ||
| println!("{}", message); | ||
| } else { | ||
| return Err(ValidationError::Invalid(message)); | ||
|
|
||
| for event in seen_events { | ||
| let expected = &critical_event.occurrences[num_occurrences]; | ||
| let log_inner = &event.inner; | ||
|
|
||
| if log_inner.topics() != expected.topics { | ||
| let message = format!( | ||
| "Mismatching topics for event occurrence {} of {}.", | ||
| num_occurrences, critical_event.sig | ||
| ); | ||
| if continue_on_mismatch { | ||
| mismatch_found = true; | ||
| println!("{}", message); | ||
| } else { | ||
| return Err(ValidationError::Invalid(message)); | ||
| } | ||
| } | ||
|
|
||
| if log_inner.data.data != expected.data { | ||
| let message = format!( | ||
| "Mismatching data for event occurrence {} of {}.", | ||
| num_occurrences, critical_event.sig | ||
| ); | ||
| if continue_on_mismatch { | ||
| mismatch_found = true; | ||
| println!("{}", message); | ||
| } else { | ||
| return Err(ValidationError::Invalid(message)); | ||
| } | ||
| } | ||
|
|
||
| num_occurrences += 1; | ||
| } | ||
|
|
||
| current_from = current_to + 1; | ||
| } | ||
|
|
||
| if num_occurrences < num_occurrences_expected { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed here |
||
| return Err(ValidationError::Invalid(format!( | ||
| "Found less occurrences of event {} than expected ({}).", | ||
| critical_event.sig, num_occurrences_expected | ||
| ))); | ||
| } | ||
|
|
||
| pb.inc(1); | ||
| } | ||
|
|
||
| pb.finish_and_clear(); | ||
|
|
||
| if mismatch_found { | ||
|
|
@@ -281,7 +308,7 @@ fn validate_dvf( | |
| registry, | ||
| seen_ids, | ||
| allow_untrusted, | ||
| false, | ||
| continue_on_mismatch, | ||
| Some(reference.contract_name.clone()), | ||
| )); | ||
| } | ||
|
|
||
1 change: 1 addition & 0 deletions
1
tests/cachedrpc/0a2a35c2c728c70e21b6ff193ad413d2e35428dae50a303cebbf1b170079436a
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"jsonrpc":"2.0","id":1,"result":[]} |
1 change: 1 addition & 0 deletions
1
tests/cachedrpc/13285d6eb37e79061cfc571a62232661c9148879c9b6226dbe3d7bf45993e523
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"jsonrpc":"2.0","id":1,"result":[]} |
1 change: 1 addition & 0 deletions
1
tests/cachedrpc/156916f3ceb9c306fdf4c1a7a31ab42b57784347369540213d0a168d756f6aec
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"jsonrpc":"2.0","id":1,"result":[]} |
1 change: 1 addition & 0 deletions
1
tests/cachedrpc/1837ef53c077f10e317c6e9d6407d42cefb8fdbffc83a05b037e581ab6e565ac
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"jsonrpc":"2.0","id":1,"result":[]} |
1 change: 1 addition & 0 deletions
1
tests/cachedrpc/41aa27ae5b69108be55cd3f15cac2e08bbbd994f2c406afdb03da679c7f15e20
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"jsonrpc":"2.0","id":1,"result":[]} |
1 change: 1 addition & 0 deletions
1
tests/cachedrpc/51c302989b0147a93f276a79a931948cfb9a6edd34f989a62298c276838dfce9
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
tests/cachedrpc/54f1daa3bcd13a4303fccf7b4b1df72b4f11cc6fc1ae31fb46920501e9232d6f
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
tests/cachedrpc/5ac8748be5e26edbbc1435dd2ce256969135e370b8dcf0b437d196640c88bec6
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"jsonrpc":"2.0","id":1,"result":[{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000005180db0237291a6449dda9ed33ad90a38787621c"],"data":"0x0000000000000000000000000000000000000000000000000de0b6b3a7640000","blockNumber":"0xeffe04","transactionHash":"0x4254dd24f8b5f9626ef36fcc8fa5942e799a101a31805b055cfff4c96abc3a02","transactionIndex":"0x3a","blockHash":"0x58389e7a967d7a21c788d7ade8dda06d7dab444cbaf6cf5ecc4072311f019fcc","logIndex":"0x5f","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0xe0dcb47e0eb67e20e87f3e34aab31c669ecec7466e8b7fb329d586dadebac6b6","0x000000000000000000000000bafa44efe7901e04e39dad13167d089c559c1138","0x0000000000000000000000005180db0237291a6449dda9ed33ad90a38787621c"],"data":"0x0000000000000000000000000000000000000000000000000de0b6b3a7640000","blockNumber":"0xeffe04","transactionHash":"0x4254dd24f8b5f9626ef36fcc8fa5942e799a101a31805b055cfff4c96abc3a02","transactionIndex":"0x3a","blockHash":"0x58389e7a967d7a21c788d7ade8dda06d7dab444cbaf6cf5ecc4072311f019fcc","logIndex":"0x60","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925","0x0000000000000000000000005180db0237291a6449dda9ed33ad90a38787621c","0x000000000000000000000000ac3e018457b222d93114458476f3e3416abbe38f"],"data":"0x0000000000000000000000000000000000000000000000000de0b6b3a7640000","blockNumber":"0xeffe2e","transactionHash":"0xbf88046d7c09142ab075ba98a41a9f5df5fa64fe0806cbdb5e4c1689a9141e30","transactionIndex":"0x58","blockHash":"0x7fd46db75c931331680a7f5b4a9791a745931f138e9c16cd68fc472fbc242ee9","logIndex":"0x87","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925","0x0000000000000000000000005180db0237291a6449dda9ed33ad90a38787621c","0x000000000000000000000000ac3e018457b222d93114458476f3e3416abbe38f"],"data":"0x0000000000000000000000000000000000000000000000000000000000000000","blockNumber":"0xeffe2e","transactionHash":"0xbf88046d7c09142ab075ba98a41a9f5df5fa64fe0806cbdb5e4c1689a9141e30","transactionIndex":"0x58","blockHash":"0x7fd46db75c931331680a7f5b4a9791a745931f138e9c16cd68fc472fbc242ee9","logIndex":"0x88","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x0000000000000000000000005180db0237291a6449dda9ed33ad90a38787621c","0x000000000000000000000000ac3e018457b222d93114458476f3e3416abbe38f"],"data":"0x0000000000000000000000000000000000000000000000000de0b6b3a7640000","blockNumber":"0xeffe2e","transactionHash":"0xbf88046d7c09142ab075ba98a41a9f5df5fa64fe0806cbdb5e4c1689a9141e30","transactionIndex":"0x58","blockHash":"0x7fd46db75c931331680a7f5b4a9791a745931f138e9c16cd68fc472fbc242ee9","logIndex":"0x89","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c"],"data":"0x000000000000000000000000b1748c79709f4ba2dd82834b8c82d4a505003f270000000000000000000000008306300ffd616049fd7e4b0354a64da835c1a81c","blockNumber":"0xefff11","transactionHash":"0xab1e412c7757938bde78c46288091fd1ae46b5d8bde8fdfcd868416eadd34222","transactionIndex":"0x3f","blockHash":"0x82db4ee665687982a96e944e69b3edadc35cc6d3a234d014d44365e539dd54d3","logIndex":"0x8a","removed":false}]} |
1 change: 1 addition & 0 deletions
1
tests/cachedrpc/691d45d26b0a1bb56842c84ad985b33351e7486991ebc638875ab0428c0db110
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
tests/cachedrpc/8839e451ddd93b7813b8da22b6f97d02dc1b5cf5b73b13c4a9f362d39f1b838d
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"jsonrpc":"2.0","id":1,"result":[]} |
1 change: 1 addition & 0 deletions
1
tests/cachedrpc/a68f2ee07f4fc88d0846cc7999b7d39cc986809c45cafae02144f4268de0a5e1
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"jsonrpc":"2.0","id":1,"result":[]} |
1 change: 1 addition & 0 deletions
1
tests/cachedrpc/bc0acad67d193fbbde0b3ab0170773f3ea24c140a18965800cbb33d6efd48eb8
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"jsonrpc":"2.0","id":1,"result":[{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c"],"data":"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b1748c79709f4ba2dd82834b8c82d4a505003f27","blockNumber":"0xef599e","transactionHash":"0x8b36720344797ed57f2e22cf2aa56a09662165567a6ade701259cde560cc4a9d","transactionIndex":"0x14","blockHash":"0xd7ed5e920920b64f5efbcc91a032dd0378d506088a00bba2fb1c66cd0dbae25b","logIndex":"0x34","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0x6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f6"],"data":"0x000000000000000000000000bafa44efe7901e04e39dad13167d089c559c1138","blockNumber":"0xef5a6b","transactionHash":"0x198e6d0873d4521837bd014dacc4329b11297dd79a0f879d5049753f9f89e82b","transactionIndex":"0x12","blockHash":"0x768feaea2f3bf3d6a7627b3383902c032804427c65042e32fcc0de15d41296c8","logIndex":"0x1e","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000bafa44efe7901e04e39dad13167d089c559c1138"],"data":"0x0000000000000000000000000000000000000000000000000de0b6b3a7640000","blockNumber":"0xef5a90","transactionHash":"0x9601f827bb4459bb7f636c844dede00786c5a076bce99516429fe50e3163ba93","transactionIndex":"0xbb","blockHash":"0x61bcedce14b858f9ce637263340a263bdc6f8c8a89c92773f14d3d03718f0b33","logIndex":"0x188","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0xe0dcb47e0eb67e20e87f3e34aab31c669ecec7466e8b7fb329d586dadebac6b6","0x000000000000000000000000bafa44efe7901e04e39dad13167d089c559c1138","0x000000000000000000000000bafa44efe7901e04e39dad13167d089c559c1138"],"data":"0x0000000000000000000000000000000000000000000000000de0b6b3a7640000","blockNumber":"0xef5a90","transactionHash":"0x9601f827bb4459bb7f636c844dede00786c5a076bce99516429fe50e3163ba93","transactionIndex":"0xbb","blockHash":"0x61bcedce14b858f9ce637263340a263bdc6f8c8a89c92773f14d3d03718f0b33","logIndex":"0x189","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925","0x000000000000000000000000bafa44efe7901e04e39dad13167d089c559c1138","0x000000000000000000000000ac3e018457b222d93114458476f3e3416abbe38f"],"data":"0x0000000000000000000000000000000000000000000000000de0b6b3a7640000","blockNumber":"0xef5a90","transactionHash":"0x9601f827bb4459bb7f636c844dede00786c5a076bce99516429fe50e3163ba93","transactionIndex":"0xbb","blockHash":"0x61bcedce14b858f9ce637263340a263bdc6f8c8a89c92773f14d3d03718f0b33","logIndex":"0x18b","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925","0x000000000000000000000000bafa44efe7901e04e39dad13167d089c559c1138","0x000000000000000000000000ac3e018457b222d93114458476f3e3416abbe38f"],"data":"0x0000000000000000000000000000000000000000000000000000000000000000","blockNumber":"0xef5a90","transactionHash":"0x9601f827bb4459bb7f636c844dede00786c5a076bce99516429fe50e3163ba93","transactionIndex":"0xbb","blockHash":"0x61bcedce14b858f9ce637263340a263bdc6f8c8a89c92773f14d3d03718f0b33","logIndex":"0x18d","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x000000000000000000000000bafa44efe7901e04e39dad13167d089c559c1138","0x000000000000000000000000ac3e018457b222d93114458476f3e3416abbe38f"],"data":"0x0000000000000000000000000000000000000000000000000de0b6b3a7640000","blockNumber":"0xef5a90","transactionHash":"0x9601f827bb4459bb7f636c844dede00786c5a076bce99516429fe50e3163ba93","transactionIndex":"0xbb","blockHash":"0x61bcedce14b858f9ce637263340a263bdc6f8c8a89c92773f14d3d03718f0b33","logIndex":"0x18e","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000005180db0237291a6449dda9ed33ad90a38787621c"],"data":"0x00000000000000000000000000000000000000000000000000038d7ea4c68000","blockNumber":"0xef5a98","transactionHash":"0x1488af0b2eb93b6c0e82de337d978781c8e5996eaecc653abf392d06ebe75c08","transactionIndex":"0x24","blockHash":"0x9383c3f7717b6ef88523f5a0f9ff69a492a43bdbf26adf40239b39e11d2c5438","logIndex":"0x81","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0xe0dcb47e0eb67e20e87f3e34aab31c669ecec7466e8b7fb329d586dadebac6b6","0x000000000000000000000000bafa44efe7901e04e39dad13167d089c559c1138","0x0000000000000000000000005180db0237291a6449dda9ed33ad90a38787621c"],"data":"0x00000000000000000000000000000000000000000000000000038d7ea4c68000","blockNumber":"0xef5a98","transactionHash":"0x1488af0b2eb93b6c0e82de337d978781c8e5996eaecc653abf392d06ebe75c08","transactionIndex":"0x24","blockHash":"0x9383c3f7717b6ef88523f5a0f9ff69a492a43bdbf26adf40239b39e11d2c5438","logIndex":"0x82","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x0000000000000000000000005180db0237291a6449dda9ed33ad90a38787621c","0x000000000000000000000000ac3e018457b222d93114458476f3e3416abbe38f"],"data":"0x00000000000000000000000000000000000000000000000000038d7ea4c68000","blockNumber":"0xef5a9e","transactionHash":"0x1d2add7b30b4d411ef95b948af5b6a13a60ec91dadbcbd87b6da5da8bc16a91b","transactionIndex":"0x4b","blockHash":"0xc836180c9370f03266774891a320275b87276b7a74fe937db3c848fbaf2c7df6","logIndex":"0xbb","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22"],"data":"0x0000000000000000000000008306300ffd616049fd7e4b0354a64da835c1a81c","blockNumber":"0xef6ed1","transactionHash":"0xa5ab72433014588d5a41e73554c2915a483124d54321a8e6acf1912132c7718c","transactionIndex":"0x44","blockHash":"0x702b9dbae3879a1071e0c3443ef6c05d81874e42fa1170f003e98ad01c1234cb","logIndex":"0x29","removed":false}]} |
1 change: 1 addition & 0 deletions
1
tests/cachedrpc/ee50d9de4aee5ce8328b308ff68d2d16692d0a5c3bd9b9904cf7644339c07461
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"jsonrpc":"2.0","id":1,"result":[]} |
1 change: 1 addition & 0 deletions
1
tests/cachedrpc/f10fdf2d1fb15e56674124c8cc4324fb6764c926ae0022ca10e776892ab299a3
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.
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.
this no longer checks if the number of occurrences is lower than the expected ones. if a dvf has been set up correctly, this should never happen but there are no guarantees that the dvfs are set up correctly. you can now create a dvf with an additional event that has not been emitted yet and it will validate in the future once it is emitted.