Skip to content

Instantly share code, notes, and snippets.

// WARNING: WORK IN PROGRESS & UNTESTED
//
// @AUTHORS: Gustav Simonsson <gustav@ethdev.com>
// @DATE: 2015-10-30
// @VERSION: 0.1
// @LICENSE: GNUBL 2.0 (https://github.com/Gustav-Simonsson/GNUBL/blob/master/LICENSE)
//
// contract tracking versions added by designated signers.
// designed to track versions of geth (go-ethereum) recommended by the
// go-ethereum team. geth client interfaces with contract through ABI by simply
// WARNING: WORK IN PROGRESS & UNTESTED
//
// @AUTHORS: Gustav Simonsson <gustav@ethdev.com>
// @DATE: 2015-10-30
// @VERSION: 0.1
// @LICENSE: GNUBL 2.0 (https://github.com/Gustav-Simonsson/GNUBL/blob/master/LICENSE)
//
// contract tracking versions added by designated signers.
// designed to track versions of geth (go-ethereum) recommended by the
// go-ethereum team. geth client interfaces with contract through ABI by simply
> eth.getCode(versions.address).length
5956
> eth.getStorageAt(versions.address,0)
"0x0000000000000000000000000000000000000000000000000000000000000002"
> eth.getStorageAt(versions.address,1)
"0x0000000000000000000000000000000000000000000000000000000000000000"
> eth.getStorageAt(versions.address,2)
"0x0000000000000000000000000000000000000000000000000000000000000002"
> eth.getStorageAt(versions.address,3)
"0x0000000000000000000000000000000000000000000000000000000000000000"
> debug.getBlockRlp(443947)
"f90683f90216a03182597a55e06f309d37ffac524d4398d59570a3c02f1e986955745d58b1b72ca0c0ab732e2356ffea1687a6da1e1ed4c359d7b8cadd26246e9ba3e04c349b06f794cefa54c1a83a0ecc31dd4e329e0d4b42869b1eb9a0952b1629b02c743931ac802922ae18c7b24d28eb62b270e635ba12f43cfedca9a0279fff32c31c99103904db217b5b3c1126d04446c7a6928e561ade8ce682b026a0bcd8074b5c072938965a609d806bb30b3d12f5afd8318cf901d418f2cc32a4d8b90100000008000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000100000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000008606074abb65248306c62b832fefd8831b3ddc84562e715896d583010203844765746885676f312e35856c696e75
> eth.getBlock(443947)
{
difficulty: 6628388332836,
extraData: "0xd583010203844765746885676f312e35856c696e7578",
gasLimit: 3141592,
gasUsed: 1827755,
hash: "0x47155617d178ae63d3d7d7ae9e9f1357d5dadd5d4a8e76e523764825c6f4294c",
logsBloom: "0x00000800000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000010000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
miner: "0x4e2f2f1d8e0870cd073a0286cbc99c911053446b",
nonce: "0xa10198831a7e1893",
func BenchmarkSignRandomInput(b *testing.B) {
for i := 0; i < b.N; i++ {
b.StopTimer()
_, seckey := GenerateKeyPair()
msg := randentropy.GetEntropyCSPRNG(32)
b.StartTimer()
if _, err := Sign(msg, seckey); err != nil {
b.Fatal(err)
}
}
"SuicideCoinbase" :
contract killer { function x() {suicide(msg.sender); }}"
Filler tests needs first one tx where non-contract account calls Killer.x and then another tx (can be anything)
"OOGStateCopyContainingDeletedContract":
contract Victim {
function Die () {
suicide(msg.sender);
CMake Error at CMakeLists.txt:35 (include):
include could not find load file:
EthDependencies
CMake Error at CMakeLists.txt:38 (include):
include could not find load file:
EthCompilerSettings
geth --datadir /home/gs/eth/frontier/fnet2/
I0824 04:30:40.448408 12682 flags.go:405] WARNING: No etherbase set and no accounts found as default
I0824 04:30:40.448877 12682 backend.go:733] Database upgrade required. Upgrading...
I0824 04:30:40.448903 12682 database.go:73] Alloted 16MB cache to /home/gs/eth/frontier/fnet2/chaindata
I0824 04:30:40.454403 12682 database.go:73] Alloted 16MB cache to /home/gs/eth/frontier/fnet2/blockchain
I0824 04:30:40.486227 12682 backend.go:749] Merging blockchain database...
I0824 04:30:42.450314 12682 database.go:73] Alloted 16MB cache to /home/gs/eth/frontier/fnet2/state
I0824 04:30:42.530478 12682 backend.go:765] Merging state database...
I0824 04:30:52.449176 12682 database.go:73] Alloted 16MB cache to /home/gs/eth/frontier/fnet2/extra
I0824 04:30:52.515518 12682 backend.go:781] Merging transaction database...
0804 16:16:51.827039 51616 table.go:376] Bonding de471bccee3d0422: known=false, fails=0
I0804 16:16:51.827267 51616 udp.go:413] >>> 52.16.188.185:30303 discover.ping
I0804 16:16:51.827309 51616 udp.go:413] >>> 5.1.83.226:30303 discover.ping
I0804 16:16:51.827623 51616 udp.go:413] >>> 54.94.239.50:30303 discover.ping
I0804 16:16:52.328496 51616 server.go:465] <-taskdone: discovery lookup
I0804 16:16:52.328558 51616 server.go:431] new task: discovery lookup
I0804 16:16:55.825652 51616 database.go:185] failed to retrieve node a979fb575495b8d6db44f750317d0f4622bf4c2aa3365d6af7c284339968eef29b69ad0dce72a4d8db5ebb4968de0e3bec910127f134779fbcb0cb6d3331163c: leveldb: not found
I0804 16:16:55.825780 51616 database.go:185] failed to retrieve node de471bccee3d042261d52e9bff31458daecc406142b401d4cd848f677479f73104b9fdeb090af9583d3391b7f10cb2ba9e26865dd5fca4fcdc0fb1e3b723c786: leveldb: not found
I0804 16:16:55.825879 51616 table.go:376] Bonding de471bccee3d0422: known=false, fails=0
I0804 16:16:55.826151