Remove timing-based signature cache unit test #4414

pull gavinandresen wants to merge 1 commits into bitcoin:master from gavinandresen:mutabletx_unittest_fix changing 2 files +1 −88
  1. gavinandresen commented at 6:31 PM on June 25, 2014: contributor

    Two changes:

    First removes a unit test that fails in my development environment (OSX, compiled -g3 with clang).

    sipa says that's not terribly surprising; the CMutableTransaction change makes signing a little more expensive but verification quicker. The unit test timed sign+verify-uncached versus verify-cached-five-times.

    He also says the test will be invalid when libsec256kp1 is integrated (because validation is super-optimized over signing).

    core.h change fixes a compiler warning (clang -Wall : CMutableTransaction defined as struct, declared as class in script.h).

  2. sipa commented at 6:52 PM on June 25, 2014: member

    CMutableTransaction is a struct in both places. You're changing one of them into class...

  3. gavinandresen commented at 6:56 PM on June 25, 2014: contributor

    Bah, changed the wrong declaration, will fix:

    script.h:class CMutableTransaction;
    
  4. Remove timing-based signature cache unit test
    Two changes:
    
    First removes a unit test that fails in my development environment
    (OSX, compiled -g3 with clang).
    
    sipa says that's not terribly surprising; the CMutableTransaction change
    makes signing a little more expensive but verification quicker. The unit
    test timed sign+verify-uncached versus verify-cached-five-times.
    
    He also says the test will be invalid when libsec256kp1 is integrated
    (because validation is super-optimized over signing).
    
    core.h change fixes a compiler warning (clang -Wall : CMutableTransaction defined
    as struct, declared as class in script.h).
    a90689ff98
  5. sipa commented at 8:35 PM on June 25, 2014: member

    ACK

  6. BitcoinPullTester commented at 9:03 PM on June 25, 2014: none

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

  7. laanwj commented at 11:40 AM on June 26, 2014: member

    I suppose the actual signing/validation is already tested elsewhere? Otherwise it may make sense to remove the timing-dependent checks and keep the verify ones.

  8. sipa commented at 11:44 AM on June 26, 2014: member

    Yes, there are several sign/verification tests in key_tests.cpp, and indirectly anything doing transaction or block validation testing as well.

  9. laanwj commented at 11:46 AM on June 26, 2014: member

    Ok, ACK

  10. laanwj merged this on Jun 26, 2014
  11. laanwj closed this on Jun 26, 2014

  12. laanwj referenced this in commit f40d193c18 on Jun 26, 2014
  13. wtogami referenced this in commit 3f6df7aa07 on Sep 10, 2014
  14. wtogami referenced this in commit 258b1dcf54 on Sep 11, 2014
  15. 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-05-02 15:15 UTC

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