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

Initial bridge backend support #5

Draft
wants to merge 31 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
5ab0612
bridge_backenend: Add initial which copied from bitcoin.
ceyhunsen Sep 30, 2024
5263145
config: Update bridge backend configuration.
ceyhunsen Sep 30, 2024
bb6ae96
config: bridgeLconfig: Convert get_env to return hash map.
ceyhunsen Sep 30, 2024
1011b7c
bridge_backend: Use get_env and delete unnecessary code.
ceyhunsen Sep 30, 2024
0e561dd
bridge_backend: Rename BridgeBackendNode and add 2 commands for spawn().
ceyhunsen Sep 30, 2024
5d3e7b2
Merge branch 'initial-port' into ceyhun/bridge_backend_support
jfldde Oct 3, 2024
de83e7f
Merge branch 'main' into ceyhun/bridge_backend_support
ceyhunsen Oct 3, 2024
4aa7571
Merge branch 'main' into ceyhun/bridge_backend_support
ceyhunsen Oct 3, 2024
9ef815d
Merge branch 'main' into ceyhun/bridge_backend_support
ceyhunsen Oct 4, 2024
a2830c7
configs: Remove unnecessary =.
ceyhunsen Oct 4, 2024
e4c488a
bridge_backend: Add initial client.
ceyhunsen Oct 4, 2024
fc51959
config: Add with_bridge_backend option to TestCaseConfig.
ceyhunsen Oct 4, 2024
8adfccf
Merge branch 'main' into ceyhun/bridge_backend_support
ceyhunsen Oct 7, 2024
9475152
test_case: Add needed /.
ceyhunsen Oct 7, 2024
8f33f92
bridge_backend_client: Fix unused vars.
ceyhunsen Oct 7, 2024
54a4022
lib: Add bridge backend stuff.
ceyhunsen Oct 7, 2024
098bafa
bridge_backend: Use the new NodeT type.
ceyhunsen Oct 7, 2024
31dc639
node: Add todo.
ceyhunsen Oct 7, 2024
5dde565
Merge branch 'main' into ceyhun/bridge_backend_support
ceyhunsen Oct 7, 2024
79d0f3a
tests: Add initial bridge backend test.
ceyhunsen Oct 7, 2024
61d157b
test_case: Add bridge backend config.
ceyhunsen Oct 7, 2024
3189d49
client: Remove extra bridge backend client.
ceyhunsen Oct 7, 2024
6ceb339
config: Add extra layer for bridge backend.
ceyhunsen Oct 7, 2024
15493d4
config: Delete unnecessary configs.
ceyhunsen Oct 7, 2024
084fca6
config: Seperation of bridge backend config and test config.
ceyhunsen Oct 7, 2024
abfc06c
delete bridge backend client
ceyhunsen Oct 7, 2024
2be6799
docker: Delete backend.
ceyhunsen Oct 7, 2024
d6d7855
test_case: Remove multiple backend nodes.
ceyhunsen Oct 7, 2024
9af3a2b
docker: Apply clippy suggestion.
ceyhunsen Oct 7, 2024
b29cf19
test_case: Add bridge_backend.
ceyhunsen Oct 7, 2024
179684a
Merge branch 'main' into ceyhun/bridge_backend_support
ceyhunsen Oct 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test_case: Remove multiple backend nodes.
ceyhunsen committed Oct 7, 2024
commit d6d7855f37eed7d5928fecd3175ab230d69f29a0
12 changes: 2 additions & 10 deletions src/test_case.rs
Original file line number Diff line number Diff line change
@@ -111,6 +111,7 @@ impl<T: TestCase> TestCaseRunner<T> {
let test_case = T::test_config();
let env = T::test_env();
let bitcoin = T::bitcoin_config();
let bridge_backend = T::bridge_backend_config();
let prover = T::prover_config();
let sequencer = T::sequencer_config();
let sequencer_rollup = default_rollup_config();
@@ -141,15 +142,6 @@ impl<T: TestCase> TestCaseRunner<T> {
});
}

let mut bridge_backend_confs = vec![];
for i in 0..test_case.n_nodes {
let data_dir = bitcoin_dir.join(i.to_string());
std::fs::create_dir_all(&data_dir)
.with_context(|| format!("Failed to create {} directory", data_dir.display()))?;

bridge_backend_confs.push(BridgeBackendConfig::default())
}

// Target first bitcoin node as DA for now
let da_config: BitcoinServiceConfig = bitcoin_confs[0].clone().into();

@@ -242,6 +234,7 @@ impl<T: TestCase> TestCaseRunner<T> {

Ok(TestConfig {
bitcoin: bitcoin_confs,
bridge_backend,
sequencer: FullSequencerConfig {
rollup: sequencer_rollup,
dir: sequencer_dir,
@@ -264,7 +257,6 @@ impl<T: TestCase> TestCaseRunner<T> {
env: env.full_node(),
},
test_case,
bridge_backend: bridge_backend_confs,
})
}
}