You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bb15261
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+40-72Lines changed: 40 additions & 72 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,25 @@ Ethereum (CLI):
24
24
25
25
`go get github.com/ethereum/go-ethereum/cmd/ethereum`
26
26
27
-
For further, detailed, build instruction please see the [Wiki](https://github.com/ethereum/go-ethereum/wiki/Building-Ethereum(Go))
27
+
As of POC-8, go-ethereum uses [Godep](https://github.com/tools/godep) to manage dependencies. Assuming you have [your environment all set up](https://github.com/ethereum/go-ethereum/wiki/Building-Ethereum(Go)), switch to the go-ethereum repository root folder, and build/install the executable you need:
28
+
29
+
Mist (GUI):
30
+
31
+
```
32
+
godep go build -v ./cmd/mist
33
+
```
34
+
35
+
Ethereum (CLI):
36
+
37
+
```
38
+
godep go build -v ./cmd/ethereum
39
+
```
40
+
41
+
Instead of `build`, you can use `install` which will also install the resulting binary.
42
+
43
+
For prerequisites and detailed build instructions please see the [Wiki](https://github.com/ethereum/go-ethereum/wiki/Building-Ethereum(Go))
44
+
45
+
If you intend to develop on go-ethereum, check the [Developers' Guide](https://github.com/ethereum/go-ethereum/wiki/Developers'-Guide)
*`rlpdump` converts a rlp stream to `interface{}`.
52
70
53
-
General command line options
71
+
Command line options
54
72
============================
55
73
74
+
Both `mist` and `ethereum` can be configured via command line options, environment variables and config files.
75
+
76
+
To get the options available:
77
+
56
78
```
57
-
== Shared between ethereum and Mist ==
58
-
59
-
= Settings
60
-
-id Set the custom identifier of the client (shows up on other clients)
61
-
-port Port on which the server will accept incomming connections
62
-
-upnp Enable UPnP
63
-
-maxpeer Desired amount of peers
64
-
-rpc Start JSON RPC
65
-
-dir Data directory used to store configs and databases
66
-
67
-
= Utility
68
-
-h This
69
-
-import Import a private key
70
-
-genaddr Generates a new address and private key (destructive action)
71
-
-dump Dump a specific state of a block to stdout given the -number or -hash
72
-
-difftool Supress all output and prints VM output to stdout
73
-
-diff vm=only vm output, all=all output including state storage
74
-
75
-
Ethereum only
76
-
ethereum [options] [filename]
77
-
-js Start the JavaScript REPL
78
-
filename Load the given file and interpret as JavaScript
79
-
-m Start mining blocks
80
-
81
-
== Mist only ==
82
-
83
-
-asset_path absolute path to GUI assets directory
79
+
ethereum -help
84
80
```
85
81
82
+
For further details on options, see the [wiki](https://github.com/ethereum/go-ethereum/wiki/Command-Line-Options)
83
+
86
84
Contribution
87
85
============
88
86
89
-
If you'd like to contribute to Ethereum please fork, fix, commit and
87
+
If you'd like to contribute to go-ethereum please fork, fix, commit and
90
88
send a pull request. Commits who do not comply with the coding standards
91
89
are ignored (use gofmt!). If you send pull requests make absolute sure that you
92
90
commit on the `develop` branch and that you do not merge to master.
93
91
Commits that are directly based on master are simply ignored.
94
92
95
-
For dependency management, we use [godep](https://github.com/tools/godep). After installing with `go get github.com/tools/godep`, run `godep restore` to ensure that changes to other repositories do not break the build. To update a dependency version (for example, to include a new upstream fix), run `go get -u <foo/bar>` then `godep update <foo/...>`. To track a new dependency, add it to the project as normal than run `godep save ./...`. Changes to the Godeps folder should be manually verified then commited.
96
-
97
-
To make life easier try [git flow](http://nvie.com/posts/a-successful-git-branching-model/) it sets
98
-
this all up and streamlines your work flow.
99
-
100
-
Coding standards
101
-
================
102
-
103
-
Sources should be formatted according to the [Go Formatting
Unless structs fields are supposed to be directly accesible, provide
107
-
Getters and hide the fields through Go's exporting facility.
108
-
109
-
When you comment put meaningful comments. Describe in detail what you
110
-
want to achieve.
111
-
112
-
*wrong*
113
-
114
-
```go
115
-
// Check if the value at x is greater than y
116
-
if x > y {
117
-
// It's greater!
118
-
}
119
-
```
120
-
121
-
Everyone reading the source probably know what you wanted to achieve
122
-
with above code. Those are **not** meaningful comments.
93
+
For dependency management, we use [godep](https://github.com/tools/godep). After installing with `go get github.com/tools/godep`, run `godep restore` to ensure that changes to other repositories do not break the build. To update a dependency version (for example, to include a new upstream fix), run `go get -u <foo/bar>` then `godep update <foo/...>`. To track a new dependency, add it to the project as normal than run `godep save ./...`. Changes to the [Godeps folder](https://github.com/ethereum/go-ethereum/tree/develop/Godeps): should be manually verified then commited.
123
94
124
-
While the project isn't 100% tested I want you to write tests non the
125
-
less. I haven't got time to evaluate everyone's code in detail so I
126
-
expect you to write tests for me so I don't have to test your code
127
-
manually. (If you want to contribute by just writing tests that's fine
128
-
too!)
95
+
To make life easier try [git flow](http://nvie.com/posts/a-successful-git-branching-model/) it sets this all up and streamlines your work flow.
129
96
97
+
See [Developers' Guide](https://github.com/ethereum/go-ethereum/wiki/Developers'-Guide)
0 commit comments