Move non-trivial uint256.h methods to uint256.cpp #4437

pull sipa wants to merge 1 commits into bitcoin:master from sipa:uint256cpp changing 5 files +316 −245
  1. sipa commented at 3:52 PM on June 28, 2014: member

    No description provided.

  2. Move non-trivial uint256.h methods to uint256.cpp de79aaa7a9
  3. BitcoinPullTester commented at 4:41 PM on June 28, 2014: none

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

  4. laanwj commented at 7:48 AM on June 29, 2014: member

    Tested ACK

  5. sipa commented at 2:45 PM on June 29, 2014: member

    It's unfortunate that util depends on uint256, otherwise this could go to common lib instead of util lib.

  6. laanwj commented at 2:52 PM on June 29, 2014: member

    @sipa Maybe after #4400 it could. AFAIK bitcoin-cli doesn't use any random functionality.

  7. jgarzik commented at 3:03 PM on June 29, 2014: contributor

    @sipa @laanwj Trivial to fix. Current master only shows util.{h,cpp} needing uint256 in a single function: GetRandHash() "Rand" stuff should arguably move to crypto/ anyway. Problem solved.

  8. jgarzik commented at 3:05 PM on June 29, 2014: contributor

    Also, #4332 adds the core_{read,write} modules as a home for converting from hex/json-to-core data structure (and the reverse direction). Some hex parsing can be moved there, or to a separate hex module.

    Shrink util. :)

  9. laanwj commented at 3:20 PM on June 29, 2014: member

    @jgarzik yes, see #4400. It moves the Rand stuff to a separate file. We decided not to move it to crypto because it still relies on OpenSSL but that could be done at a later time.

  10. sipa commented at 3:31 PM on June 29, 2014: member

    Very ACK on shrinking util.

  11. laanwj merged this on Jun 30, 2014
  12. laanwj closed this on Jun 30, 2014

  13. laanwj referenced this in commit ac26571d2b on Jun 30, 2014
  14. MarcoFalke 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 09:15 UTC

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