diff --git a/miner/docs/nops.md b/miner/docs/nops.md index b009f50..8119678 100644 --- a/miner/docs/nops.md +++ b/miner/docs/nops.md @@ -96,4 +96,38 @@ ``` ```text +.\runs\tswn-032-3nop.exe --team shenjack -x 5500 --start 2502000000000 -t 14 -r 10 --end 2502500000000 +2024-08-27T11:26:53.438235Z INFO tswn::cacluate: | 8|Id: 2502262393760|468.07E/d 10.01s→|6548.903E/d|0 |66.555% 0:0:22| +2024-08-27T11:26:53.447971Z INFO tswn::cacluate: |10|Id: 2502267822430|469.43E/d 9.99s→|6549.297E/d|0 |67.638% 0:0:21| +2024-08-27T11:26:53.518910Z INFO tswn::cacluate: | 4|Id: 2502273213830|467.53E/d 9.96s↑|6551.013E/d|0 |68.725% 0:0:20| +2024-08-27T11:26:53.618341Z INFO tswn::cacluate: | 9|Id: 2502278657180|469.98E/d 10.01s→|6550.692E/d|0 |69.807% 0:0:19| +2024-08-27T11:26:53.697291Z INFO tswn::cacluate: |13|Id: 2502289556650|470.64E/d 9.99s→|6551.046E/d|0 |70.895% 0:0:19| +2024-08-27T11:26:53.720518Z INFO tswn::cacluate: |11|Id: 2502284113480|470.33E/d 10.02s↓|6549.947E/d|0 |71.985% 0:0:18| +2024-08-27T11:26:53.751878Z INFO tswn::cacluate: | 6|Id: 2502294997570|469.95E/d 10.00s→|6549.798E/d|0 |73.073% 0:0:17| +2024-08-27T11:26:54.625637Z INFO tswn::cacluate: | 1|Id: 2502300445180|469.55E/d 10.02s↓|6548.678E/d|0 |74.161% 0:0:17| +2024-08-27T11:26:56.604914Z INFO tswn::cacluate: | 0|Id: 2502305733770|454.03E/d 10.06s↓|6545.775E/d|0 |75.248% 0:0:16| +2024-08-27T11:27:03.148744Z INFO tswn::cacluate: | 7|Id: 2502311163210|470.24E/d 9.98s↑|6546.913E/d|0 |76.299% 0:0:15| +2024-08-27T11:27:03.226064Z INFO tswn::cacluate: | 3|Id: 2502332773820|469.20E/d 9.86s↑|6553.637E/d|0 |77.388% 0:0:14| +2024-08-27T11:27:03.279901Z INFO tswn::cacluate: | 2|Id: 2502316574320|467.72E/d 10.00s→|6553.842E/d|0 |78.474% 0:0:14| +2024-08-27T11:27:03.297312Z INFO tswn::cacluate: | 5|Id: 2502322001270|469.35E/d 9.99s→|6554.306E/d|0 |79.556% 0:0:13| +2024-08-27T11:27:03.343270Z INFO tswn::cacluate: |12|Id: 2502327421100|467.30E/d 10.02s↓|6553.335E/d|0 |80.643% 0:0:12| +2024-08-27T11:27:03.435870Z INFO tswn::cacluate: | 8|Id: 2502338191250|468.18E/d 10.00s→|6553.451E/d|0 |81.725% 0:0:12| +2024-08-27T11:27:03.479603Z INFO tswn::cacluate: |10|Id: 2502343624480|467.96E/d 10.03s↓|6551.975E/d|0 |82.808% 0:0:11| +2024-08-27T11:27:03.560678Z INFO tswn::cacluate: | 4|Id: 2502349035740|465.61E/d 10.04s↓|6550.049E/d|0 |83.892% 0:0:10| +2024-08-27T11:27:03.636146Z INFO tswn::cacluate: | 9|Id: 2502354475370|469.15E/d 10.02s→|6549.218E/d|0 |84.969% 0:0: 9| +2024-08-27T11:27:03.713520Z INFO tswn::cacluate: |13|Id: 2502359922640|469.89E/d 10.02s→|6548.460E/d|0 |86.055% 0:0: 9| +2024-08-27T11:27:03.720766Z INFO tswn::cacluate: |11|Id: 2502365366220|470.32E/d 10.00s→|6548.452E/d|0 |87.143% 0:0: 8| +2024-08-27T11:27:03.762662Z INFO tswn::cacluate: | 6|Id: 2502370805420|469.45E/d 10.01s→|6547.960E/d|0 |88.232% 0:0: 7| +2024-08-27T11:27:04.673794Z INFO tswn::cacluate: | 1|Id: 2502376240070|468.34E/d 10.03s↓|6546.747E/d|0 |89.318% 0:0: 7| +2024-08-27T11:27:06.569116Z INFO tswn::cacluate: | 0|Id: 2502381495060|455.71E/d 9.96s↑|6548.424E/d|0 |90.403% 0:0: 6| +2024-08-27T11:27:13.153554Z INFO tswn::cacluate: | 7|Id: 2502386937670|470.02E/d 10.00s→|6548.203E/d|0 |91.457% 0:0: 5| +2024-08-27T11:27:13.292841Z INFO tswn::cacluate: | 2|Id: 2502397781690|467.37E/d 10.01s→|6547.844E/d|0 |92.545% 0:0: 4| +2024-08-27T11:27:13.303711Z INFO tswn::cacluate: | 3|Id: 2502392368210|466.82E/d 10.05s↓|6545.460E/d|0 |93.627% 0:0: 4| +2024-08-27T11:27:13.308080Z INFO tswn::cacluate: | 5|Id: 2502403214010|468.85E/d 10.01s→|6544.958E/d|0 |94.708% 0:0: 3| +2024-08-27T11:27:13.334978Z INFO tswn::cacluate: |12|Id: 2502408622600|467.69E/d 9.99s→|6545.350E/d|0 |95.793% 0:0: 2| +2024-08-27T11:27:13.436862Z INFO tswn::cacluate: | 8|Id: 2502414041380|468.15E/d 10.00s→|6545.316E/d|0 |96.876% 0:0: 2| +2024-08-27T11:27:13.469038Z INFO tswn::cacluate: |10|Id: 2502419457520|468.46E/d 9.99s→|6545.822E/d|0 |97.959% 0:0: 1| +``` + +```text diff --git a/miner/src/name.rs b/miner/src/name.rs index 7b61410..fa57ccf 100644 --- a/miner/src/name.rs +++ b/miner/src/name.rs @@ -740,6 +740,45 @@ mod test { assert_eq!(namer.val.to_vec(), val_vec); } + #[test] + fn more_val_test() { + let team = TeamNamer::new_unchecked("y"); + let namer = Namer::new_from_team_namer_unchecked(&team, "y"); + + let val_vec: Vec = vec![ + 172, 201, 232, 76, 55, 209, 7, 109, 135, 97, 137, 96, 238, 117, 175, 52, 72, 207, 136, 16, 69, 108, 116, 11, 37, 79, + 169, 46, 244, 57, 8, 67, 156, 21, 48, 43, 162, 185, 191, 141, 40, 65, 233, 211, 54, 42, 208, 28, 87, 251, 167, 53, + 82, 160, 66, 125, 183, 128, 225, 168, 78, 252, 0, 81, 199, 236, 145, 177, 178, 131, 12, 27, 189, 62, 151, 182, 204, + 83, 63, 202, 123, 148, 30, 41, 218, 196, 157, 77, 224, 229, 246, 104, 24, 93, 22, 216, 180, 171, 215, 144, 99, 193, + 176, 17, 158, 44, 213, 103, 29, 70, 18, 120, 2, 231, 61, 50, 51, 74, 106, 247, 105, 166, 133, 205, 152, 235, 248, 71, + 139, 237, 245, 38, 170, 60, 195, 119, 142, 84, 88, 13, 25, 33, 234, 154, 223, 110, 243, 203, 164, 227, 68, 138, 58, + 146, 184, 39, 173, 26, 90, 242, 161, 89, 149, 126, 132, 80, 214, 147, 222, 219, 174, 121, 49, 220, 85, 230, 23, 15, + 111, 32, 102, 75, 35, 98, 253, 56, 186, 9, 198, 118, 91, 1, 150, 112, 187, 190, 254, 10, 197, 212, 31, 113, 181, 153, + 130, 240, 241, 155, 143, 210, 115, 228, 64, 159, 165, 114, 45, 94, 20, 221, 6, 192, 200, 92, 100, 127, 163, 179, 59, + 34, 107, 124, 206, 250, 194, 36, 217, 73, 95, 86, 239, 129, 101, 134, 47, 226, 3, 14, 255, 4, 188, 249, 122, 5, 140, + 19, + ]; + assert_eq!(namer.val.to_vec(), val_vec); + + let team = TeamNamer::new_unchecked("z"); + let namer = Namer::new_from_team_namer_unchecked(&team, "z"); + + let val_vec: Vec = vec![ + 0, 68, 111, 26, 132, 249, 229, 20, 250, 160, 63, 201, 94, 3, 46, 254, 79, 204, 248, 167, 6, 228, 102, 104, 246, 183, + 37, 12, 75, 177, 140, 83, 240, 209, 124, 51, 117, 66, 251, 95, 152, 137, 33, 133, 197, 76, 70, 28, 222, 166, 99, 113, + 27, 87, 82, 161, 34, 121, 212, 141, 143, 244, 35, 169, 30, 59, 31, 47, 13, 89, 236, 86, 192, 92, 237, 231, 8, 148, + 206, 72, 194, 14, 149, 4, 50, 221, 112, 61, 71, 131, 190, 78, 90, 45, 128, 165, 198, 203, 239, 180, 118, 32, 25, 24, + 15, 10, 19, 219, 200, 88, 146, 42, 1, 208, 185, 129, 179, 225, 154, 67, 130, 168, 245, 186, 178, 188, 44, 120, 126, + 242, 110, 247, 49, 252, 211, 163, 193, 144, 241, 7, 91, 145, 199, 189, 115, 73, 226, 127, 184, 157, 138, 175, 40, + 233, 218, 58, 147, 223, 36, 21, 106, 142, 43, 65, 255, 56, 39, 125, 220, 217, 109, 23, 151, 173, 156, 224, 230, 176, + 53, 74, 158, 136, 62, 22, 119, 48, 29, 243, 52, 238, 2, 213, 77, 101, 116, 80, 114, 202, 187, 93, 54, 139, 135, 171, + 196, 84, 108, 64, 174, 38, 16, 55, 96, 234, 182, 103, 195, 207, 235, 69, 122, 97, 100, 214, 18, 232, 205, 191, 162, + 155, 57, 41, 98, 60, 123, 85, 164, 9, 81, 150, 253, 210, 227, 159, 134, 105, 107, 17, 5, 215, 153, 181, 172, 170, 11, + 216, + ]; + assert_eq!(namer.val.to_vec(), val_vec); + } + #[test] fn base_name_test() { let team = TeamNamer::new_unchecked("x");