Skip to content

Commit

Permalink
try to resolve nil pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
lazynina committed Jan 8, 2025
1 parent 4ff07db commit 082d107
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -2679,9 +2679,9 @@ func (srv *Server) _handleBlock(pp *Peer, blk *MsgDeSoBlock, isLastBlock bool) {
// and worst case the peer will return an empty header bundle that will
// result in us not sending anything back because there won’t be any new
// blocks to request.
locator, locatorHeights := pp.srv.blockchain.LatestHeaderLocator()
headerTip := pp.srv.blockchain.headerTip()
currentBlockTip := pp.srv.blockchain.blockTip()
locator, locatorHeights := srv.blockchain.LatestHeaderLocator()
headerTip := srv.blockchain.headerTip()
currentBlockTip := srv.blockchain.blockTip()
glog.V(0).Infof("Server._handleHeaderBundle: Sending GET_HEADERS message to peer %v\n"+
"Block Locator Hashes & Heights: (%v, %v) and (%v, %v)\n"+
"Header Tip: (%v, %v)\nBlock Tip: (%v, %v)",
Expand Down

0 comments on commit 082d107

Please sign in to comment.