Skip to content

Commit fb6eb06

Browse files
committed
use local proxy for web
1 parent 182ee1b commit fb6eb06

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

justfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,11 @@ alias cw := check-wasm
2323
check-wasm:
2424
cargo check --no-default-features --features="wasm-parallel,no-bundler" --target=wasm32-unknown-unknown
2525

26+
# run a local proxy to the lightwalletd server on port 443
27+
run-proxy:
28+
grpcwebproxy --backend_max_call_recv_msg_size=10485760 --server_http_max_write_timeout=1000s --server_http_max_read_timeout=1000s \
29+
--backend_addr=zec.rocks:443 --run_tls_server=false --backend_tls --allow_all_origins --server_http_debug_port 443
30+
# run a local proxy to the lightwalletd server on port 443
31+
run-test-proxy:
32+
grpcwebproxy --backend_max_call_recv_msg_size=10485760 --server_http_max_write_timeout=1000s --server_http_max_read_timeout=1000s \
33+
--backend_addr=testnet.zec.rocks:443 --run_tls_server=false --backend_tls --allow_all_origins --server_http_debug_port 443

src/wallet.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ where
243243
self.db.put_blocks(
244244
&chainstate,
245245
blocks
246-
.into_iter()
246+
.into_par_iter()
247247
.map(|compact_block| {
248248
scan_block(
249249
&self.network,

tests/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async fn test_get_and_scan_range() {
3737
#[cfg(all(feature = "wasm-parallel"))]
3838
init_threadpool(THREADS).await;
3939

40-
let mut w = WebWallet::new("test", "https://zcash-testnet.chainsafe.dev", 1).unwrap();
40+
let mut w = WebWallet::new("test", "http://localhost:443", 1).unwrap();
4141
is_sync::<WebWallet>();
4242
is_send::<WebWallet>();
4343
let id = w.create_account(SEED, HD_INDEX, BIRTHDAY).await.unwrap();

0 commit comments

Comments
 (0)