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: fix some comments #484

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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 components/addressmanager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ mod address_store_with_cache {
// The target uniform distribution
let target_u_dist = Uniform::new(0.0, (num_of_buckets) as f64).unwrap();
for _ in 0..num_of_trials {
// The weight sampled expected uniform distibution
// The weight sampled expected uniform distribution
let prioritized_address_distribution = am
.lock()
.iterate_prioritized_random_addresses(HashSet::new())
Expand Down
2 changes: 1 addition & 1 deletion components/consensusmanager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ impl StagingConsensus {
// Drop `prev` so that deletion below succeeds
drop(prev);
// Staging was committed and is now the active consensus so we can delete
// any pervious, now inactive, consensus entries
// any previous, now inactive, consensus entries
self.manager.delete_inactive_consensus_entries();
}

Expand Down
2 changes: 1 addition & 1 deletion crypto/txscript/src/opcodes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2749,7 +2749,7 @@ mod test {
(1u64, vec![], false), // Case 1: 0 = locktime < txLockTime
(0x800000, vec![0x7f, 0, 0], false), // Case 2: 0 < locktime < txLockTime
(0x800000, vec![0x7f, 0, 0, 0, 0, 0, 0, 0, 0], true), // Case 3: locktime too big
(LOCK_TIME_THRESHOLD * 2, vec![0x7f, 0, 0, 0], true), // Case 4: lock times are inconsistant
(LOCK_TIME_THRESHOLD * 2, vec![0x7f, 0, 0, 0], true), // Case 4: lock times are inconsistent
] {
let mut tx = base_tx.clone();
tx.0.lock_time = tx_lock_time;
Expand Down
2 changes: 1 addition & 1 deletion wasm/examples/nodejs/javascript/transactions/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const { encoding, networkId, address : destinationAddress } = require("../utils"
// to the change address.
//
// If the requested amount is greater than the Kaspa
// transactoin mass, the Generator will create multiple
// transaction mass, the Generator will create multiple
// transactions where each transaction will forward
// UTXOs to the change address, until the requested
// amount is reached. It will then create a final
Expand Down