Skip to content

Instantly share code, notes, and snippets.

@michaelsproul
Created July 8, 2021 13:44
Show Gist options
  • Save michaelsproul/7bbf52e8530bd401a7f841ac6c0f3627 to your computer and use it in GitHub Desktop.
Save michaelsproul/7bbf52e8530bd401a7f841ac6c0f3627 to your computer and use it in GitHub Desktop.
Sync committee set bits
for i in (seq 416 520)
set set_bits (block.sh $i | jq .data.message.body.sync_aggregate.sync_committee_bits | python3 -c "print(bin(int(input().strip('\"').replace('null', '0x0'), base=16)).count('1'))")
echo "block $i: $set_bits"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment