Skip to content

Commit 857f65f

Browse files
committed
fix p2p ReceiveBlock
1 parent da1bca2 commit 857f65f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

p2p/agent.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,11 +650,12 @@ func (p *agent) BuildReport() string {
650650
return ""
651651
}
652652

653-
func (p *agent) ReceiveBlock(blk *block.Block) {
653+
func (p *agent) ReceiveBlock(blk *block.Block) error {
654654
if p.isUnifiedTopic == nil {
655-
return
655+
return nil
656656
}
657657
p.unifiedTopic.Store(p.isUnifiedTopic(blk.Height()))
658+
return nil
658659
}
659660

660661
func (p *agent) connectBootNode(ctx context.Context) error {

0 commit comments

Comments
 (0)