regex: add next block = 1 regex for p2pool

This commit is contained in:
hinto.janai 2023-12-28 16:19:44 -05:00
parent 7024c461ba
commit d27a1cad74
No known key found for this signature in database
GPG key ID: D47CE05FA175A499

View file

@ -85,6 +85,7 @@ pub struct P2poolRegex {
pub block_int: Regex, pub block_int: Regex,
pub block_comma: Regex, pub block_comma: Regex,
pub synchronized: Regex, pub synchronized: Regex,
pub next_height_1: Regex,
} }
impl P2poolRegex { impl P2poolRegex {
@ -99,6 +100,7 @@ impl P2poolRegex {
block_int: Regex::new("[0-9]{7}").unwrap(), block_int: Regex::new("[0-9]{7}").unwrap(),
block_comma: Regex::new("[0-9],[0-9]{3},[0-9]{3}").unwrap(), block_comma: Regex::new("[0-9],[0-9]{3},[0-9]{3}").unwrap(),
synchronized: Regex::new("SYNCHRONIZED").unwrap(), synchronized: Regex::new("SYNCHRONIZED").unwrap(),
next_height_1: Regex::new("next height = 1").unwrap(),
} }
} }
} }