Skip to content

Commit bc83761

Browse files
committed
Fixed max uncle count error message
1 parent f7fdb4d commit bc83761

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎core/block_processor.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ func (sm *BlockProcessor) processWithParent(block, parent *types.Block) (logs st
197197

198198
// There can be at most two uncles
199199
if len(block.Uncles()) > 2 {
200-
return nil, ValidationError("Block can only contain one uncle (contained %v)", len(block.Uncles()))
200+
return nil, ValidationError("Block can only contain maximum 2 uncles (contained %v)", len(block.Uncles()))
201201
}
202202

203203
receipts, err := sm.TransitionState(state, parent, block, false)

0 commit comments

Comments
 (0)