Refactor CBlockHeaderAndShortTxIDs::GetShortID into CTransaction #8277

pull pstratem wants to merge 1 commits into bitcoin:master from pstratem:2016-06-26-ctransaction-getshortid changing 2 files +11 −2
  1. pstratem commented at 5:26 AM on June 28, 2016: contributor

    I'd like to use the short id scheme for mempool syncing.

  2. pstratem force-pushed on Jun 28, 2016
  3. Refactor CBlockHeaderAndShortTxIDs::GetShortID to CTransaction::GetShortID 740447d9fa
  4. pstratem force-pushed on Jun 28, 2016
  5. laanwj added the label Refactoring on Jun 28, 2016
  6. petertodd commented at 7:16 PM on July 7, 2016: contributor

    I'm a bit dubious about mixing in this non-consensus-critical code into the consensus-critical CTransaction, though I don't know what's the right alternative for you.

  7. dcousens commented at 1:39 AM on July 8, 2016: contributor

    weak NACK, but only from the point of view that I feel the context specific ID algorithms should remain, context specific. You've shown here how easy it would be to outline that new mempool syncing scheme just using SipHashUint256 directly. The two being the same is just consequential.

  8. laanwj commented at 6:23 AM on July 8, 2016: member

    Tend to agree to keep this a separate function. In the long term we'd like the consensus critical data structures to be just data structures, with the bare minimum necessary for their interaction with consensus.

    Network-code-specific functionality does not belong in there.

    As you need it for mempool syncing you could move it to some other non-consensus utility header.

  9. pstratem commented at 1:08 AM on July 11, 2016: contributor

    Alight

  10. pstratem closed this on Jul 11, 2016

  11. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-19 00:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me