-
Notifications
You must be signed in to change notification settings - Fork 94
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
[r2r] ARRR integration WIP. #1237
Conversation
# Conflicts: # Cargo.toml # mm2src/coins/z_coin.rs
@shamardy @ozkanonur @sergeyboyko0791 It's ready for next review iteration 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
let pubsecp = hex::encode(key_pair.public_slice()); | ||
|
||
// Artem Vitae | ||
// I tried if let Some(p2p_privkey) = order_mutex.lock().await.p2p_privkey |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cloning of the order has to be used to drop the mutex in this case, if let Some(p2p_privkey) = order_mutex.lock().await.clone().p2p_privkey
will work but I guess just using drop(order)
is ok as it avoids cloning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last review iteration
Just a few comments
}, | ||
#[cfg(not(target_arch = "wasm32"))] | ||
// TODO ask Slyris | ||
CoinProtocol::SOLANA | CoinProtocol::SPLTOKEN { .. } => unimplemented!(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave this comment just not to forget
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
509117f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good Work! Just a couple of minor suggestions. Looks all good to me :)
@@ -153,6 +153,10 @@ impl ZCoin { | |||
|
|||
pub fn rpc_client(&self) -> &UtxoRpcClientEnum { &self.utxo_arc.rpc_client } | |||
|
|||
pub fn is_sapling_state_synced(&self) -> bool { self.z_fields.sapling_state_synced.load(AtomicOrdering::Relaxed) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better to inline
this function.
@ozkanonur I've done all fixes, could you recheck the PR, please? |
Great work, looks good for me. 🔥 |
# Conflicts: # mm2src/mm2_tests.rs
8eb9e1d
orderbook
andbest_orders
2.0 RPCs.#927