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
8d059e54
Commit
8d059e54
authored
Apr 09, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated xeth logger
parent
a9959805
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
coin.html
cmd/mist/assets/examples/coin.html
+1
-1
xeth.go
xeth/xeth.go
+3
-3
No files found.
cmd/mist/assets/examples/coin.html
View file @
8d059e54
...
...
@@ -87,7 +87,7 @@
window
.
filter
=
filter
;
function
refresh
()
{
document
.
querySelector
(
"#balance"
).
innerHTML
=
contract
.
call
({
from
:
eth
.
coinbase
}).
balance
(
eth
.
coinbase
);
document
.
querySelector
(
"#balance"
).
innerHTML
=
contract
.
balance
(
eth
.
coinbase
);
}
function
transact
()
{
...
...
xeth/xeth.go
View file @
8d059e54
...
...
@@ -18,12 +18,12 @@ import (
"github.com/ethereum/go-ethereum/eth"
"github.com/ethereum/go-ethereum/event/filter"
"github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethereum/logger/glog"
"github.com/ethereum/go-ethereum/miner"
"github.com/ethereum/go-ethereum/rlp"
)
var
(
pipelogger
=
logger
.
NewLogger
(
"XETH"
)
filterTickerTime
=
5
*
time
.
Minute
defaultGasPrice
=
big
.
NewInt
(
10000000000000
)
//150000000000
defaultGas
=
big
.
NewInt
(
90000
)
//500000
...
...
@@ -218,7 +218,7 @@ func (self *XEth) EthTransactionByHash(hash string) (tx *types.Transaction, blha
blnum
=
big
.
NewInt
(
int64
(
txExtra
.
BlockIndex
))
txi
=
txExtra
.
Index
}
else
{
pipelogger
.
Error
ln
(
err
)
glog
.
V
(
logger
.
Error
)
.
Info
ln
(
err
)
}
return
...
...
@@ -676,7 +676,7 @@ func (self *XEth) Transact(fromStr, toStr, valueStr, gasStr, gasPriceStr, codeSt
if
contractCreation
{
addr
:=
core
.
AddressFromMessage
(
tx
)
pipelogger
.
Infof
(
"Contract addr %x
\n
"
,
addr
)
glog
.
V
(
logger
.
Info
)
.
Infof
(
"Contract addr %x
\n
"
,
addr
)
return
core
.
AddressFromMessage
(
tx
)
.
Hex
(),
nil
}
...
...
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