Fix typos (#3314)
This commit is contained in:
parent
454897bc33
commit
1a1ce3dbff
|
@ -49,7 +49,7 @@ pub fn funding_stream_values(
|
||||||
Ok(results)
|
Ok(results)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the minumum height after the first halving
|
/// Returns the minimum height after the first halving
|
||||||
/// as described in [protocol specification §7.10][7.10]
|
/// as described in [protocol specification §7.10][7.10]
|
||||||
///
|
///
|
||||||
/// [7.10]: https://zips.z.cash/protocol/protocol.pdf#fundingstreams
|
/// [7.10]: https://zips.z.cash/protocol/protocol.pdf#fundingstreams
|
||||||
|
|
|
@ -74,7 +74,7 @@ pub const FUNDING_STREAM_RECEIVERS_NUMBER: usize = FundingStreamReceiver::receiv
|
||||||
pub const FUNDING_STREAM_RECEIVER_DENOMINATOR: u64 = 100;
|
pub const FUNDING_STREAM_RECEIVER_DENOMINATOR: u64 = 100;
|
||||||
|
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
/// The numerator for each funding stream reciever category
|
/// The numerator for each funding stream receiver category
|
||||||
/// as described in [protocol specification §7.10.1][7.10.1].
|
/// as described in [protocol specification §7.10.1][7.10.1].
|
||||||
///
|
///
|
||||||
/// [7.10.1]: https://zips.z.cash/protocol/protocol.pdf#zip214fundingstreams
|
/// [7.10.1]: https://zips.z.cash/protocol/protocol.pdf#zip214fundingstreams
|
||||||
|
@ -97,7 +97,7 @@ lazy_static! {
|
||||||
hash_map
|
hash_map
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Convinient storage for all addresses, for all receivers and networks
|
/// Convenient storage for all addresses, for all receivers and networks
|
||||||
pub static ref FUNDING_STREAM_ADDRESSES: HashMap<Network, HashMap<FundingStreamReceiver, Vec<String>>> = {
|
pub static ref FUNDING_STREAM_ADDRESSES: HashMap<Network, HashMap<FundingStreamReceiver, Vec<String>>> = {
|
||||||
let mut addresses_by_network = HashMap::with_capacity(2);
|
let mut addresses_by_network = HashMap::with_capacity(2);
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ lazy_static::lazy_static! {
|
||||||
/// Groth16 Zero-Knowledge Proof parameters for the Sapling and Sprout circuits.
|
/// Groth16 Zero-Knowledge Proof parameters for the Sapling and Sprout circuits.
|
||||||
///
|
///
|
||||||
/// When this static is accessed:
|
/// When this static is accessed:
|
||||||
/// - the parameters are downloded if needed, then cached to a shared directory,
|
/// - the parameters are downloaded if needed, then cached to a shared directory,
|
||||||
/// - the file hashes are checked, for both newly downloaded and previously cached files,
|
/// - the file hashes are checked, for both newly downloaded and previously cached files,
|
||||||
/// - the parameters are loaded into Zebra.
|
/// - the parameters are loaded into Zebra.
|
||||||
///
|
///
|
||||||
|
|
|
@ -39,7 +39,7 @@ impl PendingUtxos {
|
||||||
/// [`transparent::OutPoint`] that the [`Utxo`] has arrived.
|
/// [`transparent::OutPoint`] that the [`Utxo`] has arrived.
|
||||||
pub fn respond(&mut self, outpoint: &transparent::OutPoint, utxo: transparent::Utxo) {
|
pub fn respond(&mut self, outpoint: &transparent::OutPoint, utxo: transparent::Utxo) {
|
||||||
if let Some(sender) = self.0.remove(outpoint) {
|
if let Some(sender) = self.0.remove(outpoint) {
|
||||||
// Adding the outpoint as a field lets us crossreference
|
// Adding the outpoint as a field lets us cross-reference
|
||||||
// with the trace of the verification that made the request.
|
// with the trace of the verification that made the request.
|
||||||
tracing::trace!(?outpoint, "found pending UTXO");
|
tracing::trace!(?outpoint, "found pending UTXO");
|
||||||
let _ = sender.send(utxo);
|
let _ = sender.send(utxo);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//! `download` subcommand - pre-download required parameter files
|
//! `download` subcommand - pre-download required parameter files
|
||||||
//!
|
//!
|
||||||
//! `zebrad download` automatically downloads required paramter files the first time it is run.
|
//! `zebrad download` automatically downloads required parameter files the first time it is run.
|
||||||
//!
|
//!
|
||||||
//! This command should be used if you're launching lots of `zebrad start` instances for testing,
|
//! This command should be used if you're launching lots of `zebrad start` instances for testing,
|
||||||
//! or you want to include the parameter files in a distribution package.
|
//! or you want to include the parameter files in a distribution package.
|
||||||
|
|
Loading…
Reference in New Issue