Skip to content

Conversation

@jgarzik
Copy link
Contributor

@jgarzik jgarzik commented Aug 8, 2014

It is not necessary to build all functionality into bitcoind, to form a decentralized network. BitPay's insight open source block explorer API project requires, and runs on top of, bitcoind. Therefore, at the same IP address as bitcoind, other services are made available to the public (scriptPubkey queries, other added-value queries). This results in a decentralized network of "anyone running a full node and an insight server", as a subset of the whole P2P net. </vendor hat>

Obviously, we want to build this in a generic, vendor-neutral way.

Services may only advertise added services if and only if the external services are at the same IP address that is being advertised.

Copy link

Choose a reason for hiding this comment

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

Can you at least try to respect the coding style rules we have (include ordering etc.)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If this continues to produce hectoring, then the most appropriate action is to remove that rule from doc/coding.md. At some point you need to ask yourself whether this is satisfying your personal OCD versus making the bitcoin project and its developers more (or less!) productive.

Copy link
Contributor

Choose a reason for hiding this comment

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

@Diapolo is quite right to point this out if it goes against coding standards and @jgarzik is quite right to point out that the coding standards may need revising.

May I take this moment to suggest reading the "four agreements"? (http://crossfitcetro.com/wp-content/uploads/2012/08/the_four_agreements.jpg) - I'm seeing all too often people taking things a bit too personally on here, however, it could almost go without saying that I for one am grateful to @jgarzik for so many of the code changes he's contributed, and I hope other user's sterling efforts (OCD fuelled or not) to enforce style rules don't deter future contributions.

Copy link
Member

Choose a reason for hiding this comment

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

It makes sense to have a well-defined coarse include order. I.e. first your own include, then dependencies within the project, then dependencies outside the project. This makes sure that the compiler checks that your own include file (in this case extservices.h) includes everything it needs on its own.

As for alphabetical sorting, it could be argued that that is a step too far, although if you want to define some fixed ordering within the groups alphabetical makes most sense. For example it makes it easier to see duplicates.

@laanwj laanwj added the Feature label Aug 8, 2014
@BitcoinPullTester
Copy link

Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4657_ee3274f94d94833efe364346d2c74d8be6a18a83/ 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.

@dajohi
Copy link
Contributor

dajohi commented Aug 8, 2014

I'd recommend using uint16 for the port instead of int32. You can use 0 for "invalid". A port has always been uint16, and making it int32 just seems odd.

@laanwj
Copy link
Member

laanwj commented May 18, 2015

How is the process side of this moving forward? I know it has been discussed on the mailing list on some point, but I think it still needs e.g. a BIP number.

@laanwj
Copy link
Member

laanwj commented May 27, 2015

Closing for now, as no active development is happening on this.

@laanwj laanwj closed this May 27, 2015
@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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants