forked from dashpay/rust-dashcore
-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: make wallet events atomic #116
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
xdustinface
wants to merge
23
commits into
v0.42-dev
Choose a base branch
from
refactor/wallet-events-atomic
base: v0.42-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
23 commits
Select commit
Hold shift + click to select a range
eb016f5
ci: add Manki AI code review configuration (#73)
xdustinface 5c746ac
chore: update manki action reference to `manki-review/manki` (#88)
xdustinface 1e2a317
feat: track and persist session peer outcomes (#106)
xdustinface 53b25c4
refactor: heights per wallet (#117)
xdustinface efbd98a
refactor: make wallet events atomic
xdustinface d35594d
fix: gate post-sync block mining on mempool callback in `tests_callback`
xdustinface e5154cf
test: assert `mempool_received == 0` during initial historical sync
xdustinface ebf8d81
test: assert `SyncedHeightUpdated` fires and reaches tip during sync
xdustinface 3747aa8
fix: don't bump `last_processed_height` from `update_synced_height`
xdustinface 92a6e52
fix: pass null `updates` pointer when `BlockProcessChange` is empty
xdustinface 376c863
test: separate mempool/block trackers and assert action and account_path
xdustinface ec47c4c
test: pin down late IS-lock-after-confirmation emission behavior
xdustinface 538c440
test: bump callback counter before record counter to avoid race
xdustinface a3bfe37
refactor: apply rustfmt to test callback assertions
xdustinface b173f54
test: tighten ffi callback ordering and assertions
xdustinface 51bf6e7
feat: surface dropped-record count in `CheckTransactionsResult`
xdustinface a9b17e1
refactor: apply `cargo fmt` to test files
xdustinface 3d22754
fix: address review feedback on wallet event atomicity
xdustinface b374bb2
fix: tighten test slice bounds and mempool path assertion
xdustinface c4a3a91
refactor: rename wallet event variants and switch FFI to typed accoun…
xdustinface 1e70d77
refactor: store `account_type` on `TransactionRecord`
xdustinface 5e678d7
refactor: rename `RecordChange` to `TransactionRecordUpdate`
xdustinface 178feb7
refactor: consolidate FFI wallet types in `key-wallet-ffi`
xdustinface 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,29 @@ | ||
| name: Manki Review | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize] | ||
| issue_comment: | ||
| types: [created, edited] | ||
| pull_request_review: | ||
| types: [submitted] | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| issues: write | ||
| id-token: write | ||
|
|
||
| concurrency: | ||
| group: manki-${{ github.event_name }}-${{ github.event.pull_request.number || github.event.issue.number || github.run_id }} | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| review: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: manki-review/manki@v4 | ||
| with: | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} |
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,18 @@ | ||
| # Manki — AI Code Review Configuration | ||
| # https://github.com/manki-review/manki | ||
|
|
||
| auto_review: true | ||
| auto_approve: true | ||
|
|
||
| exclude_paths: | ||
| - "*.lock" | ||
| - "fuzz/**" | ||
|
|
||
| instructions: | | ||
| This is a Rust implementation of the Dash cryptocurrency protocol. | ||
| Pay special attention to: | ||
| - Consensus-critical code paths — changes here can cause chain splits | ||
| - FFI safety for C/Swift bindings in dash-spv-* crates | ||
| - Proper error handling — prefer Result over unwrap/expect in library code | ||
| - DIP (Dash Improvement Proposal) compliance for protocol changes | ||
| - Memory safety in hash/crypto implementations |
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.
Uh oh!
There was an error while loading. Please reload this page.