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

Make storage async #120

Closed
wants to merge 16 commits into from
Closed

Commits on Mar 17, 2024

  1. chore: moving storage from twenty-first

    This is an unmodified copy of twenty_first::storage at twenty-first
    revision 890c451e4e513018d8500bedcd5bf76dd0bafdd9 (master)
    
    It is not yet incorporated into the build.
    dan-da committed Mar 17, 2024
    Configuration menu
    Copy the full SHA
    8e4f3a6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    37247a3 View commit details
    Browse the repository at this point in the history
  3. wip: remove util_types/sync

    dan-da committed Mar 17, 2024
    Configuration menu
    Copy the full SHA
    87a630b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    081048f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a368996 View commit details
    Browse the repository at this point in the history
  6. wip. cargo fmt

    dan-da committed Mar 17, 2024
    Configuration menu
    Copy the full SHA
    0e61893 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2024

  1. Configuration menu
    Copy the full SHA
    6b16bb7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1c92969 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5579e3a View commit details
    Browse the repository at this point in the history
  4. wip. lint

    dan-da committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    88a6814 View commit details
    Browse the repository at this point in the history
  5. wip. update to latest lib-tasm

    dan-da committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    d19dd82 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2024

  1. feat: add ProofType and BlockType enums

    fixes error:
      In order to be transferred, a Block must have a non-None proof field.
    
    ProofType enum enables specifying/transferring an unimplemented Proof.
    This is only temporary.
    
    BlockType enum enables specifying Genesis vs Standard block.
    
    A Standard block has a ProofType
    The Genesis block has no ProofType
    dan-da committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    1902d57 View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2024

  1. Configuration menu
    Copy the full SHA
    70581d5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5429901 View commit details
    Browse the repository at this point in the history
  3. style: rename crate::locks::sync to std

    Under crate::locks we previously had:
     - sync
     - tokio
    
    Each contains an impl of AtomicRw and AtomicMutex, with basically the
    same API.  Yet:
    
     - sync refers to synchronous locks, ie sync vs async.
     - tokio refers to the tokio::sync lock implementation.
    
    So the names are referring to different things.  Instead we change it to:
    
     - std
     - tokio
    
    Now each refers to a lock implementation, ie std::sync and tokio::sync.
    
    note: we could instead have changed `tokio` to `async`, but then there
    might be multiple async lock impls to choose from.  So it seems cleanest
    to use the name of each impl.
    dan-da committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    a08cc76 View commit details
    Browse the repository at this point in the history
  4. perf: add sync_atomic bench test

    Moved this benchmark over from twenty_first.
    
    Presently unable to build the twenty_first db_* bench tests because
    the storage layer is now async and the divan bench crate doesn't yet
    support async.  However, it may soon, see:
    
    nvzqz/divan#39
    dan-da committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    35af634 View commit details
    Browse the repository at this point in the history