Skip to content

Instantly share code, notes, and snippets.

@timxor
timxor / quorum_tests_august.md
Created August 21, 2017 16:25
tims quorum tests august
➜  quorum git:(master) ✗ sudo make test
Password:
build/env.sh go run build/ci.go install
>>> /usr/local/Cellar/go/1.8.3/libexec/bin/go install -ldflags -X main.gitCommit=aae37169380c2c75af33f7bd736486894bbc8459 -v ./...
build/env.sh go run build/ci.go test
>>> /usr/local/Cellar/go/1.8.3/libexec/bin/go test -p 1 github.com/ethereum/go-ethereum github.com/ethereum/go-ethereum/accounts github.com/ethereum/go-ethereum/accounts/abi github.com/ethereum/go-ethereum/accounts/abi/bind github.com/ethereum/go-ethereum/accounts/abi/bind/backends github.com/ethereum/go-ethereum/cmd/abigen github.com/ethereum/go-ethereum/cmd/bootnode github.com/ethereum/go-ethereum/cmd/disasm github.com/ethereum/go-ethereum/cmd/ethtest github.com/ethereum/go-ethereum/cmd/evm github.com/ethereum/go-ethereum/cmd/geth github.com/ethereum/go-ethereum/cmd/gethrpctest github.com/ethereum/go-ethereum/cmd/rlpdump github.com/ethereum/go-ethereum/cmd/utils github.com/ethereum/go-ethereum/common github.com/ethereum/go-ethereum/common/compiler g
@timxor
timxor / tims_rinkeby_address
Created August 18, 2017 18:24
tims_rinkeby_address
0x3dBdB73fD55a2f295CE4FDA32F3574dE7198cC05
@timxor
timxor / tims_terminal.md
Last active August 18, 2017 18:04
Setting up C++ Ethereum on a new MacBook
=>pwd
/Users/tim.siwula/Dropbox/Projects/cpp-ethereum/build
=>clang --version
clang version 4.0.1 (tags/RELEASE_401/final)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /usr/local/opt/llvm/bin

=>benchc
@timxor
timxor / How to run tims parity benchmarks on your computer(linux.ubuntu).md
Last active August 11, 2017 13:49
How to run tims parity benchmarks on your computer (linux/ubuntu)
git clone https://github.com/tcsiwula/parity -b tims_benchmarks
cd parity
rustup override set nightly

Next command takes 5/10 minutes or so to compile:

@timxor
timxor / bn_128_add_benchmark.md
Created August 9, 2017 10:19
bn_128_add_benchmark.md

I started by using bn_128_mul as a model to work off of.

#[bench]
fn bn_128_mul(b: &mut Bencher) {
	use bn::{AffineG1, G1, Fr, Group};

	// StdRng is a random number generator
	let mut rng = StdRng::new().unwrap();
	let p: G1 = G1::random(&mut rng);
@timxor
timxor / tims_parity_bench_marks.md
Last active August 9, 2017 10:08
tims_parity_bench_marks.md

Parity pre compiled contracts benchmarks.

  • bn_128_add -
  • bn_128_mul -
  • bn_128_pairing -
  • ecrecover -
  • modexp_^ - All range permutations below (15 total)
  • sha256 -
  • gas schedule ? - maybe with instructions.rs
@timxor
timxor / run-geth-benchmarks.md
Last active August 2, 2017 10:42
run geth benchmarks from scratch (on mac)

How to run some go-ethereum (geth) metropolis benchmarks

Clone repo and install dependency's:

git clone https://github.com/tcsiwula/go-ethereum.git

cd go-ethereum

go get -d ./...

go get github.com/ethereum/go-ethereum/common

@timxor
timxor / parity_benchmark_metropolis_branch.txt
Created July 18, 2017 02:11
parity_benchmark_metropolis_branch.txt
# command executed:
# cargo bench -p ethcore >> /Users/timsiwula/Desktop/metropolis_testing/logs/parity_benchmark_metropolis_branch.txt
#
running 428 tests
test account_provider::stores::tests::should_maintain_a_map_of_recent_dapps ... ignored
test account_provider::stores::tests::should_remove_address ... ignored
test account_provider::stores::tests::should_save_and_reload_address_book ... ignored
test account_provider::stores::tests::should_save_and_reload_dapps_settings ... ignored
test account_provider::stores::tests::should_store_dapps_policy ... ignored
test account_provider::tests::derived_account_nosave ... ignored

Keybase proof

I hereby claim:

  • I am tcsiwula on github.
  • I am tcsiwula (https://keybase.io/tcsiwula) on keybase.
  • I have a public key whose fingerprint is A294 4D08 C48D E189 AD80 E587 6515 4C81 F5A2 EDF0

To claim this, I am signing this object:

Welcome

This guide is intended to provide resources for those wanting to help test Metropolis EIPs. The CPP team is currently in the middle of a migration from EthDocs to a documentation site that is more dedicated to CPP-Ethereum so the documentation on creating tests for Ethereum using testeth is scattered. Everything you will need to get started should be compiled below.

Suggested skill sets needed to create and run tests

  1. Ability to compile/build testeth and LLL compiler or run a docker file.
  2. Ability to understand the LLL Ethereum language.
  3. Ability to understand EIPs, particuarly [those that are going to be going into t