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
eef4cd1b
Commit
eef4cd1b
authored
Oct 20, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated properties
parent
ac7994d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
14 deletions
+4
-14
main.js
main.js
+4
-14
No files found.
main.js
View file @
eef4cd1b
...
...
@@ -321,16 +321,6 @@
var
eth
=
web3
.
eth
;
// Eth object properties
Object
.
defineProperty
(
eth
,
"key"
,
{
get
:
function
()
{
return
new
Promise
(
function
(
resolve
,
reject
)
{
eth
.
provider
.
send
({
call
:
"getKey"
},
function
(
k
)
{
resolve
(
k
);
});
});
},
});
Object
.
defineProperty
(
eth
,
"gasPrice"
,
{
get
:
function
()
{
return
"10000000000000"
...
...
@@ -340,7 +330,7 @@
Object
.
defineProperty
(
eth
,
"coinbase"
,
{
get
:
function
()
{
return
new
Promise
(
function
(
resolve
,
reject
)
{
web3
.
provider
.
send
({
call
:
"
getCoinB
ase"
},
function
(
coinbase
)
{
web3
.
provider
.
send
({
call
:
"
coinb
ase"
},
function
(
coinbase
)
{
resolve
(
coinbase
);
});
});
...
...
@@ -350,7 +340,7 @@
Object
.
defineProperty
(
eth
,
"listening"
,
{
get
:
function
()
{
return
new
Promise
(
function
(
resolve
,
reject
)
{
web3
.
provider
.
send
({
call
:
"
getIsL
istening"
},
function
(
listening
)
{
web3
.
provider
.
send
({
call
:
"
l
istening"
},
function
(
listening
)
{
resolve
(
listening
);
});
});
...
...
@@ -361,7 +351,7 @@
Object
.
defineProperty
(
eth
,
"mining"
,
{
get
:
function
()
{
return
new
Promise
(
function
(
resolve
,
reject
)
{
web3
.
provider
.
send
({
call
:
"
getIsM
ining"
},
function
(
mining
)
{
web3
.
provider
.
send
({
call
:
"
m
ining"
},
function
(
mining
)
{
resolve
(
mining
);
});
});
...
...
@@ -371,7 +361,7 @@
Object
.
defineProperty
(
eth
,
"peerCount"
,
{
get
:
function
()
{
return
new
Promise
(
function
(
resolve
,
reject
)
{
web3
.
provider
.
send
({
call
:
"
getP
eerCount"
},
function
(
peerCount
)
{
web3
.
provider
.
send
({
call
:
"
p
eerCount"
},
function
(
peerCount
)
{
resolve
(
peerCount
);
});
});
...
...
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