aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-04 06:12:21 +0800
committerobscuren <geffobscura@gmail.com>2014-07-04 06:12:21 +0800
commitcb7ebdf821adb4b022adcaea0973c8c7da2e2923 (patch)
tree884cc6073bdc20df5503c415760eaf3a87f96060
parent8baa0f84e70aafa3882ec477d3b3d401d462958b (diff)
downloadgo-tangerine-cb7ebdf821adb4b022adcaea0973c8c7da2e2923.tar
go-tangerine-cb7ebdf821adb4b022adcaea0973c8c7da2e2923.tar.gz
go-tangerine-cb7ebdf821adb4b022adcaea0973c8c7da2e2923.tar.bz2
go-tangerine-cb7ebdf821adb4b022adcaea0973c8c7da2e2923.tar.lz
go-tangerine-cb7ebdf821adb4b022adcaea0973c8c7da2e2923.tar.xz
go-tangerine-cb7ebdf821adb4b022adcaea0973c8c7da2e2923.tar.zst
go-tangerine-cb7ebdf821adb4b022adcaea0973c8c7da2e2923.zip
Decreased timeout
-rw-r--r--ethchain/vm.go4
-rw-r--r--ethwire/messaging.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/ethchain/vm.go b/ethchain/vm.go
index 97379f8ea..3a7aa8c58 100644
--- a/ethchain/vm.go
+++ b/ethchain/vm.go
@@ -698,9 +698,9 @@ func (vm *Vm) RunClosure(closure *Closure) (ret []byte, err error) {
stateObject.AddAmount(value)
// 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)
- ret, err := Call(vm, closure, args)
+ ret, err := Call(vm, c, args)
if err != nil {
stack.Push(ethutil.BigFalse)
diff --git a/ethwire/messaging.go b/ethwire/messaging.go
index f13b72353..5319d0711 100644
--- a/ethwire/messaging.go
+++ b/ethwire/messaging.go
@@ -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(500 * 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