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(); let timer = time::Instant::now();
if let Some(answer) = miner.batch_iteration(nonce, self.iter_batch).await { 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() { if self.mine_answer_sender.send(answer).is_err() {
warn!("Mine submitter channel closed"); warn!("Mine submitter channel closed");
} }

View File

@ -100,7 +100,7 @@ async fn request_miner_id(
.retries(3) .retries(3)
.await .await
.map_err(|e| format!("Fail to execute mine answer transaction: {:?}", e))? .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 let first_log = receipt
.logs .logs

View File

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