diff --git a/.gitignore b/.gitignore index d449238d6d..ab94b288f6 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ /.vagrant /index.lmdb /index.redb +/ord.log /target diff --git a/bin/graph b/bin/graph new file mode 100755 index 0000000000..3d96cb3933 --- /dev/null +++ b/bin/graph @@ -0,0 +1,49 @@ +#!/usr/bin/env python3 + +import re +from matplotlib.pyplot import * +from dataclasses import dataclass + +@dataclass +class Block: + height: int + ranges: int + time: int + transactions: int + +pat = re.compile( + '''Block (?P[0-9]+).*with (?P[0-9]+) transactions.* +.*Wrote (?P[0-9]+) ordinal ranges in (?P