@@ -744,8 +744,8 @@ impl Pool {
744
744
745
745
// use super::Configuration;
746
746
747
- // // this test is used to verify the `coinbase_tx_prefix` and `coinbase_tx_suffix` values tested
748
- // // against in message generator
747
+ // // this test is used to verify the `coinbase_tx_prefix` and `coinbase_tx_suffix` values
748
+ // tested // against in message generator
749
749
// // `stratum/test/message-generator/test/pool-sri-test-extended.json`
750
750
// #[test]
751
751
// fn test_coinbase_outputs_from_config() {
@@ -778,9 +778,9 @@ impl Pool {
778
778
// let _coinbase_tx_value_remaining: u64 = 625000000;
779
779
// let _coinbase_tx_outputs_count = 0;
780
780
// let coinbase_tx_locktime = 0;
781
- // let coinbase_tx_outputs: Vec<bitcoin::TxOut> = super::get_coinbase_output(&config).unwrap();
782
- // // extranonce len set to max_extranonce_size in `ChannelFactory::new_extended_channel()`
783
- // let extranonce_len = 32;
781
+ // let coinbase_tx_outputs: Vec<bitcoin::TxOut> =
782
+ // super::get_coinbase_output(&config).unwrap(); // extranonce len set to
783
+ // max_extranonce_size in `ChannelFactory::new_extended_channel()` let extranonce_len = 32;
784
784
785
785
// // build coinbase TX from 'job_creator::coinbase()'
786
786
@@ -813,9 +813,9 @@ impl Pool {
813
813
// coinbase_tx_prefix
814
814
// == [
815
815
// 2, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
816
- // 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 56, 3, 76, 163, 38,
817
- // 0, 83, 116, 114, 97, 116, 117, 109, 32, 118, 50, 32, 83, 82, 73, 32, 80, 111 ,
818
- // 111, 108
816
+ // 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 56, 3, 76, 163,
817
+ // 38, 0, 83, 116, 114, 97, 116, 117, 109, 32, 118, 50, 32, 83, 82, 73, 32, 80,
818
+ // 111, 111, 108
819
819
// ]
820
820
// .to_vec()
821
821
// .try_into()
@@ -827,8 +827,8 @@ impl Pool {
827
827
// == [
828
828
// 255, 255, 255, 255, 1, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 20, 235, 225, 183, 220,
829
829
// 194, 147, 204, 170, 14, 231, 67, 168, 111, 137, 223, 130, 88, 194, 8, 252, 1,
830
- // 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
831
- // 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
830
+ // 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
831
+ // 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
832
832
// ]
833
833
// .to_vec()
834
834
// .try_into()
@@ -840,8 +840,8 @@ impl Pool {
840
840
// // copied from roles-logic-sv2::job_creator
841
841
// fn coinbase_tx_prefix(coinbase: &Transaction, script_prefix_len: usize) -> B064K<'static> {
842
842
// let encoded = coinbase.serialize();
843
- // // If script_prefix_len is not 0 we are not in a test enviornment and the coinbase have the
844
- // // 0 witness
843
+ // // If script_prefix_len is not 0 we are not in a test enviornment and the coinbase have
844
+ // the // 0 witness
845
845
// let segwit_bytes = match script_prefix_len {
846
846
// 0 => 0,
847
847
// _ => 2,
@@ -864,8 +864,8 @@ impl Pool {
864
864
// script_prefix_len: usize,
865
865
// ) -> B064K<'static> {
866
866
// let encoded = coinbase.serialize();
867
- // // If script_prefix_len is not 0 we are not in a test enviornment and the coinbase have the
868
- // // 0 witness
867
+ // // If script_prefix_len is not 0 we are not in a test enviornment and the coinbase have
868
+ // the // 0 witness
869
869
// let segwit_bytes = match script_prefix_len {
870
870
// 0 => 0,
871
871
// _ => 2,
@@ -877,8 +877,7 @@ impl Pool {
877
877
// + 4 // index
878
878
// + 1 // bytes in script TODO can be also 3
879
879
// + script_prefix_len // bip34_bytes
880
- // + (extranonce_len as usize)..]
881
- // .to_vec();
880
+ // + (extranonce_len as usize)..] .to_vec();
882
881
// r.try_into().unwrap()
883
882
// }
884
883
0 commit comments