Skip to content

minor style cleanups#3650

Merged
laanwj merged 1 commit intobitcoin:masterfrom
Diapolo:misc-main
Mar 15, 2014
Merged

minor style cleanups#3650
laanwj merged 1 commit intobitcoin:masterfrom
Diapolo:misc-main

Conversation

@Diapolo
Copy link
Copy Markdown

@Diapolo Diapolo commented Feb 10, 2014

No description provided.

Diapolo referenced this pull request Feb 21, 2014
d8b4b49 Don't store or send side-chain blocks lower than last checkpoint. (Ashley Holman)
Comment thread src/main.cpp
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you already go through style cleanups here, I was thinking about removing the excessive use of "{" "}" there around one-liner if-else-statements.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd favor this, but I guess @laanwj will kill me then ;).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've always found that { } are a good thing as they explicitly mark the beginning and end of a scope, which is good for maintainability. I've had to debug problems caused by people adding code like this many times:

if (!something)
    send = true;
    return;  /// Oops

@BitcoinPullTester
Copy link
Copy Markdown

Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/2b45345aaca9d0091972f983ac6e5c0b09d14777 for binaries and test log.
This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/
Contact BlueMatt on freenode if something looks broken.

laanwj added a commit that referenced this pull request Mar 15, 2014
2b45345 minor style cleanups (Philip Kaufmann)
@laanwj laanwj merged commit 2b45345 into bitcoin:master Mar 15, 2014
@Diapolo Diapolo deleted the misc-main branch March 21, 2014 07:42
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Aug 11, 2020
…oin#3650)

It seems like the idea here was to avoid announcing already available sigshares for a signhash to everyone if concentrated recovery is enabled. But by returning there if `IsAllMembersConnectedEnabled` equals to `false` we disable the re-announcements prior to the spork activation, where we want to still have them and re-enable if the spork is enabled where we don't want to have them.
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants