mirror of
https://github.com/btcsuite/btcd.git
synced 2025-03-27 02:37:10 +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,
|
isOrphan: false,
|
||||||
err: err,
|
err: err,
|
||||||
}
|
}
|
||||||
|
continue out
|
||||||
}
|
}
|
||||||
|
|
||||||
msg.reply <- processBlockResponse{
|
msg.reply <- processBlockResponse{
|
||||||
|
@ -1642,7 +1643,7 @@ func (sm *SyncManager) SyncPeerID() int32 {
|
||||||
// ProcessBlock makes use of ProcessBlock on an internal instance of a block
|
// ProcessBlock makes use of ProcessBlock on an internal instance of a block
|
||||||
// chain.
|
// chain.
|
||||||
func (sm *SyncManager) ProcessBlock(block *btcutil.Block, flags blockchain.BehaviorFlags) (bool, error) {
|
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}
|
sm.msgChan <- processBlockMsg{block: block, flags: flags, reply: reply}
|
||||||
response := <-reply
|
response := <-reply
|
||||||
return response.isOrphan, response.err
|
return response.isOrphan, response.err
|
||||||
|
|
Loading…
Add table
Reference in a new issue