mmgen-blocks-info: improve miner string parsing

This commit is contained in:
The MMGen Project 2021-03-14 13:29:26 +00:00
commit 7ce9c00883
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2

View file

@ -134,8 +134,9 @@ class BlocksInfo:
rb'([a-zA-Z0-9&. -]+/Mined by [a-zA-Z0-9. ]+)',
rb'\x08/(.*Mined by [a-zA-Z0-9. ]+)',
rb'Mined by ([a-zA-Z0-9. ]+)',
rb'[/^]([a-zA-Z0-9&. /-]{5,})',
rb'[/^]([a-zA-Z0-9&. /-]+)/',
rb'[`]([_a-zA-Z0-9&. #/-]+)[/\xfa]',
rb'[/^]([a-zA-Z0-9&. #/-]{5,})',
rb'[/^]([_a-zA-Z0-9&. #/-]+)/',
)]
else:
self.miner_pats = None