Skip to content

Instantly share code, notes, and snippets.

View adiasg's full-sized avatar

Aditya Asgaonkar adiasg

View GitHub Profile
@adiasg
adiasg / confirmation-rule.ipynb
Last active April 30, 2023 17:17
Ethereum Confirmation Rule Prototype
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@adiasg
adiasg / check_toc.Dockerfile
Last active May 4, 2023 00:19
Scripts to automate pre-commit tests & CI checks on eth2.0-specs
FROM node:latest
WORKDIR /specs
RUN npm install -g doctoc
CMD ["make", "check_toc"]
@adiasg
adiasg / eth2_ws_calc.py
Last active October 22, 2021 18:04
Eth2 Weak Subjectivity Period Calculation
"""
This script calculates the Eth2 Weak Subjectivity period as defined by eth2.0-specs: https://github.com/ethereum/eth2.0-specs/blob/dev/specs/phase0/weak-subjectivity.md
"""
from eth2spec.phase0.mainnet import (
uint64, Ether,
ETH_TO_GWEI,
MAX_DEPOSITS,
MAX_EFFECTIVE_BALANCE,
SLOTS_PER_EPOCH,