-
Notifications
You must be signed in to change notification settings - Fork 45
feat(drive-abci): debugging tool to replay abci requests #2862
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
Open
lklimek
wants to merge
20
commits into
v2.2-dev
Choose a base branch
from
test/resync-apphash-mismatch
base: v2.2-dev
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
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
8142b73
fix(drive): reuse existing platform node id during operator update (#…
pauldelucia a71b221
chore(release): update changelog and bump version to 2.1.3 (#2835)
QuantumExplorer 077ec82
chore(dashmate)!: backport port conflicts with mainnet and testnet o…
lklimek 4b268dc
test: try to reproduce non deterministic resync causing apphash misma…
lklimek 9f83eec
chore: prepare_proposal_apphash updated
lklimek 7f552f2
chore: prepare proposal apphash final
lklimek 3a6a287
drive: bump rocksdb to 0.24
lklimek 3db8943
chore: replay_abci_requests final binary
lklimek a3af485
Merge tag 'v2.1.3' into backport/2.1.3
lklimek 5813a0b
Merge branch 'backport/2.1.3' into test/resync-apphash-mismatch
lklimek e11fb8d
chore: improve help
lklimek 0f056cd
chore: replayer, most recent version
lklimek 45dc854
feat(drive-abci): improved state verification in drive-abci verify
lklimek 8b311e4
feat(replay): verify initial database on start
lklimek 323193f
refactor: move replay to `drive-abci replay`
lklimek abaa8d5
chore: adjust .env.testnet to match testnet
lklimek 282febe
Merge remote-tracking branch 'origin/v2.2-dev' into test/resync-appha…
lklimek 9352a62
refactor: move finalize block apphash verification to separate pr
lklimek 4750697
only 1 log file supported
lklimek d7960ec
chore: clippy
lklimek 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
2 changes: 2 additions & 0 deletions
2
packages/rs-drive-abci/src/execution/storage/fetch_platform_state/mod.rs
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 |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| mod fetch_platform_state; | ||
| pub mod fetch_platform_state; | ||
| mod store_platform_state; |
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.
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.
🧩 Analysis chain
🏁 Script executed:
Repository: dashpay/platform
Length of output: 833
🏁 Script executed:
Repository: dashpay/platform
Length of output: 6758
🏁 Script executed:
Repository: dashpay/platform
Length of output: 550
🏁 Script executed:
# Check the git history and context of the .env.testnet file git log --oneline -20 -- packages/rs-drive-abci/.env.testnetRepository: dashpay/platform
Length of output: 150
🏁 Script executed:
Repository: dashpay/platform
Length of output: 86
🏁 Script executed:
Repository: dashpay/platform
Length of output: 42
🏁 Script executed:
Repository: dashpay/platform
Length of output: 7173
🏁 Script executed:
# Read .env.mainnet to compare with .env.testnet cat packages/rs-drive-abci/.env.mainnetRepository: dashpay/platform
Length of output: 3135
🏁 Script executed:
# Read .env.testnet to see all the changes cat packages/rs-drive-abci/.env.testnetRepository: dashpay/platform
Length of output: 3113
🏁 Script executed:
Repository: dashpay/platform
Length of output: 449
🏁 Script executed:
Repository: dashpay/platform
Length of output: 42
🏁 Script executed:
Repository: dashpay/platform
Length of output: 42
🏁 Script executed:
Repository: dashpay/platform
Length of output: 42
🏁 Script executed:
Repository: dashpay/platform
Length of output: 42
🏁 Script executed:
Repository: dashpay/platform
Length of output: 50374
🏁 Script executed:
Repository: dashpay/platform
Length of output: 42
🏁 Script executed:
Repository: dashpay/platform
Length of output: 1658
🏁 Script executed:
Repository: dashpay/platform
Length of output: 6426
🏁 Script executed:
Repository: dashpay/platform
Length of output: 42
🏁 Script executed:
Repository: dashpay/platform
Length of output: 42
🏁 Script executed:
Repository: dashpay/platform
Length of output: 42
🏁 Script executed:
Repository: dashpay/platform
Length of output: 12967
🏁 Script executed:
Repository: dashpay/platform
Length of output: 1841
🌐 Web query:
dashcore-lib quorum type constants LLMQ_100_67 LLMQ_400_60 LLMQ_60_75 numeric values💡 Result:
Values:
Sources: Dash LLMQ types table. [1] (docs.dash.org)
Citations:
🏁 Script executed:
Repository: dashpay/platform
Length of output: 42
🏁 Script executed:
Repository: dashpay/platform
Length of output: 168
🏁 Script executed:
Repository: dashpay/platform
Length of output: 691
The quorum type numeric mappings are incorrect; they do not match the Dash LLMQ specification.
According to the official Dash LLMQ documentation, the correct numeric codes are:
Update lines 36, 43, and 49 in
.env.testnet:VALIDATOR_SET_QUORUM_TYPE=6→4CHAIN_LOCK_QUORUM_TYPE=1→2INSTANT_LOCK_QUORUM_TYPE=5→ keep as isThe other configuration changes (EPOCH_TIME_LENGTH_S=3600, CHAIN_ID=dash-testnet-51, quorum window adjustments) are intentional for the testnet environment and align properly with the test/resync focus of this PR.
🧰 Tools
🪛 dotenv-linter (4.0.0)
[warning] 37-37: [UnorderedKey] The VALIDATOR_SET_QUORUM_SIZE key should go before the VALIDATOR_SET_QUORUM_TYPE key
(UnorderedKey)
🤖 Prompt for AI Agents