Skip to content

Commit

Permalink
Remove postgres (#962)
Browse files Browse the repository at this point in the history
* Remove postgres

* More cleanups

* Remove db_config

* Store mempool transactions

* Wait for commitment alternative impl

* Resolve mempool restoration test

* Resolve all tests but one

* Set last commitment l2 height in fullnode

* Fix clippy check

* Remove check_commitment_in_offchain_db test

* Remove unused imports

* Add comments
  • Loading branch information
rakanalh authored Aug 12, 2024
1 parent 0ab85c2 commit 39a901d
Show file tree
Hide file tree
Showing 40 changed files with 253 additions and 1,572 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,20 +148,6 @@ jobs:
coverage:
runs-on: ubicloud-standard-16
if: github.event.pull_request.draft == false
services:
postgres:
image: postgres:latest
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
Expand Down Expand Up @@ -342,20 +328,6 @@ jobs:
runs-on: ubicloud-standard-16
timeout-minutes: 60
if: github.event.pull_request.draft == false
services:
postgres:
image: postgres:latest
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- uses: rui314/setup-mold@v1
Expand Down
173 changes: 3 additions & 170 deletions Cargo.lock

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

3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ members = [
"crates/sequencer",
"crates/sequencer-client",
"crates/soft-confirmation-rule-enforcer",
"crates/shared-backup-db",
# Sovereign sdk
"crates/sovereign-sdk/rollup-interface",
"crates/sovereign-sdk/adapters/risc0",
Expand Down Expand Up @@ -84,10 +83,8 @@ byteorder = { version = "1.5.0", default-features = false }
bytes = { version = "1.2.1", default-features = false }
chrono = { version = "0.4.37", default-features = false }
digest = { version = "0.10.6", default-features = false, features = ["alloc"] }
deadpool-postgres = "0.13.1"
itertools = { version = "0.13.0", default-features = false }
lru = "0.12.3"
postgres-types = "0.2.6"
rs_merkle = "1.4.2"
futures = "0.3"
pin-project = { version = "1.1.3" }
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ clean: ## Cleans compiled
@cargo clean

clean-node: ## Cleans local dbs needed for sequencer and nodes
sudo rm -rf resources/dbs/postgres
rm -rf resources/dbs/sequencer-db
rm -rf resources/dbs/prover-db
rm -rf resources/dbs/full-node-db
Expand Down Expand Up @@ -115,4 +114,4 @@ genesis:

# Set production genesis from system contract source files
genesis-prod:
$(MAKE) -C crates/evm/src/evm/system_contracts genesis-prod
$(MAKE) -C crates/evm/src/evm/system_contracts genesis-prod
1 change: 0 additions & 1 deletion bin/citrea/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ tracing-subscriber = { workspace = true }

[dev-dependencies]
citrea-evm = { path = "../../crates/evm", features = ["native"] }
shared-backup-db = { path = "../../crates/shared-backup-db", features = ["test-utils"] }
sov-mock-da = { path = "../../crates/sovereign-sdk/adapters/mock-da", default-features = false }
sov-prover-storage-manager = { path = "../../crates/sovereign-sdk/full-node/sov-prover-storage-manager", features = ["test-utils"] }
sov-rollup-interface = { path = "../../crates/sovereign-sdk/rollup-interface", features = ["fuzzing"] }
Expand Down
Loading

0 comments on commit 39a901d

Please sign in to comment.