Skip to content

Commit

Permalink
foo
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinacolt committed Sep 16, 2024
2 parents ef01193 + 52cfaad commit 17e47c8
Show file tree
Hide file tree
Showing 76 changed files with 2,730 additions and 1,835 deletions.
125 changes: 52 additions & 73 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ members = [
]

[workspace.package]
version = "0.4.0-rc.3"
version = "0.5.0-rc.1"
edition = "2021"
license = "GPL-3.0"
authors = ["Chainway Labs <[email protected]>"]
Expand Down Expand Up @@ -185,4 +185,4 @@ ed25519-dalek = { git = "https://github.com/risc0/curve25519-dalek", tag = "curv
crypto-bigint = { git = "https://github.com/risc0/RustCrypto-crypto-bigint", tag = "v0.5.5-risczero.0" }
secp256k1 = { git = "https://github.com/Sovereign-Labs/rust-secp256k1.git", branch = "risc0-compatible-0-29-0" }
k256 = { git = "https://github.com/risc0/RustCrypto-elliptic-curves", tag = "k256/v0.13.3-risczero.0" }
bitcoincore-rpc = { version = "0.18.0", git = "https://github.com/chainwayxyz/rust-bitcoincore-rpc.git", branch = "master" }
bitcoincore-rpc = { version = "0.18.0", git = "https://github.com/chainwayxyz/rust-bitcoincore-rpc.git", rev = "1aae7cc" }
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,15 @@ clean-node: ## Cleans local dbs needed for sequencer and nodes
rm -rf resources/dbs/sequencer-db
rm -rf resources/dbs/prover-db
rm -rf resources/dbs/full-node-db

clean-txs:
rm -rf resources/bitcoin/inscription_txs/*

clean-docker:
rm -rf resources/dbs/citrea-bitcoin-regtest-data

clean-all: clean clean-node clean-txs

test-legacy: ## Runs test suite with output from tests printed
@cargo test -- --nocapture -Zunstable-options --report-time

Expand All @@ -37,8 +44,8 @@ install-dev-tools: ## Installs all necessary cargo helpers
cargo install flaky-finder
cargo install cargo-nextest --locked
cargo install --version 1.7.0 cargo-binstall
curl -L https://risczero.com/install | bash
~/.risc0/bin/rzup -v 1.0.5
cargo binstall cargo-risczero@1.0.5 --no-confirm
cargo risczero install --version r0.1.79.0-2
rustup target add thumbv6m-none-eabi
rustup component add llvm-tools-preview
cargo install cargo-llvm-cov
Expand Down
2 changes: 1 addition & 1 deletion bin/citrea/provers/risc0/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "risc0"
version = "0.4.0-rc.3"
version = "0.5.0-rc.1"
edition = "2021"
license = "MIT OR Apache-2.0"
publish = false
Expand Down
30 changes: 15 additions & 15 deletions bin/citrea/provers/risc0/guest-bitcoin/Cargo.lock

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

2 changes: 1 addition & 1 deletion bin/citrea/provers/risc0/guest-bitcoin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "citrea-bitcoin-prover"
version = "0.3.0"
version = "0.5.0-rc.1"
edition = "2021"
resolver = "2"

Expand Down
32 changes: 16 additions & 16 deletions bin/citrea/provers/risc0/guest-mock/Cargo.lock

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

2 changes: 1 addition & 1 deletion bin/citrea/provers/risc0/guest-mock/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sov-demo-prover-guest-mock"
version = "0.3.0"
version = "0.5.0-rc.1"
edition = "2021"
resolver = "2"

Expand Down
18 changes: 15 additions & 3 deletions bin/citrea/src/rollup/bitcoin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,11 @@ impl RollupBlueprint for BitcoinRollup {
async fn create_da_service(
&self,
rollup_config: &FullNodeConfig<Self::DaConfig>,
require_wallet_check: bool,
) -> Result<Arc<Self::DaService>, anyhow::Error> {
let (tx, rx) = unbounded_channel::<SenderWithNotifier<TxidWrapper>>();

let service = Arc::new(
let bitcoin_service = if require_wallet_check {
BitcoinService::new_with_wallet_check(
rollup_config.da.clone(),
RollupParams {
Expand All @@ -129,8 +130,19 @@ impl RollupBlueprint for BitcoinRollup {
},
tx,
)
.await?,
);
.await?
} else {
BitcoinService::new_without_wallet_check(
rollup_config.da.clone(),
RollupParams {
reveal_light_client_prefix: REVEAL_LIGHT_CLIENT_PREFIX.to_vec(),
reveal_batch_prover_prefix: REVEAL_BATCH_PROOF_PREFIX.to_vec(),
},
tx,
)
.await?
};
let service = Arc::new(bitcoin_service);

Arc::clone(&service).spawn_da_queue(rx);

Expand Down
1 change: 1 addition & 0 deletions bin/citrea/src/rollup/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ impl RollupBlueprint for MockDemoRollup {
async fn create_da_service(
&self,
rollup_config: &FullNodeConfig<Self::DaConfig>,
_require_wallet_check: bool,
) -> Result<Arc<Self::DaService>, anyhow::Error> {
Ok(Arc::new(MockDaService::new(
rollup_config.da.sender_address,
Expand Down
Loading

0 comments on commit 17e47c8

Please sign in to comment.