Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
5ce1c86
remove slow_sync
ala-mode Sep 22, 2025
4406a4a
remove comment
ala-mode Sep 22, 2025
30dadf5
remove ref to field
ala-mode Sep 22, 2025
8a9fe56
remove field from testutils
ala-mode Sep 23, 2025
956b5ca
Removing slow_sync asserts from zainod tests
ala-mode Sep 23, 2025
39b0eb8
start to work with grpc_tls
ala-mode Sep 23, 2025
7f2df0f
WIP converting grpc_tls to Option<>
ala-mode Sep 23, 2025
2f378d5
Merge branch 'dev' into refurbish_indexerconfig
ala-mode Sep 24, 2025
f19bc61
Merge branch 'dev' into refurbish_indexerconfig
ala-mode Sep 25, 2025
77575e2
Merge branch 'dev' into refurbish_indexerconfig
ala-mode Sep 28, 2025
d4cbeae
todos and notes
ala-mode Sep 28, 2025
594e28e
Merge remote-tracking branch
ala-mode Sep 28, 2025
3f0cd5d
WIP move to incorporate existing GrpcConfig
ala-mode Sep 28, 2025
ca13fa4
start overhaul GrpcConfig
ala-mode Sep 28, 2025
1b03fc3
cleanup, continue overhaul GrpcConfig
ala-mode Sep 28, 2025
e873f86
remove zaino-common config for GrpcTls
ala-mode Sep 28, 2025
b8ca602
rename GrpcConfig fields
ala-mode Sep 29, 2025
0607848
rename GrpcConfig fields
ala-mode Sep 29, 2025
c2e1258
rename GrpcConfig fields
ala-mode Sep 29, 2025
e9fb7bf
change zainod/config, path cert key checks adjusted
ala-mode Sep 29, 2025
67a5962
rm common
ala-mode Sep 29, 2025
10dfb2d
change testutils grpc settings, add dependency zaino-serve
ala-mode Sep 29, 2025
91b5010
WIP, compiling, failing tests, raw string toml
ala-mode Sep 29, 2025
f0bee09
fix rawstring to TOML
ala-mode Sep 29, 2025
11818fe
cleanup
ala-mode Sep 29, 2025
87d4f1d
cleanup
ala-mode Sep 29, 2025
e469518
remove todo
ala-mode Sep 29, 2025
91fb5ad
add todo, remove comments
ala-mode Sep 29, 2025
6684199
add todo, remove comments
ala-mode Sep 29, 2025
2452a54
adjust comment
ala-mode Sep 29, 2025
06822d4
rename spawn_inner()
ala-mode Sep 29, 2025
f502073
Merge branch 'dev' into refurbish_indexerconfig
ala-mode Sep 29, 2025
57c8794
remove deadcode
ala-mode Sep 29, 2025
7420b91
remove comment
ala-mode Sep 29, 2025
8ddb96c
Merge branch 'dev' into refurbish_indexerconfig
nachog00 Oct 1, 2025
3467a15
Merge branch 'dev' into refurbish_indexerconfig
nachog00 Oct 2, 2025
777ee38
begin no_db removal, comment out code, add todos
ala-mode Oct 4, 2025
3448dc4
remove no_db from local_cache
ala-mode Oct 4, 2025
dbd6372
remove no_db logic from local_cache non_finalised_state
ala-mode Oct 4, 2025
3a42ad8
rm no_db from testutils
ala-mode Oct 4, 2025
0c03807
remove no_db across integration tests, zaino-state
ala-mode Oct 5, 2025
99759f7
rm comments from storage.rs
ala-mode Oct 5, 2025
a9d46b9
remove comments from tests/chain_cache
ala-mode Oct 5, 2025
6d3d945
remove commented no_db code
ala-mode Oct 5, 2025
975141b
trim local_cache integration tests
ala-mode Oct 5, 2025
df3105b
remove commented code from state config
ala-mode Oct 5, 2025
e94e250
cleanup local_cache tests module
ala-mode Oct 5, 2025
f7542e7
cleanup cache integration tests
ala-mode Oct 5, 2025
7497511
removed commented code from zainod config
ala-mode Oct 6, 2025
7a5e484
cleanup zainod config
ala-mode Oct 6, 2025
e5a702d
begin refactoring json server settings for IndexerConfig
ala-mode Oct 6, 2025
597b612
WIP json_server config
ala-mode Oct 6, 2025
a76f7d9
add and correct comments
ala-mode Oct 7, 2025
dfed34f
refactor parsed_config, remove finalised_config helper fn
ala-mode Oct 7, 2025
6536223
update check for cookie auth in impl JsonRpcServer
ala-mode Oct 7, 2025
1dd8545
adjust json rpc within impl Indexer launch_inner()
ala-mode Oct 7, 2025
2db0dad
WIP heavy commenting
ala-mode Oct 8, 2025
4c0b98a
Merge branch 'dev' into refurbish_indexerconfig
ala-mode Oct 11, 2025
6370561
post dev merge adjustments
ala-mode Oct 11, 2025
5f8bb1d
add cookie_dir field
ala-mode Oct 11, 2025
df4fd2a
remove comments
ala-mode Oct 11, 2025
4520739
set cookie_dir without Some, remove comments
ala-mode Oct 11, 2025
4245864
update use, cleanup impl TestManager launch w/o jsonrpc args
ala-mode Oct 11, 2025
a0288a9
underscore args for launch_w_activation_heights, update chain_cache test
ala-mode Oct 11, 2025
c33db6b
update config tests
ala-mode Oct 11, 2025
ffef543
update test fn args
ala-mode Oct 11, 2025
1fb8b1f
WIP jsonrpc config tests
ala-mode Oct 11, 2025
3c22e01
WIP zainod config tests jsonrpc
ala-mode Oct 11, 2025
a377651
no_db comment
ala-mode Oct 13, 2025
3dbec12
Merge branch 'dev' into refurbish_indexerconfig
ala-mode Oct 14, 2025
b74d530
remove no_db arg from test
ala-mode Oct 14, 2025
ba04444
trailing whitespace
ala-mode Oct 14, 2025
fb39c81
update comments and field names of TestManager
ala-mode Oct 14, 2025
9bec21b
update field names of TestManager in tests
ala-mode Oct 14, 2025
4492983
reintroduce zaino_jsonrpc_server fields in TestManager, comments
ala-mode Oct 14, 2025
39e10af
impl Default for JsonRpcConfig
ala-mode Oct 14, 2025
2eb4726
rename to JsonRpcServerConfig, update doc comments
ala-mode Oct 14, 2025
51deca3
MVP conditional JsonRpcConfig
ala-mode Oct 14, 2025
573c979
update name to JsonRpcServerConfig in lib
ala-mode Oct 14, 2025
d3443b2
rename JsonRpcServerConfig in zainod config
ala-mode Oct 14, 2025
9d12976
rename JsonRpcServerConfig in zaino-server
ala-mode Oct 14, 2025
98a7503
update server config doc comment
ala-mode Oct 14, 2025
c5b215b
re enable TestManger bools for zaino jsonrpc server
ala-mode Oct 14, 2025
918fc53
reintroduce rpcserver bools into integration tests
ala-mode Oct 14, 2025
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
2 changes: 2 additions & 0 deletions Cargo.lock

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

27 changes: 10 additions & 17 deletions integration-tests/tests/chain_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ async fn create_test_manager_and_connector(
chain_cache: Option<std::path::PathBuf>,
enable_zaino: bool,
zaino_no_sync: bool,
zaino_no_db: bool,
enable_clients: bool,
) -> (TestManager, JsonRpSeeConnector) {
let test_manager = TestManager::launch(
Expand All @@ -19,18 +18,17 @@ async fn create_test_manager_and_connector(
activation_heights,
chain_cache,
enable_zaino,
false,
false,
false, //enable_zaino_jsonrpc_server: bool,
false, //enable_zaino_jsonrpc_server_cookie_auth: bool,
zaino_no_sync,
zaino_no_db,
enable_clients,
)
.await
.unwrap();

let json_service = JsonRpSeeConnector::new_with_basic_auth(
test_node_and_return_url(
test_manager.zebrad_rpc_listen_address,
test_manager.full_node_rpc_listen_address,
false,
None,
Some("xxxxxx".to_string()),
Expand Down Expand Up @@ -78,7 +76,6 @@ mod chain_query_interface {
chain_cache: Option<std::path::PathBuf>,
enable_zaino: bool,
zaino_no_sync: bool,
zaino_no_db: bool,
enable_clients: bool,
) -> (
TestManager,
Expand Down Expand Up @@ -122,7 +119,6 @@ mod chain_query_interface {
chain_cache.clone(),
enable_zaino,
zaino_no_sync,
zaino_no_db,
enable_clients,
)
.await;
Expand All @@ -148,8 +144,8 @@ mod chain_query_interface {
debug_stop_at_height: None,
debug_validity_check_interval: None,
},
test_manager.zebrad_rpc_listen_address,
test_manager.zebrad_grpc_listen_address,
test_manager.full_node_rpc_listen_address,
test_manager.full_node_grpc_listen_address,
false,
None,
None,
Expand All @@ -169,7 +165,6 @@ mod chain_query_interface {
},
network.into(),
true,
true,
))
.await
.unwrap();
Expand All @@ -186,7 +181,6 @@ mod chain_query_interface {
db_version: 1,
network: zaino_common::Network::Regtest(activation_heights),
no_sync: false,
no_db: false,
};
let chain_index = NodeBackedChainIndex::new(
ValidatorConnector::State(chain_index::source::State {
Expand Down Expand Up @@ -223,7 +217,6 @@ mod chain_query_interface {
db_version: 1,
network: zaino_common::Network::Regtest(activation_heights),
no_sync: false,
no_db: false,
};
let chain_index = NodeBackedChainIndex::new(
ValidatorConnector::Fetch(json_service.clone()),
Expand Down Expand Up @@ -251,7 +244,7 @@ mod chain_query_interface {

async fn get_block_range(validator: &ValidatorKind) {
let (test_manager, _json_service, _option_state_service, _chain_index, indexer) =
create_test_manager_and_chain_index(validator, None, false, false, false, false).await;
create_test_manager_and_chain_index(validator, None, false, false, false).await;

// this delay had to increase. Maybe we tweak sync loop rerun time?
test_manager.generate_blocks_with_delay(5).await;
Expand Down Expand Up @@ -293,7 +286,7 @@ mod chain_query_interface {

async fn find_fork_point(validator: &ValidatorKind) {
let (test_manager, _json_service, _option_state_service, _chain_index, indexer) =
create_test_manager_and_chain_index(validator, None, false, false, false, false).await;
create_test_manager_and_chain_index(validator, None, false, false, false).await;

// this delay had to increase. Maybe we tweak sync loop rerun time?
test_manager.generate_blocks_with_delay(5).await;
Expand Down Expand Up @@ -325,7 +318,7 @@ mod chain_query_interface {

async fn get_raw_transaction(validator: &ValidatorKind) {
let (test_manager, _json_service, _option_state_service, _chain_index, indexer) =
create_test_manager_and_chain_index(validator, None, false, false, false, false).await;
create_test_manager_and_chain_index(validator, None, false, false, false).await;

// this delay had to increase. Maybe we tweak sync loop rerun time?
test_manager.generate_blocks_with_delay(5).await;
Expand Down Expand Up @@ -379,7 +372,7 @@ mod chain_query_interface {

async fn get_transaction_status(validator: &ValidatorKind) {
let (test_manager, _json_service, _option_state_service, _chain_index, indexer) =
create_test_manager_and_chain_index(validator, None, false, false, false, false).await;
create_test_manager_and_chain_index(validator, None, false, false, false).await;
let snapshot = indexer.snapshot_nonfinalized_state();
// I don't know where this second block is generated. Somewhere in the
// guts of create_test_manager_and_chain_index
Expand Down Expand Up @@ -419,7 +412,7 @@ mod chain_query_interface {

async fn sync_large_chain(validator: &ValidatorKind) {
let (test_manager, json_service, _option_state_service, _chain_index, indexer) =
create_test_manager_and_chain_index(validator, None, false, false, false, false).await;
create_test_manager_and_chain_index(validator, None, false, false, false).await;

// this delay had to increase. Maybe we tweak sync loop rerun time?
test_manager.generate_blocks_with_delay(5).await;
Expand Down
Loading