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
abb2bebf
Commit
abb2bebf
authored
May 01, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed minor issue with upnp where 'err' wasn't checked resulting in crash
parent
da7828f3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
125 deletions
+9
-125
README.md
README.md
+9
-1
icon.png
ethereal/assets/icon.png
+0
-0
samplecoin.html
ethereal/assets/samplecoin.html
+0
-69
test.html
ethereal/assets/test.html
+0
-55
No files found.
README.md
View file @
abb2bebf
...
...
@@ -12,7 +12,15 @@ For the development package please see the [eth-go package](https://github.com/e
Build
=======
For build instruction please see the
[
Wiki
](
https://github.com/ethereum/go-ethereum/wiki/Building-Ethereum(Go
)
)
To build Ethereal (GUI):
`go get github.com/ethereum/go-ethereum/ethereal`
To build the node (CLI):
`go get github.com/ethereum/go-ethereum/ethereum`
For further, detailed, build instruction please see the
[
Wiki
](
https://github.com/ethereum/go-ethereum/wiki/Building-Ethereum(Go
)
)
General command line options
====================
...
...
ethereal/assets/icon.png
deleted
100644 → 0
View file @
da7828f3
84.7 KB
ethereal/assets/samplecoin.html
deleted
100644 → 0
View file @
da7828f3
<html>
<head>
<title>
jeffcoin
</title>
<script
type=
"text/javascript"
>
var
jefcoinAddr
=
"3dff537f51350239abc95c76a5864aa605259e7d"
function
createTransaction
()
{
var
addr
=
document
.
querySelector
(
"#addr"
).
value
;
var
amount
=
document
.
querySelector
(
"#amount"
).
value
;
var
data
=
"0x"
+
addr
+
"
\n
"
+
amount
eth
.
transact
(
""
,
jefcoinAddr
,
0
,
"10000000"
,
"250"
,
data
,
function
(
tx
)
{
debug
(
"received tx hash:"
,
tx
)
})
}
// Any test related actions here please
function
tests
()
{
eth
.
getKey
(
function
(
keys
)
{
debug
(
keys
)
})
}
function
init
()
{
eth
.
getKey
(
function
(
key
)
{
eth
.
getStorageAt
(
jefcoinAddr
,
key
,
function
(
storage
)
{
document
.
querySelector
(
"#currentAmount"
).
innerHTML
=
"Amount: "
+
storage
;
});
eth
.
watch
(
jefcoinAddr
,
function
(
stateObject
)
{
eth
.
getStorageAt
(
jefcoinAddr
,
key
,
function
(
storage
)
{
document
.
querySelector
(
"#currentAmount"
).
innerHTML
=
"Amount: "
+
storage
;
});
});
eth
.
getBalanceAt
(
key
,
function
(
balance
)
{
debug
(
"balance"
,
balance
);
})
});
}
</script>
<style
type=
"text/css"
>
input
[
type
=
"text"
]
{
width
:
300px
;
}
</style>
</head>
<body
onload=
"init();"
>
<h1>
Jeff Coin
</h1>
<img
src=
"icon.png"
>
<div
id=
"currentAmount"
></div>
<div
id=
"transactions"
>
<input
id=
"addr"
type=
"text"
placeholder=
"Receiver address"
></input><br>
<input
id=
"amount"
type=
"text"
placeholder=
"Amount"
></input><br>
<button
onclick=
"createTransaction();"
>
Send Tx
</button>
</div>
<div><button
onclick=
"tests();"
>
Tests
</button></div>
<div
id=
"debug"
style=
"border: 1px solid block"
></div>
</body>
</html>
ethereal/assets/test.html
deleted
100644 → 0
View file @
da7828f3
<html>
<head>
<title>
jeffcoin
</title>
<script
type=
"text/javascript"
>
var
jefcoinAddr
=
"3dff537f51350239abc95c76a5864aa605259e7d"
function
createTransaction
()
{
var
addr
=
document
.
querySelector
(
"#addr"
).
value
;
var
amount
=
document
.
querySelector
(
"#amount"
).
value
;
var
data
=
"0x"
+
addr
+
"
\n
"
+
amount
eth
.
createTx
(
jefcoinAddr
,
0
,
"10000000"
,
"250"
,
data
,
function
(
tx
)
{
debug
(
"received tx hash:"
,
tx
)
})
}
function
init
()
{
eth
.
getKey
(
function
(
key
)
{
eth
.
getStorage
(
jefcoinAddr
,
key
,
function
(
storage
)
{
document
.
querySelector
(
"#currentAmount"
).
innerHTML
=
"Amount: "
+
storage
;
});
eth
.
on
(
"block:new"
,
function
()
{
eth
.
getStorage
(
jefcoinAddr
,
key
,
function
(
storage
)
{
document
.
querySelector
(
"#currentAmount"
).
innerHTML
=
"Amount: "
+
storage
;
});
});
});
}
</script>
<style
type=
"text/css"
>
input
[
type
=
"text"
]
{
width
:
300px
;
}
</style>
</head>
<body
onload=
"init();"
>
<h1>
Jeff Coin
</h1>
<img
src=
"icon.png"
>
<div
id=
"currentAmount"
></div>
<div
id=
"transactions"
>
<input
id=
"addr"
type=
"text"
placeholder=
"Receiver address"
></input><br>
<input
id=
"amount"
type=
"text"
placeholder=
"Amount"
></input><br>
<button
onclick=
"createTransaction();"
>
Send Tx
</button>
</div>
<div
id=
"debug"
style=
"border: 1px solid block"
></div>
</body>
</html>
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