mirror of
https://github.com/btcsuite/btcd.git
synced 2025-03-25 09:02:22 +01:00
Merge 4a27ad766d
into 4f4ea81776
This commit is contained in:
commit
320099b30f
1 changed files with 2 additions and 1 deletions
|
@ -1392,6 +1392,7 @@ out:
|
|||
isOrphan: false,
|
||||
err: err,
|
||||
}
|
||||
continue out
|
||||
}
|
||||
|
||||
msg.reply <- processBlockResponse{
|
||||
|
@ -1642,7 +1643,7 @@ func (sm *SyncManager) SyncPeerID() int32 {
|
|||
// ProcessBlock makes use of ProcessBlock on an internal instance of a block
|
||||
// chain.
|
||||
func (sm *SyncManager) ProcessBlock(block *btcutil.Block, flags blockchain.BehaviorFlags) (bool, error) {
|
||||
reply := make(chan processBlockResponse, 1)
|
||||
reply := make(chan processBlockResponse)
|
||||
sm.msgChan <- processBlockMsg{block: block, flags: flags, reply: reply}
|
||||
response := <-reply
|
||||
return response.isOrphan, response.err
|
||||
|
|
Loading…
Add table
Reference in a new issue