Commit 8fcba0eb authored by obscuren's avatar obscuren

fixed test

parent 9bb76332
package ethchain package ethchain
import ( import (
"fmt"
"github.com/ethereum/eth-go/ethdb" "github.com/ethereum/eth-go/ethdb"
"github.com/ethereum/eth-go/ethutil" "github.com/ethereum/eth-go/ethutil"
"testing" "testing"
......
...@@ -62,7 +62,7 @@ func TestRun4(t *testing.T) { ...@@ -62,7 +62,7 @@ func TestRun4(t *testing.T) {
Diff: big.NewInt(256), Diff: big.NewInt(256),
}) })
var ret []byte var ret []byte
ret, e = callerClosure.Call(vm, nil, nil) ret, _, e = callerClosure.Call(vm, nil, nil)
if e != nil { if e != nil {
fmt.Println("error", e) fmt.Println("error", e)
} }
......
...@@ -440,7 +440,7 @@ func (p *Peer) HandleInbound() { ...@@ -440,7 +440,7 @@ func (p *Peer) HandleInbound() {
ethutil.Config.Log.Debugf("[PEER] Found canonical block, returning chain from: %x ", parent.Hash()) ethutil.Config.Log.Debugf("[PEER] Found canonical block, returning chain from: %x ", parent.Hash())
chain := p.ethereum.BlockChain().GetChainFromHash(parent.Hash(), amountOfBlocks) chain := p.ethereum.BlockChain().GetChainFromHash(parent.Hash(), amountOfBlocks)
if len(chain) > 0 { if len(chain) > 0 {
ethutil.Config.Log.Debugf("[PEER] Returning %d blocks: %x ", len(chain), parent.Hash()) //ethutil.Config.Log.Debugf("[PEER] Returning %d blocks: %x ", len(chain), parent.Hash())
p.QueueMessage(ethwire.NewMessage(ethwire.MsgBlockTy, chain)) p.QueueMessage(ethwire.NewMessage(ethwire.MsgBlockTy, chain))
} else { } else {
p.QueueMessage(ethwire.NewMessage(ethwire.MsgBlockTy, []interface{}{})) p.QueueMessage(ethwire.NewMessage(ethwire.MsgBlockTy, []interface{}{}))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment