I before E except after C (or uh, not-english)
This commit is contained in:
parent
5c465abed2
commit
2a21c86b91
|
|
@ -527,7 +527,7 @@ New `non-finalized` blocks are commited as follows:
|
||||||
it has already been successfully verified:
|
it has already been successfully verified:
|
||||||
- create a new oneshot channel
|
- create a new oneshot channel
|
||||||
- immediately send `Err(DuplicateBlockHash)` drop the sender
|
- immediately send `Err(DuplicateBlockHash)` drop the sender
|
||||||
- return the reciever
|
- return the receiver
|
||||||
|
|
||||||
2. If a duplicate block hash exists in the queue:
|
2. If a duplicate block hash exists in the queue:
|
||||||
- Find the `QueuedBlock` for that existing duplicate block
|
- Find the `QueuedBlock` for that existing duplicate block
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ impl Service<BatchControl<Item>> for Verifier {
|
||||||
Ok(result) => result,
|
Ok(result) => result,
|
||||||
Err(RecvError::Lagged(_)) => {
|
Err(RecvError::Lagged(_)) => {
|
||||||
tracing::error!(
|
tracing::error!(
|
||||||
"batch verification reciever lagged and lost verification results"
|
"batch verification receiver lagged and lost verification results"
|
||||||
);
|
);
|
||||||
Err(Error::InvalidSignature)
|
Err(Error::InvalidSignature)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ impl PendingUtxos {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Scan the set of waiting utxo requests for channels where all recievers
|
/// Scan the set of waiting utxo requests for channels where all receivers
|
||||||
/// have been dropped and remove the corresponding sender.
|
/// have been dropped and remove the corresponding sender.
|
||||||
pub fn prune(&mut self) {
|
pub fn prune(&mut self) {
|
||||||
self.0.retain(|_, chan| chan.receiver_count() > 0);
|
self.0.retain(|_, chan| chan.receiver_count() > 0);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue