mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
Error handling and hard-coded peer.
This commit is contained in:
parent
9c5b1dbf0c
commit
bef46b0d6b
2 changed files with 4 additions and 1 deletions
|
|
@ -209,6 +209,9 @@ func (self *bzzProtocol) handle() error {
|
||||||
return self.protoError(ErrDecode, "->msg %v: %v", msg, err)
|
return self.protoError(ErrDecode, "->msg %v: %v", msg, err)
|
||||||
}
|
}
|
||||||
dpaLogger.Warnf("Request message: %#v", req)
|
dpaLogger.Warnf("Request message: %#v", req)
|
||||||
|
if req.Key == nil {
|
||||||
|
return self.protoError(ErrDecode, "protocol handler: req.Key == nil")
|
||||||
|
}
|
||||||
req.peer = peer{bzzProtocol: self}
|
req.peer = peer{bzzProtocol: self}
|
||||||
self.netStore.addRetrieveRequest(&req)
|
self.netStore.addRetrieveRequest(&req)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
seedNodeAddress = "10.0.1.41:30303"
|
seedNodeAddress = "10.0.2.41:30303"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue