Skip to content
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

Fast spendability #1116

Merged
merged 76 commits into from
Sep 12, 2023
Merged

Fast spendability #1116

merged 76 commits into from
Sep 12, 2023

Commits on Sep 8, 2023

  1. Configuration menu
    Copy the full SHA
    12c3441 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7cee1d7 View commit details
    Browse the repository at this point in the history
  3. Clear validation stage

    HonzaR committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    85388a8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    57fe48e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3476cca View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3c5d91b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f7bb2ae View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e43e868 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    6a68889 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b811305 View commit details
    Browse the repository at this point in the history
  11. [#1130] Initial Suggested Ranges Parsing

    * [#1130] Initial suggested ranges parsing
    HonzaR committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    c8b481a View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    811081b View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    0b7c619 View commit details
    Browse the repository at this point in the history
  14. [#1139][#1138] Process Priority.Verify blocks

    * [#1139][#1138] Process Priority.Verify blocks
    
    This makes the new subtask functions more testable.
    
    * Increase CI test timeout
    
    * [#1047][#1140] Improve CBD internal state handling
    
    * [#1047][1140] Improve CBD internal state handling
    
    This improves internal state handling in CompactBlockProcessor. Error handling included. And it prepares us for ContinuityError handling too.
    
    * [#1143] Handle ContinuityError
    HonzaR committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    92ac1e9 View commit details
    Browse the repository at this point in the history
  15. [#1146] Process the rest of the ranges

    * [#1146] Process the rest of the ranges
    HonzaR committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    7d098f6 View commit details
    Browse the repository at this point in the history
  16. [#1133] Set the correct getSubtreeRoots inputs

    * [#1133] Set the correct getSubtreeRoots inputs
    
    - It also better handles setState calls
    - It fixes OpenEndRange -> ClosedRange
    - And it improves logging in syncing mechanism
    
    * Increase build CI timeout
    HonzaR committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    3c31144 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    54d016e View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    6b487e9 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    70cd1e0 View commit details
    Browse the repository at this point in the history
  20. [#1129] Refactor ProcessorInfo

    * Add rewind button to Demo app
    
    To be able to test refactored CompactBlockProcessor rewind feature.
    
    * Rename non-linear to spend-before-sync
    
    * [#1129] Refactor lastSyncRange lastSyncedHeight
    
    * Fix updateRange function
    
    As the overallSyncRange needs to be reset in case of all ranges are processed.
    
    * [#1166] Remove alsoClearBlockCache parameter
    HonzaR committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    91f5cbe View commit details
    Browse the repository at this point in the history
  21. [#1159] Update sync progress reporting

    * [#1168] Checkpoints update
    
    * [#1159] Updated sync progress reporting
    
    * Increase test_robo_demo_app timeout
    
    * Migrate to ClosedEndRange
    
    It’s better to transform suggested ranges from OpenEndRange to ClosedRange as soon as possible to avoid its handling in the rest of the logic.
    
    * Improve all batch count calculating
    
    * Subsequent SbS sync algorithm renaming
    HonzaR committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    fd17e7e View commit details
    Browse the repository at this point in the history
  22. Minor formatting changes

    HonzaR committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    d1ef768 View commit details
    Browse the repository at this point in the history
  23. Fix selectionArgs input type

    HonzaR committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    cc3129d View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    6e7d240 View commit details
    Browse the repository at this point in the history
  25. Changelog update

    HonzaR committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    700bd1f View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    61f618c View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    abb98bd View commit details
    Browse the repository at this point in the history
  28. Fix ktlint warning

    HonzaR committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    7277a7e View commit details
    Browse the repository at this point in the history
  29. [#1136] Tests for the new helper extensions

    * Jni objects attribute constraint tests

    
    * Extend continuity error test
    
    * ScanRange model tests
    
    * [#1174] Move model classes out of the CompactBlockProcessor
    
    * [#1174] SbS: Move model classes out of the CompactBlockProcessor
    
    * Move SyncingResult out of the processor
    
    * Add issue link
    HonzaR committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    9795610 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    0e40b3a View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    32069be View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    f23aca3 View commit details
    Browse the repository at this point in the history
  33. [#1180] Frequent SbS synchronization restarting

    * [#1180] Frequent SbS synchronization restarting
    
    - Processing blocks with SbS split into preparation and processing functions, which can be called repeatedly.
    - Refactored other parts of the synchronization mechanism
    - Closes #1180
    - This also partly solves #1137
    
    * Update .gitignore
    
    * Update LINCENSE documentation
    
    * [#1177] Checkpoints update
    
    * Fix Ktlint warning
    HonzaR committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    10a7aa7 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    c1d9172 View commit details
    Browse the repository at this point in the history
  35. Fix ktlint warning

    HonzaR committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    83ea5b5 View commit details
    Browse the repository at this point in the history
  36. [#1170] Regular transaction flow emitting

    * [#1170] Regular transaction flow emitting
    
    Although zcash/librustzcash#918 will provide information on when to trigger transaction polling, this partly solves the issue as well
    
    * Update changelog
    HonzaR committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    648b31a View commit details
    Browse the repository at this point in the history
  37. Migrate to latest Rust revision

    - Account birthdays
    - Scan progress
    - Bugfixes
    str4d authored and HonzaR committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    11d9529 View commit details
    Browse the repository at this point in the history
  38. [#1109][#1206] Regular balance flows emission

    * [#1206] Optimize SYNC_BATCH_SIZE
    
    * [#1109] Regular balance flows emission
    HonzaR committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    9e334fd View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    7b7275b View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    42cf9d6 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    33a7a20 View commit details
    Browse the repository at this point in the history
  42. rust: Return 0 from getBalance and getVerifiedBalance for unknown…

    … accounts
    
    This works around zcash/librustzcash#948, where known accounts without
    history are not reported in the `WalletSummary`. We assume that the
    Kotlin side of the SDK does not call these FFI methods with unknown
    accounts.
    str4d authored and HonzaR committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    14d854f View commit details
    Browse the repository at this point in the history
  43. [#1213] Remove BlockTable and its APIs

    * [#1213] Remove `count()` from BlockTable API
    
    * [#1213] Remove `firstScannedHeight()` from BlockTable API
    
    * [#1213] Remove `findBlockHash()` from BlockTable
    
    * [#1213] Remove `lastScannedHeight()` from BlockTable
    
    * [#1213] Remove `BlockTable` entirely
    HonzaR committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    fc14082 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    59ab627 View commit details
    Browse the repository at this point in the history
  45. Migrate to Rust version with bugfixes

    This also reverts the prior change to `getBalance` / `getVerifiedBalance`
    now that the fix for zcash/librustzcash#948 is present.
    str4d authored and HonzaR committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    9207dd0 View commit details
    Browse the repository at this point in the history
  46. [#1208][#1215] Pass proper recoverUntil

    - Closes #1208
    - CLoses #1215
    HonzaR committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    c6032b4 View commit details
    Browse the repository at this point in the history
  47. [#1225] Disable deprecated darkside tests

    * [#1225] Disable deprecated darkside tests
    
    - Closes #1225
    HonzaR committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    3721b8b View commit details
    Browse the repository at this point in the history
  48. [#1219] Remove calculated sync progress

    Closes #1219
    HonzaR committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    899b487 View commit details
    Browse the repository at this point in the history
  49. Documentation update

    HonzaR committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    0d00149 View commit details
    Browse the repository at this point in the history
  50. rust: cargo update

    str4d committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    1ef0304 View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    ab6a831 View commit details
    Browse the repository at this point in the history
  52. rust: dlopen2 0.6

    str4d committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    9284e60 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2023

  1. Filter out zero denominator in Rust layer

    Co-authored-by: Kris Nuttycombe <[email protected]>
    HonzaR and nuttycom authored Sep 9, 2023
    Configuration menu
    Copy the full SHA
    d3d54d7 View commit details
    Browse the repository at this point in the history
  2. Change createAccountAndGetSpendingKey API

    The checkpoint parameter changed for treeState: ByteArray
    HonzaR committed Sep 9, 2023
    Configuration menu
    Copy the full SHA
    a43c5f1 View commit details
    Browse the repository at this point in the history
  3. Change denominator requirement

    - Added safe progress ratio calculating function
    - Added test
    HonzaR committed Sep 9, 2023
    Configuration menu
    Copy the full SHA
    79ba05f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ffc1c99 View commit details
    Browse the repository at this point in the history
  5. Reverting denominator constraint back

    The Rust layer now filters out the zero denominator but keeping the ScanProgress new safe ratio function with its test.
    HonzaR committed Sep 9, 2023
    Configuration menu
    Copy the full SHA
    1b6039c View commit details
    Browse the repository at this point in the history
  6. Silent rust compile error

    mismatched types: expected `&u64`, found integer
    HonzaR committed Sep 9, 2023
    Configuration menu
    Copy the full SHA
    5e85c39 View commit details
    Browse the repository at this point in the history
  7. BlockHeight subtraction fix

    HonzaR committed Sep 9, 2023
    Configuration menu
    Copy the full SHA
    95da0f2 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2023

  1. Configuration menu
    Copy the full SHA
    a881327 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4c8c325 View commit details
    Browse the repository at this point in the history
  3. Fix Changelog typos

    Co-authored-by: Daira Emma Hopwood <[email protected]>
    HonzaR and daira authored Sep 10, 2023
    Configuration menu
    Copy the full SHA
    fe7edf3 View commit details
    Browse the repository at this point in the history
  4. Update Changelog

    Co-authored-by: Daira Emma Hopwood <[email protected]>
    HonzaR and daira authored Sep 10, 2023
    Configuration menu
    Copy the full SHA
    c9d3085 View commit details
    Browse the repository at this point in the history
  5. Update Changelog

    Co-authored-by: Daira Emma Hopwood <[email protected]>
    HonzaR and daira authored Sep 10, 2023
    Configuration menu
    Copy the full SHA
    4c38354 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2023

  1. [#1231] GetConsensusBranchId works with chain tip (#1232)

    * [#1231] GetConsensusBranchId works with chain tip
    
    Closes #1231
    HonzaR authored Sep 11, 2023
    Configuration menu
    Copy the full SHA
    a082fe9 View commit details
    Browse the repository at this point in the history
  2. Update PersistableWallet API

    These required changes came from the latest SDK acceptance testing with Zashi wallet.
    HonzaR committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    916f9e9 View commit details
    Browse the repository at this point in the history
  3. Update createAccountAndGetSpendingKey API

    - TypesafeBackend.createAccountAndGetSpendingKey now works with a type-safe TreeState model class instead of ByteArray.
    - New type-safe TreeState added. Once we get the TreeState object from the lightwalletd server, potential validation comes into this object.
    HonzaR committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    c7125f4 View commit details
    Browse the repository at this point in the history
  4. Fix ktlint warning

    HonzaR committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    39ba2b4 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2023

  1. Configuration menu
    Copy the full SHA
    01e9b05 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d162cdf View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d775421 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    11b031a View commit details
    Browse the repository at this point in the history
  5. Add throws documentation

    Co-authored-by: Daira Emma Hopwood <[email protected]>
    HonzaR and daira authored Sep 12, 2023
    Configuration menu
    Copy the full SHA
    96aeec2 View commit details
    Browse the repository at this point in the history
  6. Add encode_scan_progress documentation

    Co-authored-by: Daira Emma Hopwood <[email protected]>
    HonzaR and daira authored Sep 12, 2023
    Configuration menu
    Copy the full SHA
    9b18fe1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5037102 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8275735 View commit details
    Browse the repository at this point in the history