File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
protocols/v2/roles-logic-sv2/src Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ pub fn tx_outputs_to_costum_scripts(tx_outputs: &[u8]) -> Vec<TxOut> {
49
49
}
50
50
51
51
impl JobsCreators {
52
+ /// constructor
52
53
pub fn new ( extranonce_len : u8 ) -> Self {
53
54
Self {
54
55
lasts_new_template : Vec :: new ( ) ,
@@ -60,6 +61,7 @@ impl JobsCreators {
60
61
}
61
62
}
62
63
64
+ /// get template id from job
63
65
pub fn get_template_id_from_job ( & self , job_id : u32 ) -> Option < u64 > {
64
66
self . job_to_template_id . get ( & job_id) . map ( |x| x - 1 )
65
67
}
@@ -135,6 +137,7 @@ impl JobsCreators {
135
137
}
136
138
}
137
139
140
+ /// convert custom job into extended job
138
141
pub fn extended_job_from_custom_job (
139
142
referenced_job : & mining_sv2:: SetCustomMiningJob ,
140
143
pool_signature : String ,
You can’t perform that action at this time.
0 commit comments