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
cb7ebdf8
Commit
cb7ebdf8
authored
10 years ago
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Decreased timeout
parent
8baa0f84
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
vm.go
ethchain/vm.go
+2
-2
messaging.go
ethwire/messaging.go
+1
-1
No files found.
ethchain/vm.go
View file @
cb7ebdf8
...
...
@@ -698,9 +698,9 @@ func (vm *Vm) RunClosure(closure *Closure) (ret []byte, err error) {
stateObject
.
AddAmount
(
value
)
// Create a new callable closure
c
losure
:=
NewClosure
(
closure
,
stateObject
,
stateObject
.
script
,
vm
.
state
,
gas
,
closure
.
Price
)
c
:=
NewClosure
(
closure
,
stateObject
,
stateObject
.
script
,
vm
.
state
,
gas
,
closure
.
Price
)
// Executer the closure and get the return value (if any)
ret
,
err
:=
Call
(
vm
,
c
losure
,
args
)
ret
,
err
:=
Call
(
vm
,
c
,
args
)
if
err
!=
nil
{
stack
.
Push
(
ethutil
.
BigFalse
)
...
...
This diff is collapsed.
Click to expand it.
ethwire/messaging.go
View file @
cb7ebdf8
...
...
@@ -279,7 +279,7 @@ func ReadMessages(conn net.Conn) (msgs []*Msg, err error) {
var
totalBytes
int
for
{
// Give buffering some time
conn
.
SetReadDeadline
(
time
.
Now
()
.
Add
(
50
0
*
time
.
Millisecond
))
conn
.
SetReadDeadline
(
time
.
Now
()
.
Add
(
50
*
time
.
Millisecond
))
// Create a new temporarily buffer
b
:=
make
([]
byte
,
1440
)
// Wait for a message from this peer
...
...
This diff is collapsed.
Click to expand it.
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