Skip to content

Commit

Permalink
fix: fix fault tolerance (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
cchudant authored Jun 14, 2024
1 parent 1130e9e commit 68122aa
Show file tree
Hide file tree
Showing 39 changed files with 570 additions and 461 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Next release

- fix(cleanup): clean up around the Cargo.toml files, error handling and cli arguments
- fix(db): fault tolerance (database is not corrupted when the node is unexpectedly shut down / killed)
- fix(rpc): fixed state update deserialization
- fix(hashes): fixed tx by hash retrieval
- fix(logs): fixed logs and get_state_update
Expand Down
182 changes: 149 additions & 33 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,15 @@ rpath = false # Disables adding rpath to the binary
strip = "symbols" # Removes debug info and symbold from final binary

[workspace.package]
authors = ["Antiyro <@antiyro>"]
authors = ["KasarLabs <https://github.com/KasarLabs>"]
homepage = "https://kasar.io"
edition = "2021"
repository = "https://github.com/kasarlabs/deoxys/"
repository = "https://github.com/KasarLabs/deoxys/"
version = "0.1.0"
license = "Apache-2.0"

[workspace.dependencies]
rocksdb = { version = "0.21", features = [
rocksdb = { version = "0.22", features = [
# "multi-threaded-cf",
] }

Expand Down Expand Up @@ -133,7 +135,7 @@ hyper = { version = "0.14", features = ["server"] }
ip_network = "0.4"
lazy_static = { version = "1.4", default-features = false }
once_cell = "1.19"
log = { version = "0.4", default-features = false, features = ["std"] }
log = { version = "0.4", features = ["std", "kv_std"] }
num-traits = "0.2"
num-bigint = "0.4"
primitive-types = "0.12"
Expand Down
13 changes: 6 additions & 7 deletions crates/client/db/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
[package]
name = "dc-db"
version.workspace = true
description = "Deoxys client database service"
authors.workspace = true
edition.workspace = true
description = "Starknet database backend"
authors = ["Kasar <https://github.com/kasarlabs>"]
homepage = "https://github.com/kasarlabs/deoxys"
license = "MIT"
publish = false
repository = "https://github.com/kasarlabs/deoxys"
license.workspace = true
repository.workspace = true
version.workspace = true
homepage.workspace = true

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand Down
Loading

0 comments on commit 68122aa

Please sign in to comment.