Skip to content
Merged
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
6 changes: 5 additions & 1 deletion common/append_merkle/src/proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ impl<T: HashElement> Proof<T> {
/// Creates new MT inclusion proof
pub fn new(hash: Vec<T>, path: Vec<bool>) -> Result<Proof<T>> {
if hash.len() != path.len() + 2 {
bail!("Proof::new: expected hash length = path.len() + 2, but got {} and {}", hash.len(), path.len());
bail!(
"Proof::new: expected hash length = path.len() + 2, but got {} and {}",
hash.len(),
path.len()
);
}
Ok(Proof { lemma: hash, path })
}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_framework/blockchain_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def stop(self, expected_stderr="", kill=False, wait=True):
self.stderr.seek(0)
stderr = self.stderr.read().decode("utf-8").strip()
# TODO: Check how to avoid `pthread lock: Invalid argument`.
if stderr != expected_stderr and stderr != "pthread lock: Invalid argument":
if stderr != expected_stderr and stderr != "pthread lock: Invalid argument" and "pthread_mutex_lock" not in stderr:
# print process status for debug
if self.return_code is None:
self.log.info("Process is still running")
Expand Down
Loading