forked from cerc-io/plugeth
Decreased timeout
This commit is contained in:
parent
8baa0f84e7
commit
cb7ebdf821
@ -698,9 +698,9 @@ func (vm *Vm) RunClosure(closure *Closure) (ret []byte, err error) {
|
|||||||
stateObject.AddAmount(value)
|
stateObject.AddAmount(value)
|
||||||
|
|
||||||
// Create a new callable closure
|
// Create a new callable closure
|
||||||
closure := 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)
|
// Executer the closure and get the return value (if any)
|
||||||
ret, err := Call(vm, closure, args)
|
ret, err := Call(vm, c, args)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
stack.Push(ethutil.BigFalse)
|
stack.Push(ethutil.BigFalse)
|
||||||
|
|
||||||
|
@ -279,7 +279,7 @@ func ReadMessages(conn net.Conn) (msgs []*Msg, err error) {
|
|||||||
var totalBytes int
|
var totalBytes int
|
||||||
for {
|
for {
|
||||||
// Give buffering some time
|
// Give buffering some time
|
||||||
conn.SetReadDeadline(time.Now().Add(500 * time.Millisecond))
|
conn.SetReadDeadline(time.Now().Add(50 * time.Millisecond))
|
||||||
// Create a new temporarily buffer
|
// Create a new temporarily buffer
|
||||||
b := make([]byte, 1440)
|
b := make([]byte, 1440)
|
||||||
// Wait for a message from this peer
|
// Wait for a message from this peer
|
||||||
|
Loading…
Reference in New Issue
Block a user