Skip to content

Commit 573c626

Browse files
committed
docs for job_creator module
1 parent bc90429 commit 573c626

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

protocols/v2/roles-logic-sv2/src/job_creator.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ pub fn tx_outputs_to_costum_scripts(tx_outputs: &[u8]) -> Vec<TxOut> {
4949
}
5050

5151
impl JobsCreators {
52+
/// constructor
5253
pub fn new(extranonce_len: u8) -> Self {
5354
Self {
5455
lasts_new_template: Vec::new(),
@@ -60,6 +61,7 @@ impl JobsCreators {
6061
}
6162
}
6263

64+
/// get template id from job
6365
pub fn get_template_id_from_job(&self, job_id: u32) -> Option<u64> {
6466
self.job_to_template_id.get(&job_id).map(|x| x - 1)
6567
}
@@ -135,6 +137,7 @@ impl JobsCreators {
135137
}
136138
}
137139

140+
/// convert custom job into extended job
138141
pub fn extended_job_from_custom_job(
139142
referenced_job: &mining_sv2::SetCustomMiningJob,
140143
pool_signature: String,

0 commit comments

Comments
 (0)