Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀
Going to the moon

Lane Rettig lrettig

🚀
Going to the moon
View GitHub Profile
@lrettig
lrettig / alternateth_testnet-parity.json
Created Jul 6, 2019
Alternateth testnet parity genesis file
View alternateth_testnet-parity.json
{"name":"alternateth_testnet","dataDir":"alternateth_testnet","engine":{"Ethash":{"params":{"minimumDifficulty":"0x20000","difficultyBoundDivisor":"0x800","durationLimit":"0xd","blockReward":{"0x0":"0x4563918244f40000","0x1":"0x1bc16d674ec80000"},"difficultyBombDelays":{"0x1":"0x1e8480"},"homesteadTransition":"0x1","eip100bTransition":"0x1","progpowTransition":"0x1"}}},"params":{"accountStartNonce":"0x0","maximumExtraDataSize":"0x20","minGasLimit":"0x1388","gasLimitBoundDivisor":"0x400","networkID":"0x5278","chainID":"0x5278","maxCodeSize":"0x6000","maxCodeSizeTransition":"0x0","eip98Transition":"0x7fffffffffffffff","eip150Transition":"0x1","eip160Transition":"0x1","eip161abcTransition":"0x1","eip161dTransition":"0x1","eip155Transition":"0x1","eip140Transition":"0x1","eip211Transition":"0x1","eip214Transition":"0x1","eip658Transition":"0x1","eip145Transition":"0x1","eip1014Transition":"0x1","eip1052Transition":"0x1","eip1283Transition":"0x1","eip1283DisableTransition":"0x1"},"genesis":{"seal":{"ethereum":{"no
@lrettig
lrettig / alternateth_testnet.json
Created Jul 6, 2019
Alternateth testnet geth genesis file
View alternateth_testnet.json
{
"config": {
"chainId": 21112,
"homesteadBlock": 1,
"eip150Block": 1,
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"eip155Block": 1,
"eip158Block": 1,
"byzantiumBlock": 1,
"constantinopleBlock": 1,
@lrettig
lrettig / output.txt
Last active Jan 18, 2019
Latest iceage block time prediction as of 2019/01/18
View output.txt
# All times UTC
Block 7090000, time '2019-01-19 00:17:41.903363' blocktime 14.92 diffratio 0.0001
Block 7100000, time '2019-01-20 17:40:26.643145' blocktime 14.68 diffratio 0.0002
Block 7110000, time '2019-01-22 14:45:35.430853' blocktime 16.52 diffratio 0.0002
Block 7120000, time '2019-01-24 12:16:15.761887' blocktime 16.43 diffratio 0.0002
Block 7130000, time '2019-01-26 10:02:28.372483' blocktime 16.38 diffratio 0.0002
Block 7140000, time '2019-01-28 07:38:07.934134' blocktime 16.33 diffratio 0.0002
Block 7150000, time '2019-01-30 05:01:56.225079' blocktime 16.67 diffratio 0.0002
Block 7160000, time '2019-02-01 02:59:11.029897' blocktime 15.96 diffratio 0.0002
@lrettig
lrettig / iceage.py
Created Jan 18, 2019
Simulation script for ice age block times
View iceage.py
# Date, blocknum, difficulty as of 2019-01-18
# Script by vbuterin, slightly modified by lrettig
import random
import datetime
import sys
def calc_bomb(i):
period = i // 100000
if (period > 0):
# Subtract 2, this is the original formula
View cpp-log.txt
This file has been truncated, but you can view the full file.
2018-08-01 21:40:13 eth trace Generating seal on #50e45d66… #2
2018-08-01 21:40:14 eth client Rejigging seal engine...
2018-08-01 21:40:14 eth client Starting to seal block #2
2018-08-01 21:40:14 eth block Checking #8826ffb4…, parent = #f4a14faf…
2018-08-01 21:40:14 eth block Post-reward stateRoot: #c7c8fdaf…
2018-08-01 21:40:14 eth block --- c7c8fdafd36f28e039fefed997691b8d745d9b1fcb364b0c2c038eb55687591c
031159df845ade415202e6da299223cb640b9db0: 0 #:6000000000000000000 [SIMPLE]
efadf166849f06eee4b44ddb78e4162580f436b1: 0 #:1000000000000000000000 [SIMPLE]
View keccak.wast
;;
;; Keccak-256 (pre-standard SHA3) implementation in WASM
;;
;; Main entry point is $KECCAK which has 4 parameters:
;; - context offset (i32) -> 616 bytes of context
;; - input offset (i32)
;; - input length (i32)
;; - output offset (i32) -> 32 byte hash
;;
;; The context is laid out as follows:
View keybase.md

Keybase proof

I hereby claim:

  • I am lrettig on github.
  • I am lockehart (https://keybase.io/lockehart) on keybase.
  • I have a public key ASDmjUeZ5lJT4cz-4SAduJJCBauLSEF0JiwYhg1aWmpTPQo

To claim this, I am signing this object:

View gist:d36dab0db089cf94ab9452316eae4ae2
0x17CA7E4f40Ce8CBAE4F323a9F6bC8CF5109d5C37
View give me testnet eth 2
0x2148570E67791F06F2A8FCa70c9fAace3138897B
View give me testnet eth
0x9a0F71e714d80091BbF68c267BEF7C32470D6323
You can’t perform that action at this time.