test: Add signet witness commitment section parse tests #20004

pull MarcoFalke wants to merge 2 commits into bitcoin:master from MarcoFalke:2009-testSignetParse changing 9 files +96 −33
  1. MarcoFalke commented at 1:40 PM on September 23, 2020: member

    No description provided.

  2. fanquake added the label Tests on Sep 23, 2020
  3. DrahtBot commented at 4:46 PM on September 23, 2020: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    No conflicts as of last run.<!--2502f1a698b3751726fa55edcda76cd3-->

    Coverage

    Coverage Change (pull 20004, feeca2363d4c1c78e6dfb40b8684870fe84b084a) Reference (master, ec9b4492eba5d32ab833d511984756601d3f39b0)
    Lines +0.0035 % 90.7088 %
    Functions +0.0034 % 86.2602 %
    Branches -0.0028 % 52.0393 %

    <sup>Updated at: 2020-09-29T09:37:30.142032.</sup>

  4. MarcoFalke force-pushed on Sep 24, 2020
  5. DrahtBot cross-referenced this on Sep 25, 2020 from issue doc: Mention signet in -help output by hebasto
  6. MarcoFalke commented at 7:28 AM on September 28, 2020: member

    cc @kallewoof / @ajtowns :sweat_smile:

  7. kallewoof commented at 8:07 AM on September 28, 2020: member

    Nice!

    utACK faee74f6c841eea391c08ebbadb045746c3ef77f

  8. ajtowns commented at 5:40 AM on September 29, 2020: contributor

    Not really convinced always explicitly passing in an ArgsManager to CreateChainParams is an improvement. Could make it

    std::unique_ptr<const CChainParams> CreateChainParams(const std::string& chain, ArgsManager* pargs = nullptr)
    {
       ArgsManager& args = (pargs != nullptr ? *pargs : gArgs);
        ...
    }
    

    or similar and avoid touching all the other code?

    Seems kind of a shame not to add a dummy tx a well to get to 100% line coverage?

  9. DrahtBot added the label Needs rebase on Sep 29, 2020
  10. Remove gArgs global from CreateChainParams to aid testing fa23308e9a
  11. test: Add signet witness commitment section parse tests fa29b5ae66
  12. MarcoFalke force-pushed on Sep 29, 2020
  13. MarcoFalke commented at 9:41 AM on September 29, 2020: member

    avoid touching all the other code

    Long term goal is to get rid of the gArgs global in Core (though, not the gui), so I think this patch will be done anyway. Left as is for now.

    Seems kind of a shame not to add a dummy tx a well to get to 100% line coverage?

    Done :100:

  14. DrahtBot removed the label Needs rebase on Sep 29, 2020
  15. laanwj commented at 2:58 PM on September 30, 2020: member

    ACK fa29b5ae666bbb4c19188f0dcf8a1ba738aac624

    Long term goal is to get rid of the gArgs global in Core (though, not the gui), so I think this patch will be done anyway. Left as is for now.

    I think this is overall an improvement, to pass the arguments in. It's also a straightforward, pretty much obviously correct change I'm okay with doing it here.

  16. laanwj merged this on Sep 30, 2020
  17. laanwj closed this on Sep 30, 2020

  18. sidhujag referenced this in commit e03b190aed on Sep 30, 2020
  19. MarcoFalke deleted the branch on Sep 30, 2020
  20. fanquake referenced this in commit 82b70f15c7 on Oct 2, 2020
  21. fanquake cross-referenced this on Oct 2, 2020 from issue refactor: fix -Wbraced-scalar-init warning in validation tests by fanquake
  22. MarcoFalke referenced this in commit a6a993a888 on Oct 2, 2020
  23. sidhujag referenced this in commit 0dbf866d1d on Oct 4, 2020
  24. bitcoin locked this on Feb 15, 2022

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-19 06:53 UTC