Skip to content

Introduce and use new nServices P2P flag, NODE_VALIDATION - #1860

Closed
jgarzik wants to merge 1 commit into
bitcoin:masterfrom
jgarzik:validation
Closed

jgarzik wants to merge 1 commit into
bitcoin:masterfrom
jgarzik:validation

Conversation

@jgarzik

@jgarzik jgarzik commented Sep 24, 2012

Copy link
Copy Markdown
Contributor

Not sure whether we want CAddress() to continue defaulting to non-zero, so the behavior of the current code was retained.

Warrants a BIP, presumably.

@BitcoinPullTester

Copy link
Copy Markdown

@mikehearn

Copy link
Copy Markdown
Contributor

Hmm, why set it by default? Presumably this new flag would indicate a disk-pruned node? I think it only makes sense to set this if the behaviour is non-default in some way, and this commit doesn't change behaviour.

@jgarzik

jgarzik commented Sep 24, 2012

Copy link
Copy Markdown
Contributor Author

The roll out happens like

  1. Set this by default
  2. If you need validation but not block download, seek out NODE_VALIDATION nodes, otherwise seek out NODE_NETWORK
  3. Later, non-archive nodes drop NODE_NETWORK

@TheBlueMatt

Copy link
Copy Markdown
Contributor

ACKACKACK.

@gmaxwell

Copy link
Copy Markdown
Contributor

So if we do this now, we lose the ability to make NODE_VALIDATION signify an ability to serve UTXO SPV tree fragments but not blocks. (Because we currently can't serve them). Otherwise, sounds good to me.

@sipa

sipa commented Sep 28, 2012

Copy link
Copy Markdown
Member

@gmaxwell I think a merkle-UTXO tree is further ahead than the need for separation between archive nodes and full nodes. I think the use case for those is separate from this issue, so I'd leave that for another network service bit.

@mikehearn: service bits have to indicate (positive) support for a feature, as they are ORed together when storing in the address book. That can change too of course, but it's certainly easier if that weren't necessary.

Originally, I thought about adding two separate bits, NODE_VALIDATION (validation/relay of blocks and transactions, maintaining a mempool, keeping UTXO set, serving (very) recent blocks) and NODE_ARCHIVE (providing old blocks), and have NODE_NETWORK imply both. This proposal accomplishes the same, but forces every archive node to be a validation node as well. Not a problem as such, but I'm not sure that's necessary.

@jgarzik

jgarzik commented Oct 3, 2012

Copy link
Copy Markdown
Contributor Author

@sipa:

If archive nodes will always be validating (which seems logical), one additional NODE_VALIDATION bit is sufficient.

If archive nodes will sometimes not validate, then yes, we need two bits.

@sipa

sipa commented Oct 5, 2012

Copy link
Copy Markdown
Member

@jgarzik Yes, that's my point. I don't think it makes sense to have that distinction now, but I'm not sure we should make it impossible to make that distinction in the future.

@TheBlueMatt

Copy link
Copy Markdown
Contributor

@gmaxwell meh, I find that more protocol update than node service update...but I suppose leaving that up to the version king works best...
@sipa Can always add a NODE_ARCHIVE later if we really need it to mean non-verified old block provider?

@jgarzik

jgarzik commented Oct 5, 2012

Copy link
Copy Markdown
Contributor Author

Closing, no consensus

@jgarzik jgarzik closed this Oct 5, 2012
@sipa

sipa commented Oct 5, 2012

Copy link
Copy Markdown
Member

@TheBlueMatt Right, but at that point, an old client that needs to IBD and doesn't know yet about the new service bit will not be able to find the archive-only nodes.

@TheBlueMatt

Copy link
Copy Markdown
Contributor

@jgarzik No consensus? I think every comment has been generally positive, and this is something we really need in the near future (I'd argue before ultraprune is merged).

@jgarzik
jgarzik deleted the validation branch August 24, 2014 04:19
KolbyML pushed a commit to KolbyML/bitcoin that referenced this pull request Dec 5, 2020
e1969c6 missing mnping category added to logcategories (furszy)

Pull request description:

  For some reason mnping log category wasn't added to the logcategories vector. Discovered it trying to exclude it with `debugexclude=mnping` which notifies the error.

ACKs for top commit:
  random-zebra:
    utACK e1969c6
  Fuzzbawls:
    ACK e1969c6

Tree-SHA512: 523a327f868e77e4640042f01b34b6f0dec5b2e7126a3cb9230a7e860fee244191a89f442956d986e6f4ebd1432917bf35df6e22440ecda496314131c6696229
@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.

6 participants