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

Zaino-Serve 2.0 #180

Merged
merged 26 commits into from
Feb 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
382cc27
updated Server
idky137 Feb 3, 2025
b0b0aa7
Merge branch 'compact_block_cache_pt3' of github.com:idky137/zaino in…
idky137 Feb 3, 2025
ce4df40
updated Indexer
idky137 Feb 3, 2025
725f321
merged idky_server_update
idky137 Feb 3, 2025
bc31190
finished server update
idky137 Feb 3, 2025
77592d4
added hostnames
idky137 Feb 3, 2025
19c30b6
made zebra listen address configurable
idky137 Feb 4, 2025
1c79ff1
fixed tests
idky137 Feb 4, 2025
2b7726b
added server status log back to indexer
idky137 Feb 4, 2025
65a5130
added validator cookie auth and updated config
idky137 Feb 4, 2025
9ad167f
updated server status log
idky137 Feb 4, 2025
27198cb
Merge branch 'add_terminal_log' of github.com:idky137/zaino into zain…
idky137 Feb 6, 2025
4eb331c
Merge branch 'add_terminal_log' of github.com:idky137/zaino into zain…
idky137 Feb 6, 2025
4baa143
updated config check
idky137 Feb 6, 2025
064de60
Merge branch 'dev' into zaino_serve_2
zancas Feb 7, 2025
da8e94d
fix zindexer.toml
AloeareV Feb 7, 2025
f07569f
Merge branch 'dev' of github.com:zingolabs/zaino into zaino_serve_2
idky137 Feb 7, 2025
8dc75dc
fixed test
idky137 Feb 7, 2025
6d02443
Merge branch 'zaino_serve_2' of github.com:idky137/zaino into zaino_s…
idky137 Feb 7, 2025
aaa9909
finish fixing zindexer.toml, use new macro to help with parsing
AloeareV Feb 8, 2025
167b7ef
bug fixes
idky137 Feb 9, 2025
dee2053
review change
idky137 Feb 9, 2025
6924a52
merged macro
idky137 Feb 12, 2025
ac52079
removed dbg, added grpc server status(ready) update
idky137 Feb 12, 2025
6de7dc0
add helper function
AloeareV Feb 12, 2025
ad8790c
Merge remote-tracking branch 'idky/zaino_serve_2' into zaino_serve_2
AloeareV Feb 12, 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
66 changes: 65 additions & 1 deletion 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ tracing-futures = "0.2"
# Network / RPC
http = "1.1"
url = "2.5"
reqwest = "0.12"
reqwest = { version = "0.12", features = ["cookies"] }
tower = { version = "0.4", features = ["buffer", "util"] }
tonic = "0.12"
tonic-build = "0.12"
Expand Down
50 changes: 26 additions & 24 deletions integration-tests/tests/wallet_to_validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ use zingo_infra_testutils::services::validator::Validator;
use zingolib::testutils::lightclient::from_inputs;

mod wallet_basic {
use zaino_fetch::jsonrpc::connector::test_node_and_return_url;

use super::*;

#[tokio::test]
Expand Down Expand Up @@ -188,19 +190,19 @@ mod wallet_basic {

test_manager.local_net.generate_blocks(1).await.unwrap();

let fetch_service = zaino_fetch::jsonrpc::connector::JsonRpcConnector::new(
url::Url::parse(&format!(
"http://127.0.0.1:{}",
test_manager.zebrad_rpc_listen_port
))
.expect("Failed to construct URL")
.as_str()
.try_into()
.expect("Failed to convert URL to URI"),
Some("xxxxxx".to_string()),
Some("xxxxxx".to_string()),
let fetch_service = zaino_fetch::jsonrpc::connector::JsonRpcConnector::new_with_basic_auth(
test_node_and_return_url(
test_manager.zebrad_rpc_listen_address,
false,
None,
Some("xxxxxx".to_string()),
Some("xxxxxx".to_string()),
)
.await
.unwrap(),
"xxxxxx".to_string(),
"xxxxxx".to_string(),
)
.await
.unwrap();

println!("\n\nFetching Chain Height!\n");
Expand Down Expand Up @@ -490,19 +492,19 @@ mod wallet_basic {

// test_manager.local_net.print_stdout();

let fetch_service = zaino_fetch::jsonrpc::connector::JsonRpcConnector::new(
url::Url::parse(&format!(
"http://127.0.0.1:{}",
test_manager.zebrad_rpc_listen_port
))
.expect("Failed to construct URL")
.as_str()
.try_into()
.expect("Failed to convert URL to URI"),
Some("xxxxxx".to_string()),
Some("xxxxxx".to_string()),
let fetch_service = zaino_fetch::jsonrpc::connector::JsonRpcConnector::new_with_basic_auth(
test_node_and_return_url(
test_manager.zebrad_rpc_listen_address,
false,
None,
Some("xxxxxx".to_string()),
Some("xxxxxx".to_string()),
)
.await
.unwrap(),
"xxxxxx".to_string(),
"xxxxxx".to_string(),
)
.await
.unwrap();

println!("\n\nFetching Raw Mempool!\n");
Expand Down
Loading
Loading