Skip to content

Commit

Permalink
Sync upstream through Aug 21, 2015
Browse files Browse the repository at this point in the history
  • Loading branch information
cjepson committed May 16, 2016
2 parents 33dc0c7 + 9c039f5 commit 6d3f69e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions blockmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -2071,6 +2071,14 @@ out:
curBlockHeader)
}

// Allow any clients performing long polling via the
// getblocktemplate RPC to be notified when the new block causes
// their old block template to become stale.
rpcServer := b.server.rpcServer
if rpcServer != nil {
rpcServer.gbtWorkState.NotifyBlockConnected(msg.block.Sha())
}

msg.reply <- processBlockResponse{
isOrphan: isOrphan,
err: nil,
Expand Down

0 comments on commit 6d3f69e

Please sign in to comment.