File tree Expand file tree Collapse file tree 4 files changed +29
-7
lines changed Expand file tree Collapse file tree 4 files changed +29
-7
lines changed Original file line number Diff line number Diff line change 1
1
http :
2
2
routers :
3
- routerTest :
4
- service : srv-grpc
5
- rule : Host(`localhost `)
3
+ routerMainnet :
4
+ service : srv-grpc-mainnet
5
+ rule : PathPrefix(`/mainnet `)
6
6
middlewares :
7
+ - strip-network-prefix
8
+ - " test-grpc-web"
9
+ entryPoints :
10
+ - web
11
+
12
+ routerTestnet :
13
+ service : srv-grpc-testnet
14
+ rule : PathPrefix(`/testnet`)
15
+ middlewares :
16
+ - strip-network-prefix
7
17
- " test-grpc-web"
8
18
entryPoints :
9
19
- web
13
23
grpcWeb :
14
24
allowOrigins :
15
25
- " *"
26
+
27
+ strip-network-prefix :
28
+ stripPrefix :
29
+ prefixes :
30
+ - " /mainnet"
31
+ - " /testnet"
32
+
16
33
services :
17
- srv-grpc :
34
+ srv-grpc-mainnet :
35
+ loadBalancer :
36
+ servers :
37
+ - url : https://zec.rocks:443
38
+
39
+ srv-grpc-testnet :
18
40
loadBalancer :
19
41
servers :
20
42
- url : https://testnet.zec.rocks:443
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ const PRUNING_DEPTH: usize = 100;
51
51
52
52
fn is_sync < T : Sync > ( ) { }
53
53
fn is_send < T : Send > ( ) { }
54
- const BATCH_SIZE : u32 = 3000 ;
54
+ const BATCH_SIZE : u32 = 10000 ;
55
55
56
56
/// # A Zcash wallet
57
57
///
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ async fn test_message_board() {
25
25
let _ = wasm_bindgen_futures:: JsFuture :: from ( wasm_bindgen_rayon:: init_thread_pool ( 10 ) ) . await ;
26
26
let main_handler = thread:: Builder :: new ( )
27
27
. spawn_async ( || async {
28
- let mut w = WebWallet :: new ( "main" , "http://localhost:1234" , 1 ) . unwrap ( ) ;
28
+ let mut w = WebWallet :: new ( "main" , "http://localhost:1234/mainnet " , 1 ) . unwrap ( ) ;
29
29
30
30
let s = zcash_keys:: encoding:: decode_extended_full_viewing_key (
31
31
constants:: mainnet:: HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY ,
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ async fn test_get_and_scan_range() {
38
38
assert ! ( !thread:: is_web_worker_thread( ) ) ;
39
39
let main_handler = thread:: Builder :: new ( ) . spawn_async ( || async {
40
40
assert ! ( thread:: is_web_worker_thread( ) ) ;
41
- let mut w = WebWallet :: new ( "test" , "http://localhost:1234" , 1 ) . unwrap ( ) ;
41
+ let mut w = WebWallet :: new ( "test" , "http://localhost:1234/testnet " , 1 ) . unwrap ( ) ;
42
42
43
43
let id = w. create_account ( SEED , HD_INDEX , BIRTHDAY ) . await . unwrap ( ) ;
44
44
tracing:: info!( "Created account with id: {}" , id) ;
You can’t perform that action at this time.
0 commit comments