-
Notifications
You must be signed in to change notification settings - Fork 197
Add transaction downloader and verifier #2679
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 10 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
1eb5720
Add transaction downloader
conradoplg 5f2e744
Changed mempool downloader to be like inbound
conradoplg 8cc6eef
Verifier working (logs result)
conradoplg 345c86d
Apply suggestions from code review
conradoplg 033bb28
Apply suggestions from code review
conradoplg 37ddeb0
Fix coinbase check for mempool, improve is_coinbase() docs
conradoplg 8da4f40
Change other downloads.rs docs to reflect the mempool downloads.rs ch…
conradoplg a68bf1c
Change TIMEOUTs to downloads.rs; add docs
conradoplg 91e8cfe
Merge remote-tracking branch 'origin/main' into transaction-sync-veri…
conradoplg 5e4488a
Merge branch 'main' into transaction-sync-verifier
conradoplg 315eaf5
Renamed is_coinbase() to has_valid_coinbase_transaction_inputs() and …
conradoplg bc5fc1f
Merge remote-tracking branch 'origin/main' into transaction-sync-veri…
conradoplg d90463c
Validate network upgrade for V4 transactions; check before computing …
conradoplg a3b73f5
Add block_ prefix to downloads and verifier
conradoplg 930ea62
Merge remote-tracking branch 'origin/main' into transaction-sync-veri…
conradoplg 1b01f3c
Update zebra-consensus/src/transaction.rs
conradoplg 6969c31
Add consensus doc; add more Block prefixes
conradoplg 647bcd8
Merge remote-tracking branch 'origin/main' into transaction-sync-veri…
conradoplg 8b06f6d
Merge branch 'main' into transaction-sync-verifier
teor2345 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,207 @@ | ||
| { | ||
| "__inputs": [ | ||
| { | ||
| "name": "DS_PROMETHEUS-ZEBRA", | ||
| "label": "Prometheus-Zebra", | ||
| "description": "", | ||
| "type": "datasource", | ||
| "pluginId": "prometheus", | ||
| "pluginName": "Prometheus" | ||
| } | ||
| ], | ||
| "__requires": [ | ||
| { | ||
| "type": "grafana", | ||
| "id": "grafana", | ||
| "name": "Grafana", | ||
| "version": "8.1.2" | ||
| }, | ||
| { | ||
| "type": "panel", | ||
| "id": "graph", | ||
| "name": "Graph (old)", | ||
| "version": "" | ||
| }, | ||
| { | ||
| "type": "datasource", | ||
| "id": "prometheus", | ||
| "name": "Prometheus", | ||
| "version": "1.0.0" | ||
| } | ||
| ], | ||
| "annotations": { | ||
| "list": [ | ||
| { | ||
| "builtIn": 1, | ||
| "datasource": "-- Grafana --", | ||
| "enable": true, | ||
| "hide": true, | ||
| "iconColor": "rgba(0, 211, 255, 1)", | ||
| "name": "Annotations & Alerts", | ||
| "target": { | ||
| "limit": 100, | ||
| "matchAny": false, | ||
| "tags": [], | ||
| "type": "dashboard" | ||
| }, | ||
| "type": "dashboard" | ||
| } | ||
| ] | ||
| }, | ||
| "editable": true, | ||
| "gnetId": null, | ||
| "graphTooltip": 0, | ||
| "id": null, | ||
| "iteration": 1630092146360, | ||
| "links": [], | ||
| "panels": [ | ||
| { | ||
| "aliasColors": {}, | ||
| "bars": false, | ||
| "dashLength": 10, | ||
| "dashes": false, | ||
| "datasource": null, | ||
| "fill": 1, | ||
| "fillGradient": 0, | ||
| "gridPos": { | ||
| "h": 7, | ||
| "w": 24, | ||
| "x": 0, | ||
| "y": 0 | ||
| }, | ||
| "hiddenSeries": false, | ||
| "id": 6, | ||
| "legend": { | ||
| "avg": false, | ||
| "current": false, | ||
| "max": false, | ||
| "min": false, | ||
| "show": true, | ||
| "total": false, | ||
| "values": false | ||
| }, | ||
| "lines": true, | ||
| "linewidth": 1, | ||
| "nullPointMode": "null", | ||
| "options": { | ||
| "alertThreshold": true | ||
| }, | ||
| "percentage": false, | ||
| "pluginVersion": "8.1.2", | ||
| "pointradius": 2, | ||
| "points": false, | ||
| "renderer": "flot", | ||
| "repeatDirection": "h", | ||
| "seriesOverrides": [], | ||
| "spaceLength": 10, | ||
| "stack": false, | ||
| "steppedLine": false, | ||
| "targets": [ | ||
| { | ||
| "exemplar": true, | ||
| "expr": "rate(gossip_downloaded_transaction_count{job=\"$job\"}[1m]) * 60", | ||
| "interval": "", | ||
| "legendFormat": "gossip_downloaded_transaction_count per min", | ||
| "refId": "C" | ||
| }, | ||
| { | ||
| "exemplar": true, | ||
| "expr": "rate(gossip_verified_transaction_count{job=\"$job\"}[1m]) * 60", | ||
| "interval": "", | ||
| "legendFormat": "gossip_verified_transaction_count per min", | ||
| "refId": "D" | ||
| }, | ||
| { | ||
| "exemplar": true, | ||
| "expr": "gossip_queued_transaction_count{job=\"$job\"}", | ||
| "interval": "", | ||
| "legendFormat": "gossip_queued_transaction_count", | ||
| "refId": "E" | ||
| } | ||
| ], | ||
| "thresholds": [], | ||
| "timeFrom": null, | ||
| "timeRegions": [], | ||
| "timeShift": null, | ||
| "title": "Transaction Verifier Gossip Count - $job", | ||
| "tooltip": { | ||
| "shared": true, | ||
| "sort": 0, | ||
| "value_type": "individual" | ||
| }, | ||
| "type": "graph", | ||
| "xaxis": { | ||
| "buckets": null, | ||
| "mode": "time", | ||
| "name": null, | ||
| "show": true, | ||
| "values": [] | ||
| }, | ||
| "yaxes": [ | ||
| { | ||
| "format": "short", | ||
| "label": null, | ||
| "logBase": 1, | ||
| "max": null, | ||
| "min": null, | ||
| "show": true | ||
| }, | ||
| { | ||
| "format": "short", | ||
| "label": null, | ||
| "logBase": 1, | ||
| "max": null, | ||
| "min": null, | ||
| "show": true | ||
| } | ||
| ], | ||
| "yaxis": { | ||
| "align": false, | ||
| "alignLevel": null | ||
| } | ||
| } | ||
| ], | ||
| "refresh": "5s", | ||
| "schemaVersion": 30, | ||
| "style": "dark", | ||
| "tags": [], | ||
| "templating": { | ||
| "list": [ | ||
| { | ||
| "allValue": null, | ||
| "current": {}, | ||
| "datasource": "${DS_PROMETHEUS-ZEBRA}", | ||
| "definition": "label_values(zcash_chain_verified_block_height, job)", | ||
| "description": null, | ||
| "error": null, | ||
| "hide": 0, | ||
| "includeAll": true, | ||
| "label": null, | ||
| "multi": true, | ||
| "name": "job", | ||
| "options": [], | ||
| "query": { | ||
| "query": "label_values(zcash_chain_verified_block_height, job)", | ||
| "refId": "StandardVariableQuery" | ||
| }, | ||
| "refresh": 1, | ||
| "regex": "", | ||
| "skipUrlSync": false, | ||
| "sort": 1, | ||
| "tagValuesQuery": "", | ||
| "tagsQuery": "", | ||
| "type": "query", | ||
| "useTags": false | ||
| } | ||
| ] | ||
| }, | ||
| "time": { | ||
| "from": "now-30m", | ||
| "to": "now" | ||
| }, | ||
| "timepicker": {}, | ||
| "timezone": "", | ||
| "title": "transaction verification", | ||
| "uid": "oBEHvS4nz", | ||
| "version": 2 | ||
| } |
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.