Skip to content

Commit

Permalink
use pirate.wallet.sdk.rpc for z_coin proto
Browse files Browse the repository at this point in the history
Signed-off-by: borngraced <[email protected]>
  • Loading branch information
borngraced committed Nov 6, 2023
1 parent f145216 commit b074ca7
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 13 deletions.
3 changes: 1 addition & 2 deletions mm2src/coins/z_coin/compact_formats.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
syntax = "proto3";
// TODO: use pirate.wallet.sdk.rpc for package name.
package cash.z.wallet.sdk.rpc;
package pirate.wallet.sdk.rpc;
option go_package = "walletrpc";
option swift_prefix = "";
// Remember that proto3 fields are all optional. A field that is not present will be set to its zero value.
Expand Down
3 changes: 1 addition & 2 deletions mm2src/coins/z_coin/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
// file COPYING or https://www.opensource.org/licenses/mit-license.php .

syntax = "proto3";
// TODO: use pirate.wallet.sdk.rpc for package name.
package cash.z.wallet.sdk.rpc;
package pirate.wallet.sdk.rpc;
option go_package = ".;walletrpc";
option swift_prefix = "";
import "compact_formats.proto";
Expand Down
9 changes: 3 additions & 6 deletions mm2src/coins/z_coin/storage/blockdb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,9 @@ mod wasm_tests {
#[wasm_bindgen_test]
async fn test_transport() {
register_wasm_log();
let mut client = LightRpcClient::new(vec![
"http://pirate.spyglass.quest:8081".to_string(),
"http://pirate.battlefield.earth:8081".to_string(),
])
.await
.unwrap();
let mut client = LightRpcClient::new(vec!["http://pirate.battlefield.earth:8581".to_string()])
.await
.unwrap();
let tree_state = client.get_block_height().await;
info!("LATEST BLOCK: {tree_state:?}");
}
Expand Down
2 changes: 1 addition & 1 deletion mm2src/coins/z_coin/z_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ use zcash_primitives::transaction::TxId;
use zcash_primitives::zip32::ExtendedSpendingKey;

pub(crate) mod z_coin_grpc {
tonic::include_proto!("cash.z.wallet.sdk.rpc");
tonic::include_proto!("pirate.wallet.sdk.rpc");
}
use z_coin_grpc::compact_tx_streamer_client::CompactTxStreamerClient;
use z_coin_grpc::ChainSpec;
Expand Down
1 change: 0 additions & 1 deletion mm2src/mm2_net/src/wasm/body_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ use base64::prelude::BASE64_STANDARD;
use base64::Engine;
use byteorder::{BigEndian, ByteOrder};
use bytes::{BufMut, Bytes, BytesMut};
use common::log::info;
use common::{APPLICATION_GRPC_WEB, APPLICATION_GRPC_WEB_PROTO, APPLICATION_GRPC_WEB_TEXT,
APPLICATION_GRPC_WEB_TEXT_PROTO};
use futures_util::ready;
Expand Down
2 changes: 1 addition & 1 deletion mm2src/mm2_test_helpers/src/for_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ pub const PIRATE_ELECTRUMS: &[&str] = &[
#[cfg(not(target_arch = "wasm32"))]
pub const PIRATE_LIGHTWALLETD_URLS: &[&str] = &["http://node1.chainkeeper.pro:443"];
#[cfg(target_arch = "wasm32")]
pub const PIRATE_LIGHTWALLETD_URLS: &[&str] = &["http://pirate.spyglass.quest:8081"];
pub const PIRATE_LIGHTWALLETD_URLS: &[&str] = &["http://pirate.battlefield.earth:8581"];
pub const DEFAULT_RPC_PASSWORD: &str = "pass";
pub const QRC20_ELECTRUMS: &[&str] = &[
"electrum1.cipig.net:10071",
Expand Down

0 comments on commit b074ca7

Please sign in to comment.