Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
ebbc5e7c
Commit
ebbc5e7c
authored
Mar 30, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated to new mutan api
parent
3fb7ae2f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
README.md
README.md
+6
-6
library.go
ethereal/ui/library.go
+1
-1
dev_console.go
ethereum/dev_console.go
+1
-1
No files found.
README.md
View file @
ebbc5e7c
...
...
@@ -13,18 +13,17 @@ Build
=======
For build instruction please see the
[
Wiki
](
https://github.com/ethereum/go-ethereum/wiki/Building-Ethereum(Go
)
)
C
ommand line options
General c
ommand line options
====================
```
-c Launch the developer console
-c Launch the developer console
(node only)
-m Start mining blocks
-genaddr Generates a new address and private key (destructive action)
-p Port on which the server will accept incomming connections (= 30303)
-upnp Enable UPnP (= false)
-x Desired amount of peers (= 5)
-h This help
-gui Launch with GUI (= true)
-dir Data directory used to store configs and databases (=".ethereum")
-import Import a private key (hex)
```
...
...
@@ -33,8 +32,9 @@ Developer console commands
==========================
```
addp <host>:<port> Connect to the given host
tx <addr> <amount> Send <amount> Wei to the specified <addr>
addp <host>:<port> Connect to the given host
tx <addr> <amount> Send <amount> Wei to the specified <addr>
contract <value> <gasprice> Creates a new contract and launches the editor
```
See the "help" command for
*developer*
options.
...
...
@@ -57,7 +57,7 @@ Coding standards
Sources should be formatted according to the
[
Go Formatting
Style](http://golang.org/doc/effective_go.html#formatting).
Unless structs fields are supposed to be directly accesible, provide
Unless structs fields are supposed to be directly acces
s
ible, provide
Getters and hide the fields through Go's exporting facility.
When you comment put meaningfull comments. Describe in detail what you
...
...
ethereal/ui/library.go
View file @
ebbc5e7c
...
...
@@ -35,7 +35,7 @@ func (lib *EthLib) CreateTx(recipient, valueStr, gasStr, gasPriceStr, data strin
var
tx
*
ethchain
.
Transaction
// Compile and assemble the given data
if
contractCreation
{
asm
,
err
:=
mutan
.
NewCompiler
()
.
Compile
(
strings
.
NewReader
(
data
)
)
asm
,
err
:=
mutan
.
Compile
(
strings
.
NewReader
(
data
),
false
)
if
err
!=
nil
{
return
err
.
Error
()
}
...
...
ethereum/dev_console.go
View file @
ebbc5e7c
...
...
@@ -190,7 +190,7 @@ func (i *Console) ParseInput(input string) bool {
}
case
"contract"
:
fmt
.
Println
(
"Contract editor (Ctrl-D = done)"
)
asm
,
err
:=
mutan
.
NewCompiler
()
.
Compile
(
strings
.
NewReader
(
i
.
Editor
())
)
asm
,
err
:=
mutan
.
Compile
(
strings
.
NewReader
(
i
.
Editor
()),
false
)
if
err
!=
nil
{
fmt
.
Println
(
err
)
break
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment