Open wizardofozzie opened 9 years ago
Has anyone got a better way to check the coinbase field and filter out non-printable characters? ie, note the 'E' in front of the block 0 coinbase text returned, or the random chars here @ 142573
I like it for py3 support, a much better way to convert to str, better than having to touch all the json.loads().
this seems like a good fragment for filtering non-printable?
cbtxt = ''.join(c for c in cb if c in string.printable)