Skip to content

Instantly share code, notes, and snippets.

Avatar

Rocky Fikki rfikki

View GitHub Profile
View gist:0c13dc0a581d9fe7ce1ed984171ffbe6
Generate state:
bazel run //tools/genesis-state-gen --define=ssz=mainnet -- \
--num-validators=64 \
--output-ssz=/tmp/genesis.ssz \
--mainnet-config
BN1:
bazel run //beacon-chain --define ssz=mainnet -- \
--http-web3provider \
@rfikki
rfikki / rinkeby-lightclient-peers-latest.txt
Last active Sep 28, 2020
Rinkeby Lightclient Peers (Updated Sep 28, 2020)
View rinkeby-lightclient-peers-latest.txt
admin.addPeer("enode://b6b28890b006743680c52e64e0d16db57f28124885595fa03a562be1d2bf0f3a1da297d56b13da25fb992888fd556d4c1a27b1f39d531bde7de1921c90061cc6@159.89.28.211:30303");
admin.addPeer("enode://a24ac7c5484ef4ed0c5eb2d36620ba4e4aa13b8c84684e1b4aab0cebea2ae45cb4d375b77eab56516d34bfbd3c1a833fc51296ff084b770b94fb9028c4d25ccf@52.169.42.101:30303");
admin.addPeer("enode://9a4e67ab6482ce584db01b79e19eab2b2f18ff8a65caf73eef69be5dd12be1d115496876b2504fa7f96f3bfac6cd5a4393d4d803c691dc481b9e7586689e312a@159.89.168.113:30303");
admin.addPeer("enode://573295b2652117992aaf64f555405bc77de62567d880c708ec350e785f6b35b0a8d4cff4df43539811bb05822077d7c0c842a9870833f5aac4590c367095eb3b@13.48.101.134:30303");
@rfikki
rfikki / goerli_lightclient-peers-latest.txt
Last active Oct 7, 2020
Goerli Lightclient Peers Oct 07, 2020 - IMPORTANT RUN THE LATEST RELEASE OF THE CLIENT - https://geth.ethereum.org/downloads/
View goerli_lightclient-peers-latest.txt
admin.addPeer("enode://59d62ab6e3b70be2625da680c54fc082b5ad313840abc18ec0feddc4bcb5704318cf5dceb70ac6350b0ebbb9f851e87ec2bdca243d41dc1136c5325de1ad61d0@176.223.135.35:30303");
admin.addPeer("enode://12f2ca97fcd8618c6929963c6fb27856d76ccf65fbafe8d4662c2c11b742b3c5b7c5f24ab2d26a71bc8fce1d8d04f338ee7accceacdfb4f92e17a7f288b13890@70.68.16.149:30303");
admin.addPeer("enode://ace5aa59b9624a9c0e4e43bc45ffa21b18178ee675e8bd90c12850824509c00dff40304544db913fb8ed5e9fdc791346240a3fffeb66cdf38ee2a42686fc1e2d@157.230.145.111:30303");
admin.addPeer("enode://a61215641fb8714a373c80edbfa0ea8878243193f57c96eeb44d0bc019ef295abd4e044fd619bfc4c59731a73fb79afe84e9ab6da0c743ceb479cbb6d263fa91@3.11.147.67:30303");
admin.addPeer("enode://6c8e48bcf1f2194b6625bcc066afe62593f0f78e1fc355698459733dcc562500396c7484e25d7cc80a796db186947436c9b3518c2f998dfe0d0c59284b08a3c2@144.76.236.199:40303");
@rfikki
rfikki / goerli-peers-latest.txt
Last active Oct 10, 2020
Goerli Peers October 10, 2020 - IMPORTANT RUN THE LATEST RELEASE OF THE GETH CLIENT - https://geth.ethereum.org/downloads/
View goerli-peers-latest.txt
admin.addPeer("enode://a1e8102e7beb94207c8608d7e2615579cf34200c15e24fd797b178f42d05d2e9d9a89c73577d1f9f4070360df20a14014c242674f7731421b188f0bf4618480a@176.144.82.166:30303");
admin.addPeer("enode://46add44b9f13965f7b9875ac6b85f016f341012d84f975377573800a863526f4da19ae2c620ec73d11591fa9510e992ecc03ad0751f53cc02f7c7ed6d55c7291@94.237.54.114:30313");
admin.addPeer("enode://6010c16d5776036f0f96a526aa17e302b91b0c955b9edbbcde924d7e35e9b0646333b192dc1c18cf4c217ed4ba76632548a62daf6536d661637efa437c6d62d8@54.198.42.106:30303");
admin.addPeer("enode://290955521ff90413b3d6a842e830f9a9ab468fd27058534ed410cef816beb57ec5d965f8fd74a5ac52c43c6277a6a47add4eff06b4f4bfdf1d597006b8b5b764@83.162.151.227:30303");
admin.addPeer("enode://9d8eeb510d16515a9f8c3f542047d3cec3d4d19a2d2d3881fca1cabaabc99aad4b30e9339815f0fb57ee1b6c0bd54abf2033006145713c6f2b91ddb285a55757@78.46.136.255:30303");
admin.addPeer("enode://a12c8f94d85b96c73fa9efdbbe1f7625907c3cdffac1f37eb50f995bce93f48a81200e8292e87660230c9390d712bf9c59deee4b69ef4c81017ac2f65623
View upgradable.sol
pragma solidity ^0.4.0;
import './SafeMath.sol';
/**
* Here is an example of upgradable contract, consisting of three parts:
* - Data contract keeps the resources (data) and is controlled by the Handler contract;
* - Handler contract (implements Handler interface) defines operations and provides services. This contract can be upgraded;
* - Upgrader contract (optional) deals with the voting mechanism and upgrades the Handler contract. The voters are pre-defined
* by the contract owner.
@rfikki
rfikki / constantinople-ropsten-peers.txt
Last active Feb 3, 2020
Updated November 25, 2019: Ropsten Latest Peers with Istanbul - IMPORTANT RUN THE LATEST RELEASE OF THE CLIENT - https://geth.ethereum.org/downloads/ and use this flag --whitelist=6485846=0x43f0cd1e5b1f9c4d5cda26c240b59ee4f1b510d0a185aa8fd476d091b0097a80
View constantinople-ropsten-peers.txt
admin.addPeer("enode://cd24a0c66055d788ce2bb77c2525915724a56de577b3e39c1a4dde347e60c83f082285a9d43a5ba0d7efc929699106d147e8d3612baafcaeb8f3075f36a82670@180.64.84.98:51044");
admin.addPeer("enode://86fb5f9e216c9fef5f97d3140d8d30ba13e2cc615ebb0b8e22975d296486e1f589baa6a2a4db6e0a1482f9b27a9e472efd94ec01cefc6e1d7e687dcdda0af5cc@46.105.118.30:30333");
View lightclient-ropsten-peers-latest.txt
admin.addPeer("enode://053d2f57829e5785d10697fa6c5333e4d98cc564dbadd87805fd4fedeb09cbcb642306e3a73bd4191b27f821fb442fcf964317d6a520b29651e7dd09d1beb0ec@79.98.29.154:30303");
View lightclient-peers-mainnet-latest.txt
admin.addPeer("enode://05b03241bae2a17534a4ffa005d075e38868f89c6db95b0e089c67ff6d3e9ed3f7132d4e9d57f09628f4827cfb370fe5f624c36af44899e423aacf4869a3adf3@54.180.141.155:30303");
admin.addPeer("enode://db89ee8a241b74b204984bd5133bbc2b6273803ab9b7866dd82b8883db24d1522736913015065b5881b244905f9691b42d7d8facb4377ce3e65b9f34153d0e5e@62.99.165.204:30303");
admin.addPeer("enode://31cc50f97458f97610ea5a367b5921a8e3edb12989356a281da250689d922d98a2ab7ffa8c86c7e8c80c51ceccd768a5e3b5caafd999b6c46438c32a68aa95cc@185.65.134.176:16131");
admin.addPeer("enode://0fdca3b09a4f0f6f8c0e01512fd5506c511cbeaa3441434c80f087bd117fe79677662649c1c7be4ab714875f125ff621e4bdec897e754f89e04fc85f82bc9391@116.202.170.226:30303");
@rfikki
rfikki / mainnet-peers-latest.txt
Last active Sep 30, 2020
UPDATED SEP 30, 2020
View mainnet-peers-latest.txt
admin.addPeer("enode://d0b4a09d072b3f021e233fe55d43dc404a77eeaed32da9860cc72a5523c90d31ef9fab7f3da87967bc52c1118ca3241c0eced50290a87e0a91a271b5fac8d0a6@157.230.142.236:30303");
admin.addPeer("enode://5070366042daaf15752fea340e7ffce3fd8fc576ac846034bd551c3eebac76db122a73fe8418804c5070a5e6d690fae133d9953f85d7aa00375d9a4a06741dbc@116.202.231.71:30303");
admin.addPeer("enode://4ac7a279cf0787a92ab1660bce95dd7271366b2fa182f9f8e2cef90702765e0705e026a205cb9590c19c0b981037efaac54d6b61e1aa42a3208e7eedfd98e64b@13.250.43.92:30303");
admin.addPeer("enode://cc4e6dba9401849a2542237d5cc91710bc6153a53d3367788b9d365ff795b52e3ccbcc6f30214678d3274a09ebcaeb151d29ee5edc6797641ed78ed8686e4c63@139.5.203.170:30303");
admin.addPeer("enode://7ddef1dd80ffc315f4e40b047bb73874685151ed16117c197d110f3db7213ae848a6dd1ad4226ab3d3d64ed105d2e94ecf258ee004dcec83544319b5ca837724@103.117.146.34:30303");
admin.addPeer("enode://42fd07d6e79f48aadaf4e7be3fa58d376be7e49e6ad2b214a734514938101d841232642f7bc051779087df7eca1e86696aa8eb5d8cd4aee8644f8d20fa4
@rfikki
rfikki / rinkeby-peers-latest.txt
Last active Sep 17, 2020
Updated Sep17, 2020 - IMPORTANT RUN THE LATEST RELEASE OF THE CLIENT - https://geth.ethereum.org/downloads/
View rinkeby-peers-latest.txt
admin.addPeer("enode://343149e4feefa15d882d9fe4ac7d88f885bd05ebb735e547f12e12080a9fa07c8014ca6fd7f373123488102fe5e34111f8509cf0b7de3f5b44339c9f25e87cb8@52.3.158.184:30303");
admin.addPeer("enode://9a4e67ab6482ce584db01b79e19eab2b2f18ff8a65caf73eef69be5dd12be1d115496876b2504fa7f96f3bfac6cd5a4393d4d803c691dc481b9e7586689e312a@159.89.168.113:30303");
admin.addPeer("enode://2ffab142ac77e874540562b4c5127d1edc82205be7b314cc592184affe2cbd3ee42804697f09cd6751ca1a5dc7bfc7887d3e32181eecca55f5e694ed46981463@207.180.232.138:30303");
admin.addPeer("enode://714ebc025a37f2ef36b1e440ac6bbc3a19a257c70426277baf928ac9db3810a0b9dd840a93e8ba41d46fe5bb00d767556572282ebe81d7f69b02c10affa78d21@128.230.208.73:30297");
admin.addPeer("enode://045c060e0412178bae17816d0e4729db4329cb6ac7754e48bb9b7f3bace753d0fc01b46a62ca5303c291fd31d73945709817905cdb94d5c736a63f766e3f4565@13.229.243.173:30303");
admin.addPeer("enode://36c60a4d8e7bc6a5dfbfaf9cbc0dabb74085576c0324b72d47451286f7d7e82e79df8f82cf95d00d0901677fb427a403f32a20c0b243018620408ce34c
You can’t perform that action at this time.