mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-25 12:57:17 +00:00
Upped protocol version
This commit is contained in:
parent
296112848c
commit
73c4ca3a6f
@ -88,7 +88,7 @@ func (self *BlockPool) FetchHashes(peer *Peer) bool {
|
|||||||
|
|
||||||
if (self.peer == nil && peer.td.Cmp(highestTd) >= 0) || (self.peer != nil && peer.td.Cmp(self.peer.td) > 0) || self.peer == peer {
|
if (self.peer == nil && peer.td.Cmp(highestTd) >= 0) || (self.peer != nil && peer.td.Cmp(self.peer.td) > 0) || self.peer == peer {
|
||||||
if self.peer != peer {
|
if self.peer != peer {
|
||||||
poollogger.Debugf("Found better suitable peer (%v vs %v)\n", self.td, peer.td)
|
poollogger.Infof("Found better suitable peer (%v vs %v)\n", self.td, peer.td)
|
||||||
|
|
||||||
if self.peer != nil {
|
if self.peer != nil {
|
||||||
self.peer.doneFetchingHashes = true
|
self.peer.doneFetchingHashes = true
|
||||||
@ -99,8 +99,7 @@ func (self *BlockPool) FetchHashes(peer *Peer) bool {
|
|||||||
self.td = peer.td
|
self.td = peer.td
|
||||||
|
|
||||||
if !self.HasLatestHash() {
|
if !self.HasLatestHash() {
|
||||||
peer.doneFetchingHashes = false
|
peer.doneFetchingHashes = fInfo
|
||||||
|
|
||||||
const amount = 256
|
const amount = 256
|
||||||
peerlogger.Debugf("Fetching hashes (%d) %x...\n", amount, peer.lastReceivedHash[0:4])
|
peerlogger.Debugf("Fetching hashes (%d) %x...\n", amount, peer.lastReceivedHash[0:4])
|
||||||
peer.QueueMessage(wire.NewMessage(wire.MsgGetBlockHashesTy, []interface{}{peer.lastReceivedHash, uint32(amount)}))
|
peer.QueueMessage(wire.NewMessage(wire.MsgGetBlockHashesTy, []interface{}{peer.lastReceivedHash, uint32(amount)}))
|
||||||
|
@ -30,7 +30,7 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
ClientIdentifier = "Ethereum(G)"
|
ClientIdentifier = "Ethereum(G)"
|
||||||
Version = "0.7.7"
|
Version = "0.7.8"
|
||||||
)
|
)
|
||||||
|
|
||||||
var clilogger = logger.NewLogger("CLI")
|
var clilogger = logger.NewLogger("CLI")
|
||||||
|
@ -31,7 +31,7 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
ClientIdentifier = "Mist"
|
ClientIdentifier = "Mist"
|
||||||
Version = "0.7.7"
|
Version = "0.7.8"
|
||||||
)
|
)
|
||||||
|
|
||||||
var ethereum *eth.Ethereum
|
var ethereum *eth.Ethereum
|
||||||
|
1
peer.go
1
peer.go
@ -756,7 +756,6 @@ func (p *Peer) handleHandshake(msg *wire.Msg) {
|
|||||||
|
|
||||||
// Check correctness of p2p protocol version
|
// Check correctness of p2p protocol version
|
||||||
if p2pVersion != P2PVersion {
|
if p2pVersion != P2PVersion {
|
||||||
fmt.Println(p)
|
|
||||||
peerlogger.Debugf("Invalid P2P version. Require protocol %d, received %d\n", P2PVersion, p2pVersion)
|
peerlogger.Debugf("Invalid P2P version. Require protocol %d, received %d\n", P2PVersion, p2pVersion)
|
||||||
p.Stop()
|
p.Stop()
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user