Skip to content

Instantly share code, notes, and snippets.

@veox
Last active January 17, 2019 00:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veox/f30c6c812e99b2af04d88f51db1aee73 to your computer and use it in GitHub Desktop.
Save veox/f30c6c812e99b2af04d88f51db1aee73 to your computer and use it in GitHub Desktop.
go-ethereum LES client/server versions and count, ~ at block 7078725 (~1275 blocks before abortive Constantinople fork)
% cat $PEERS | grep -A3 'caps: \["les/1", "les/2"\]' | grep "name: \"Geth" | wc -l
481
% MAJMIN='1.8' && for BUGFIX in `seq 1 23`; do echo -n "$MAJMIN.$BUGFIX\t" && cat $PEERS | grep -A3 'caps: \["les/1", "les/2"\]' | grep 'name: \"Geth' | grep -E "v$MAJMIN.$BUGFIX"'[^0-9]' | wc -l; done
1.8.1 6
1.8.2 13
1.8.3 5
1.8.4 1
1.8.5 1
1.8.6 2
1.8.7 10
1.8.8 11
1.8.9 3
1.8.10 3
1.8.11 18
1.8.12 21
1.8.13 24
1.8.14 5
1.8.15 30
1.8.16 31
1.8.17 32
1.8.18 27
1.8.19 22
1.8.20 95
1.8.21 102
1.8.22 3
1.8.23 0
% cat $PEERS | grep -A3 'caps: \["eth/62", "eth/63", "les/1", "les/2"\]' | grep "name: \"Geth" | wc -l
10
% MAJMIN='1.8' && for BUGFIX in `seq 1 23`; do echo -n "$MAJMIN.$BUGFIX\t" && cat $PEERS | grep -A3 'caps: \["eth/62", "eth/63", "les/1", "les/2"\]' | grep 'name: \"Geth' | grep -E "v$MAJMIN.$BUGFIX"'[^0-9]' | wc -l; done
1.8.1 0
1.8.2 0
1.8.3 0
1.8.4 0
1.8.5 0
1.8.6 0
1.8.7 0
1.8.8 0
1.8.9 0
1.8.10 0
1.8.11 0
1.8.12 0
1.8.13 0
1.8.14 0
1.8.15 0
1.8.16 0
1.8.17 0
1.8.18 0
1.8.19 0
1.8.20 0
1.8.21 8
1.8.22 2
1.8.23 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment