Skip to content

Instantly share code, notes, and snippets.

View rfikki's full-sized avatar

Rocky Fikki rfikki

View GitHub Profile
@rfikki
rfikki / mainnet-peers-latest.txt
Last active February 18, 2023 14:45
UPDATED 12/07/2020
admin.addPeer("enode://372cc9da5d91b0cf19c8773f3197ba98059041a709ca36d643d37942d9457d34eaee58f90d23bf3e20a7b777a2c4b9247e1aa301f493b2de5d53b3ddb5cb7ac7@116.202.210.165:57840");
admin.addPeer("enode://88897be3c4a05b94813f69a8802d988cedaff711c9238811a0a38649b88703668686b4aee13ad066409a95a5368100528adf4fa7a0af7efd2a9ea194711a4da1@193.26.156.253:34896");
admin.addPeer("enode://357d1b6c71fd1a9669a0d20aae53d18b69676a0eb2baa2209806932e7e1f1e20d154a823b1e200cb8434e17dcf837c4772f2231136b0164ccaaeeabf009dc2e0@119.8.107.226:16861");
admin.addPeer("enode://3a98d3f88d7b4bf0d7251e6de7e43ae803a5ec260c35e02b526681af4d8b2e660dc3d10e64235a1551f35fa18de91cd22f5ed2c364a3e683b442f3a352bedd50@47.24.140.226:30303");
admin.addPeer("enode://c9cd1b2514fc616abf0a1504e858235438ae0c3bd8d8af562e522eb5e9df703dbc516cd499232a230c107e611ec052a1860cbd3be2636ac4fb24715392c952cd@87.117.249.243:30303");
admin.addPeer("enode://f303f44626b5989f240145086a35c2a94f46d923a9590d847814c703a44940b4367a9098e8b02cbc204d9798bbf6c3dfa04b8224870170be2a9d9a5d62
@rfikki
rfikki / rinkeby-peers-latest.txt
Last active December 9, 2020 04:21
Updated DEC/08/2020 - IMPORTANT RUN THE LATEST RELEASE OF THE CLIENT - https://geth.ethereum.org/downloads/
admin.addPeer("enode://343149e4feefa15d882d9fe4ac7d88f885bd05ebb735e547f12e12080a9fa07c8014ca6fd7f373123488102fe5e34111f8509cf0b7de3f5b44339c9f25e87cb8@52.3.158.184:30303");
admin.addPeer("enode://3338fd63203ca8f079c79c3fc5bcdaa9ee8ad8f64a48ddfb0022b77f623768eb08e82576fc1c8356a0f588ad9162989704d16e9fc0e6f0bd9feb8f7e80ed1b5f@5.189.149.113:35555");
@rfikki
rfikki / ropsten-peers-latest.txt
Last active September 24, 2022 03:23
Updated July 15, 2020: Ropsten Latest Peers with Istanbul - IMPORTANT RUN THE LATEST RELEASE OF THE CLIENT - https://geth.ethereum.org/downloads/
admin.addPeer("enode://8c5131f577ee602ccaad5e5f600011c024d43d33e6af6f8a89ed26cbfadd7efe903a8e426dde4071b857e0838a2efa29ae3b268f8b55acd59e72d4a919673cbc@13.251.47.174:30303");
admin.addPeer("enode://798b8eba7b65cdd71bb061a6b18a1f7d16612d54e1aa542d8dc5c3573322b5dd7496c1eea100dbb84f8495d89f3d5ddb4142b0006a73cd32daa2f643bd5d1c76@175.24.29.183:30311");
admin.addPeer("enode://9a4be35fec78cf91e7e959029ae3f5d3d3e86446186eb14f181c8f3b9917f57839ef98d4ba53cf06eb4fea696ecc14796b34d96db4f4294864edfcab27dd9956@31.220.51.107:30303");
admin.addPeer("enode://2763ab6d19d6e7ce7a953ba95c9a87fe6ae5eac3434bf216282f53142d89cb5451faa701311d7de1d79cc8ecbd57f1781156e26f5722aee835547aeab870e385@52.237.88.221:30303");
admin.addPeer("enode://81488a6c0b62aa14a1172d607893b6317e4f2565ca2bd73c7c0b8bfd55842af6b7972218728d1f352b3fddc61d0dccbf92e81d2bbfdc375db44ae44ee332d4db@88.198.59.75:30303");
admin.addPeer("enode://3d55f613d74e90f5b8a4154d20d8a7260a973751c1402bf52adde2b08b72a9e0327a522bf187765f2d6e2a3b893dfe7aa41b204bce5f793bd9470f24fa3aafc
{
"config": {
"chainId": 64789054323,
"homesteadBlock":0,
"eip150Block":0,
"eip155Block":10,
"eip158Block":10,
"eip160Block":10
},
"nonce": "0x0000000000000042",
pragma solidity ^0.4.0;
contract AbstractENS {
function owner(bytes32 node) constant returns(address);
function resolver(bytes32 node) constant returns(address);
function ttl(bytes32 node) constant returns(uint64);
function setOwner(bytes32 node, address owner);
function setSubnodeOwner(bytes32 node, bytes32 label, address owner);
function setResolver(bytes32 node, address resolver);
function setTTL(bytes32 node, uint64 ttl);
admin.getPeers(function(e,r){r.forEach(function(i){console.log('admin.addPeer("enode://'+i.id+'@'+i.network.remoteAddress + '");')})})
function namehash(name) {
var node = '0x0000000000000000000000000000000000000000000000000000000000000000';
if(name != '') {
var labels = name.split(".");
for(var i = labels.length - 1; i >= 0; i--) {
node = web3.sha3(node + web3.sha3(labels[i]).slice(2), {encoding: 'hex'});
}
}
return node.toString();
}
Rocky@ASUS MINGW64 /c/projects/truffle-3
$ mkdir truffle-init-webpack
Rocky@ASUS MINGW64 /c/projects/truffle-3
$ cd truffle-init-webpack
Rocky@ASUS MINGW64 /c/projects/truffle-3/truffle-init-webpack
$ truffle init webpack
Downloading project...
Installing dependencies...
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.
C:\Windows\System32>cd c:\projects\cakeshop
c:\projects\cakeshop>java -jar cakeshop.war
Defaulting to spring profile: local
Extracting geth to C:\projects\cakeshop\data\geth
INFO 2016-12-20 21:01:59,467 [main] (StartupInfoLogger.java:48 ) Starting SpringBootApplication on ASUS with PID 9244 (started by Rocky in c:\projects\cakeshop)
INFO 2016-12-20 21:01:59,469 [main] (SpringApplication.java:670) The following profiles are active: container,spring-boot,local
@rfikki
rfikki / cakeshop-clean-working-log.txt
Created December 20, 2016 21:23
Cakeshop on Windows 10 64 bit, running smoothly connected to the Ethereum Ropsten Public Testnet
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.
C:\Windows\System32>cd c:\projects\cakeshop
c:\projects\cakeshop>java -jar cakeshop.war
Defaulting to spring profile: local
Extracting geth to C:\projects\cakeshop\data\geth
INFO 2016-12-20 14:58:20,293 [main] (StartupInfoLogger.java:48 ) Starting SpringBootApplication on ASUS with PID 8412 (started by Rocky in c:\projects\cakeshop)
INFO 2016-12-20 14:58:20,296 [main] (SpringApplication.java:670) The following profiles are active: container,spring-boot,local