Skip to content
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

chore: delete repetitive words #9131

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion book/src/dev/zebra-dependencies-for-audit.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ The following consensus, security, and functional changes are in Zebra's develop

The following list of dependencies is out of scope for the audit.

Please ignore the dependency versions in these tables, some of them are are outdated. All versions of these dependencies are out of scope.
Please ignore the dependency versions in these tables, some of them are outdated. All versions of these dependencies are out of scope.

The latest versions of Zebra's dependencies are in [`Cargo.lock`](https://github.com/ZcashFoundation/zebra/tree/audit-v1.0.0-rc.0/Cargo.lock), including transitive dependencies. They can be viewed using `cargo tree`.

Expand Down
2 changes: 1 addition & 1 deletion tower-batch-control/src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ where
// We don't schedule any batches on an errored service
self.pending_batch_timer = None;

// By closing the mpsc::Receiver, we know that that the run() loop will
// By closing the mpsc::Receiver, we know that the run() loop will
// drain all pending requests. We just need to make sure that any
// requests that we receive before we've exhausted the receiver receive
// the error:
Expand Down
2 changes: 1 addition & 1 deletion zebra-chain/src/block/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fn check_version(version: u32) -> Result<(), &'static str> {
// but this is not actually part of the consensus rules, and in fact
// broken mining software created blocks that do not have version 4.
// There are approximately 4,000 blocks with version 536870912; this
// is the bit-reversal of the value 4, indicating that that mining pool
// is the bit-reversal of the value 4, indicating that mining pool
rootdiae marked this conversation as resolved.
Show resolved Hide resolved
// reversed bit-ordering of the version field. Because the version field
// was not properly validated, these blocks were added to the chain.
//
Expand Down
2 changes: 1 addition & 1 deletion zebra-chain/src/history_tree/tests/vectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fn push_and_prune_for_network_upgrade(
assert_eq!(first_commitment, ChainHistoryActivationReserved);
}

// Build initial history tree tree with only the first block
// Build initial history tree with only the first block
let first_sapling_root =
sapling::tree::Root::try_from(**sapling_roots.get(&height).expect("test vector exists"))?;
let mut tree = NonEmptyHistoryTree::from_block(
Expand Down
2 changes: 1 addition & 1 deletion zebra-chain/src/transaction/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl Transaction {
// > (nActionsOrchard > 0 and enableSpendsOrchard = 1).
//
// > A coinbase transaction for a block at block height greater than 0 MUST have
// > a script that, as its first item, encodes the block height height as follows. ...
// > a script that, as its first item, encodes the block height as follows. ...
// > let heightBytes be the signed little-endian representation of height,
// > using the minimum nonzero number of bytes such that the most significant byte
// > is < 0x80. The length of heightBytes MUST be in the range {1 .. 5}.
Expand Down
2 changes: 1 addition & 1 deletion zebra-consensus/src/checkpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ where
#[instrument(name = "checkpoint", skip(self, block))]
fn call(&mut self, block: Arc<Block>) -> Self::Future {
// Reset the verifier back to the state tip if requested
// (e.g. due to an error when committing a block to to the state)
// (e.g. due to an error when committing a block to the state)
if let Ok(tip) = self.reset_receiver.try_recv() {
self.reset_progress(tip);
}
Expand Down
2 changes: 1 addition & 1 deletion zebra-rpc/src/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ impl Runner {

/// Remove transactions that are expired according to number of blocks and current spacing between blocks.
fn remove_expired(&mut self, spacing: Duration) {
// Have some extra time to to make sure we re-submit each transaction `NUMBER_OF_BLOCKS_TO_EXPIRE`
// Have some extra time to make sure we re-submit each transaction `NUMBER_OF_BLOCKS_TO_EXPIRE`
// times, as the main loop also takes some time to run.
let extra_time = Duration::seconds(5);

Expand Down
Loading