Skip to content

Instantly share code, notes, and snippets.

View obscuren's full-sized avatar
😎
Working on Grid Online

Jeffrey Wilcke obscuren

😎
Working on Grid Online
View GitHub Profile
I0409 18:30:17.538310 2540 backend.go:180] Protocol Version: 60, Network Id: 0
I0409 18:30:17.539262 2540 chain_manager.go:186] Last block (#61423) 6fd3d772007790313247a10a4b5d0c571a4b75af96d389d023473b758511c8af TD=81092450105
I0409 18:30:18.813557 2540 ethash.go:94] Making cache
I0409 18:30:20.133954 2540 ethash.go:99] Took: 1.320354714s
I0409 18:30:20.238944 2540 cmd.go:116] Starting Geth/v0.9.7/linux/go1.2.1
I0409 18:30:20.239054 2540 server.go:164] Starting Server
I0409 18:30:20.239141 2540 nat.go:94] mapping error: no devices discovered
I0409 18:30:20.239170 2540 udp.go:157] Listening, enode://afbd7776d4bb112046e6d007c5151adee22c47104e0966eb30b8cbec8ee71f59bbe68c19a19872b4a3d5f462a7eff3e09fd8e9c8bd13f4d3dde85f2364bb7876@[::]:30303
I0409 18:30:20.239244 2540 server.go:266] Listening on [::]:30303
I0409 18:30:20.239259 2540 nat.go:94] mapping error: no devices discovered
> fatal error: unexpected signal during runtime execution
[signal 0xa code=0x2 addr=0x6000003cb000 pc=0x4061e8b]
runtime stack:
runtime.gothrow(0x48a9350, 0x2a)
/usr/local/go/src/runtime/panic.go:503 +0x8e
runtime.sigpanic()
/usr/local/go/src/runtime/sigpanic_unix.go:14 +0x5e
runtime.mach_semaphore_wait(0x2903, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x405f02a, 0x4052ff0, 0x7fff5fbff4a8, ...)
/usr/local/go/src/runtime/sys_darwin_amd64.s:412 +0xb
@obscuren
obscuren / gist:a117c769b8bafcb13b7a
Created March 24, 2015 10:41
VM Trace of stState.json of test log4_nonEmptyMem
2015/03/24 11:36:41 [STATE] (+) cd1722f3947def4cf144679da39c4c32bdc35681
2015/03/24 11:36:41 [VM] (1) (cd1722f3) 0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6 (code=49) gas: 100000 (d)
2015/03/24 11:36:41 [VM] (pc) 0 -o- PUSH32 (m) 0 (s) 0 (g) 3 (100000) => 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
2015/03/24 11:36:41 [VM] (pc) 33 -o- PUSH1 (m) 0 (s) 1 (g) 3 (99997) => 0x00
2015/03/24 11:36:41 [VM] (pc) 35 -o- MSTORE (m) 0 (s) 2 (g) 6 (99994) => 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
2015/03/24 11:36:41 [VM] (pc) 36 -o- PUSH1 (m) 32 (s) 0 (g) 3 (99988) => 0x00
2015/03/24 11:36:41 [VM] (pc) 38 -o- PUSH1 (m) 32 (s) 1 (g) 3 (99985) => 0x00
2015/03/24 11:36:41 [VM] (pc) 40 -o- PUSH1 (m) 32 (s) 2 (g) 3 (99982) => 0x00
2015/03/24 11:36:41 [VM] (pc) 42 -o- PUSH1 (m) 32 (s) 3 (g) 3 (99979) => 0x00
2015/03/24 11:36:41 [VM] (pc) 44 -o- PUSH1 (
package main
import "github.com/obscuren/otto"
func main() {
ot := otto.New()
var obj struct {
Addr string
Number int
I'm having runtime errors for mist as well. qt is v 5.2.1 which is the most up-to-date version for ubuntu 14.04.1 LTS. I don't know much about go and I'm just getting into testing ethereum for the first time, so maybe I've missed something obvious. I tried the suggestion of moving the asset_path, but it didn't help. "mist/qml/main.qml" doesn't exist anywhere on my system. Is there something separate I need to install (go-qml?) or do I simply have a QT version issue like OP?
----------------------------
$ qmake -v
QMake version 3.0
Using Qt version 5.2.1 in /usr/lib/x86_64-linux-gnu
$ ./mist
2015/01/26 23:00:39 [CLI] Main address 2a77104eb7754c8e30c55b028bbf2bda4299187d
2015/01/26 23:00:40 [CHAIN] Last block (#0) 779b1b620b03c0fb24963e183d5e88e3dbe4484e3f6e2aa05942e3be7b48e179
#include <gmp.h>
#include <iostream>
#include <gmpxx.h>
#include <cmath>
template<int T>
class Fix : public mpz_class
{
public:
using mpz_class::mpz_class;
package main
import (
"fmt"
"time"
)
func agent(ch chan string) {
for {
select {
@obscuren
obscuren / cgovm.go
Created January 10, 2015 00:54
CGO return VM data
package main
//#include <stdio.h>
//#include <strings.h>
//#include <stdlib.h>
/*
typedef struct {
unsigned char *data;
int data_len;
} Result;
2014/12/19 19:43:12 [VM] (1) (b6274afb) 72ba7d8e73fe8eb666ea66babc8116a41bfb10e2 (code=223) gas: 9248 (d) 72656769737465720000000000000000000000000000000000000000000000006c696e61676565436f696e000000000000000000000000000000000000000000000000000000000000000000edd418ce06bf1079f8c80bbc8e59b8dfc80df282
2014/12/19 19:43:12 [VM] (pc) 0 -o- PUSH32 (m) 0 (s) 0 (g) 1 (9248) => 0x7265676973746572000000000000000000000000000000000000000000000000
2014/12/19 19:43:12 [VM] (pc) 33 -o- PUSH1 (m) 0 (s) 1 (g) 1 (9247) => 0x
2014/12/19 19:43:12 [VM] (pc) 35 -o- CALLDATALOAD (m) 0 (s) 2 (g) 1 (9246) => 0x7265676973746572000000000000000000000000000000000000000000000000
2014/12/19 19:43:12 [VM] (pc) 36 -o- EQ (m) 0 (s) 2 (g) 1 (9245) 51742830014861900761112610966729271512058272700541060594503944201987669622784 == 51742830014861900761112610966729271512058272700541060594503944201987669622784
2014/12/19 19:43:12 [VM] (pc) 37 -o- ISZERO (m) 0 (s) 1 (g) 1
@obscuren
obscuren / gist:145482c50e714a940f59
Last active August 29, 2015 14:11
refund_getEtherBack
message{ to: 095e7bae, from a94f5374, value: 10, gas: 850, price: 1 }
Coinbase 2adc25665018aa1fe0e6bc666dac8fc2697ff9ba (Balance 0)
From a94f5374fce5edbc8e2a8697c15331677e6ebf0b (Balance 1000)
To 095e7baea6a6c7c4c2dfeb977efac326af552d87
[From] buys 850 gas : balance = 150
[From] spends 500 gas on tx
[From] transfer 10 ETH to [To] : balance = 140
[From] runs contract with 350 gas