Compare commits

...

4 Commits

Author SHA1 Message Date
Jason
87b58a1b67
Merge ffcd9c0b25 into a4dd88f2b8 2024-09-11 18:00:02 +08:00
peilun-conflux
a4dd88f2b8
Change submit receipt to info. (#195)
Some checks failed
abi-consistent-check / build-and-compare (push) Has been cancelled
code-coverage / unittest-cov (push) Has been cancelled
rust / check (push) Has been cancelled
rust / test (push) Has been cancelled
rust / lints (push) Has been cancelled
functional-test / test (push) Has been cancelled
2024-09-11 17:59:43 +08:00
peilun-conflux
3dc3d0574f
Fix typos. (#193) 2024-09-11 17:57:41 +08:00
jason1
ffcd9c0b25 change the Pora result from debug to info 2024-09-10 14:11:52 +08:00
3 changed files with 4 additions and 5 deletions

View File

@ -210,7 +210,7 @@ impl PoraService {
let timer = time::Instant::now();
if let Some(answer) = miner.batch_iteration(nonce, self.iter_batch).await {
debug!("Hit Pora answer {:?}", answer);
info!("Hit Pora answer {:?}", answer);
if self.mine_answer_sender.send(answer).is_err() {
warn!("Mine submitter channel closed");
}

View File

@ -100,7 +100,7 @@ async fn request_miner_id(
.retries(3)
.await
.map_err(|e| format!("Fail to execute mine answer transaction: {:?}", e))?
.ok_or("Request miner id transaction dropped after 3 retires")?;
.ok_or("Request miner id transaction dropped after 3 retries")?;
let first_log = receipt
.logs

View File

@ -167,12 +167,11 @@ impl Submitter {
.await
.map_err(|e| format!("Fail to execute mine answer transaction: {:?}", e))?
.ok_or(format!(
"Mine answer transaction dropped after {} retires",
"Mine answer transaction dropped after {} retries",
SUBMISSION_RETIES
))?;
info!("Submit PoRA success");
debug!("Receipt: {:?}", receipt);
info!("Submit PoRA success, receipt: {:?}", receipt);
Ok(())
}