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
3ec0c719
Commit
3ec0c719
authored
Jun 19, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Verbose logging
parent
e517fb5f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
samplecoin.html
ethereal/assets/samplecoin/samplecoin.html
+2
-2
debugger.go
ethereal/ui/debugger.go
+1
-1
No files found.
ethereal/assets/samplecoin/samplecoin.html
View file @
3ec0c719
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
var
jefcoinAddr
=
"
de0bd4ea1947deabf1749d7ed633f289358c9f6c
"
var
jefcoinAddr
=
"
22fa3ebce6ef9ca661a960104d3087eec040011e
"
var
mAddr
=
""
var
mAddr
=
""
function
createTransaction
()
{
function
createTransaction
()
{
...
@@ -17,7 +17,7 @@ function createTransaction() {
...
@@ -17,7 +17,7 @@ function createTransaction() {
var
amount
=
document
.
querySelector
(
"#amount"
).
value
.
pad
(
32
);
var
amount
=
document
.
querySelector
(
"#amount"
).
value
.
pad
(
32
);
var
data
=
(
addr
+
amount
).
unbin
();
var
data
=
(
addr
+
amount
).
unbin
();
eth
.
transact
(
mAddr
,
jefcoinAddr
,
0
,
"
10000000"
,
"25
0"
,
data
,
function
(
receipt
)
{
eth
.
transact
(
mAddr
,
jefcoinAddr
,
0
,
"
50000"
,
"100000
0"
,
data
,
function
(
receipt
)
{
debug
(
"received tx hash:"
,
reciept
.
address
)
debug
(
"received tx hash:"
,
reciept
.
address
)
})
})
}
}
...
...
ethereal/ui/debugger.go
View file @
3ec0c719
...
@@ -78,7 +78,6 @@ func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, data
...
@@ -78,7 +78,6 @@ func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, data
var
err
error
var
err
error
script
:=
ethutil
.
StringToByteFunc
(
scriptStr
,
func
(
s
string
)
(
ret
[]
byte
)
{
script
:=
ethutil
.
StringToByteFunc
(
scriptStr
,
func
(
s
string
)
(
ret
[]
byte
)
{
ret
,
err
=
ethutil
.
Compile
(
s
)
ret
,
err
=
ethutil
.
Compile
(
s
)
fmt
.
Printf
(
"%x
\n
"
,
ret
)
return
return
})
})
...
@@ -118,6 +117,7 @@ func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, data
...
@@ -118,6 +117,7 @@ func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, data
Diff
:
block
.
Difficulty
,
Diff
:
block
.
Difficulty
,
Value
:
ethutil
.
Big
(
valueStr
),
Value
:
ethutil
.
Big
(
valueStr
),
})
})
vm
.
Verbose
=
true
self
.
Db
.
done
=
false
self
.
Db
.
done
=
false
self
.
Logf
(
"callsize %d"
,
len
(
script
))
self
.
Logf
(
"callsize %d"
,
len
(
script
))
...
...
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