mirror of
				https://github.com/bitcoin/bips.git
				synced 2025-10-27 14:09:10 +00:00 
			
		
		
		
	Better fits bitcoin style guide
"If an if only has a single-statement then-clause, it can appear on the same line as the if, without braces. In every other case, braces are required, and the then and else clauses must appear correctly indented on a new line." Co-authored-by: kallewoof <kalle.alm@gmail.com>
This commit is contained in:
		
							parent
							
								
									f1169dd1fc
								
							
						
					
					
						commit
						26e8e5f7fc
					
				| @ -45,8 +45,9 @@ Implementation | ||||
| <pre> | ||||
| case OP_CAT: | ||||
| { | ||||
|     if (stack.size() < 2) | ||||
|     if (stack.size() < 2) { | ||||
|         return set_error(serror, SCRIPT_ERR_INVALID_STACK_OPERATION); | ||||
|     } | ||||
|     valtype& vch1 = stacktop(-2); | ||||
|     valtype& vch2 = stacktop(-1); | ||||
|     if (vch1.size() + vch2.size() > MAX_SCRIPT_ELEMENT_SIZE) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user