mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-11-03 16:17:27 +00:00
update condition to align with source change
This commit is contained in:
parent
17cb7657cd
commit
1639a1332a
@ -13,7 +13,11 @@ impl<T: HashElement> Proof<T> {
|
|||||||
/// Creates new MT inclusion proof
|
/// Creates new MT inclusion proof
|
||||||
pub fn new(hash: Vec<T>, path: Vec<bool>) -> Result<Proof<T>> {
|
pub fn new(hash: Vec<T>, path: Vec<bool>) -> Result<Proof<T>> {
|
||||||
if hash.len() != path.len() + 2 {
|
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 })
|
Ok(Proof { lemma: hash, path })
|
||||||
}
|
}
|
||||||
|
|||||||
@ -162,7 +162,7 @@ class TestNode:
|
|||||||
self.stderr.seek(0)
|
self.stderr.seek(0)
|
||||||
stderr = self.stderr.read().decode("utf-8").strip()
|
stderr = self.stderr.read().decode("utf-8").strip()
|
||||||
# TODO: Check how to avoid `pthread lock: Invalid argument`.
|
# 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
|
# print process status for debug
|
||||||
if self.return_code is None:
|
if self.return_code is None:
|
||||||
self.log.info("Process is still running")
|
self.log.info("Process is still running")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user