Skip to content

Instantly share code, notes, and snippets.

@giladoved
giladoved / setup.MD
Last active December 19, 2023 08:01
setup local testnet with geth

Setup a testnet with geth

Create two test accounts

datadir is any location we choose for the testnet to put its data in. Remember the password you enter, 'password' is easy enough. Do this command twice to make two accounts.

geth account new --datadir=/tmp/testnet

Create a custom genesis block

A generic template was taken from: https://github.com/ethereum/go-ethereum/wiki/Private-network

@giladoved
giladoved / gist:cc2aedbf99ce674d3e8c
Created November 20, 2014 02:11
WayTooLongWords71A
import java.util.Scanner;
public class WayTooLongWords71A {
/**
* @param args
*/
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
//Gilad Oved
import java.util.Scanner;
public class NextRound158A {
/**
* @param args
*/
public static void main(String[] args) {
//Gilad Oved
import java.util.Scanner;
public class Watermelon4A {
/**
* @param args
*/
public static void main(String[] args) {
//Gilad Oved
import java.util.Scanner;
public class TheatreSquare1A {
/**
* @param args
*/
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);