upped pv
This commit is contained in:
parent
3440a8a0bf
commit
1337a8dfb1
@ -1098,7 +1098,7 @@ func (self *BlockPool) requestBlocks(attempts int, hashes [][]byte) {
|
|||||||
poolLogger.Debugf("request %v missing blocks from %v/%v peers: chosen %v", len(hashes), repetitions, peerCount, indexes)
|
poolLogger.Debugf("request %v missing blocks from %v/%v peers: chosen %v", len(hashes), repetitions, peerCount, indexes)
|
||||||
for _, peer := range self.peers {
|
for _, peer := range self.peers {
|
||||||
if i == indexes[0] {
|
if i == indexes[0] {
|
||||||
poolLogger.Debugf("request %v missing blocks from peer %s", len(hashes), peer.id)
|
poolLogger.Debugf("request %v missing blocks [%x/%x] from peer %s", len(hashes), hashes[0][:4], hashes[len(hashes)-1][:4], peer.id)
|
||||||
peer.requestBlocks(hashes)
|
peer.requestBlocks(hashes)
|
||||||
indexes = indexes[1:]
|
indexes = indexes[1:]
|
||||||
if len(indexes) == 0 {
|
if len(indexes) == 0 {
|
||||||
|
@ -13,7 +13,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
ProtocolVersion = 51
|
ProtocolVersion = 52
|
||||||
NetworkId = 0
|
NetworkId = 0
|
||||||
ProtocolLength = uint64(8)
|
ProtocolLength = uint64(8)
|
||||||
ProtocolMaxMsgSize = 10 * 1024 * 1024
|
ProtocolMaxMsgSize = 10 * 1024 * 1024
|
||||||
|
Loading…
Reference in New Issue
Block a user