Error handling and hard-coded peer.

This commit is contained in:
Daniel A. Nagy 2015-02-12 17:42:43 +01:00
parent 9c5b1dbf0c
commit bef46b0d6b
2 changed files with 4 additions and 1 deletions

View file

@ -209,6 +209,9 @@ func (self *bzzProtocol) handle() error {
return self.protoError(ErrDecode, "->msg %v: %v", msg, err)
}
dpaLogger.Warnf("Request message: %#v", req)
if req.Key == nil {
return self.protoError(ErrDecode, "protocol handler: req.Key == nil")
}
req.peer = peer{bzzProtocol: self}
self.netStore.addRetrieveRequest(&req)

View file

@ -19,7 +19,7 @@ import (
)
const (
seedNodeAddress = "10.0.1.41:30303"
seedNodeAddress = "10.0.2.41:30303"
)
type Config struct {