Preparations for more testchains #16680

pull jtimon wants to merge 2 commits into bitcoin:master from jtimon:b19-testchains-qt changing 11 files +29 −24
  1. jtimon commented at 1:53 pm on August 22, 2019: contributor

    Separated from #8994 as suggested by MarcoFalke and Sjors in #8994 (comment)

    You can’t really test the qt changes on their own, so to test them, use #8994 .

  2. fanquake added the label Refactoring on Aug 22, 2019
  3. DrahtBot commented at 2:11 pm on August 22, 2019: member

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

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #16411 (Signet support by kallewoof)
    • #15934 (Separate settings merging from parsing by ryanofsky)
    • #8994 (Testchains: Introduce custom chain whose constructor… by jtimon)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  4. jtimon force-pushed on Aug 22, 2019
  5. in src/chainparamsbase.cpp:20 in 5a21981b13 outdated
    16@@ -17,6 +17,7 @@ const std::string CBaseChainParams::REGTEST = "regtest";
    17 
    18 void SetupChainParamsBaseOptions()
    19 {
    20+    gArgs.AddArg("-chain=<chain>", "Use the chain <chain> (default: main). Allowed values: main, testnet, regtest", ArgsManager::ALLOW_ANY, OptionsCategory::CHAINPARAMS);
    


    MarcoFalke commented at 4:16 pm on August 25, 2019:

    I don’t think testnet is an allowed value

    0    gArgs.AddArg("-chain=<chain>", "Use the chain <chain> (default: main). Allowed values: main, test, regtest", ArgsManager::ALLOW_ANY, OptionsCategory::CHAINPARAMS);
    

    Alternatively, you can use

    0Join({
    1  CBaseChainParams::MAIN,
    2  CBaseChainParams::TESTNET,
    3  CBaseChainParams::REGTEST,
    4}, ", ");
    
  6. jtimon force-pushed on Aug 29, 2019
  7. jtimon commented at 12:14 pm on August 29, 2019: contributor
    Fixed @MarcoFalke ’s nit and slightly improve documentation.
  8. Sjors commented at 2:15 pm on August 29, 2019: member

    ACK dba00d2

    It was fairly easy to cherry-pick these commits onto the signet PR (https://github.com/Sjors/bitcoin/commit/df1846c8ae97f28165c0d0b44c6cd7ae6b1fcbba & https://github.com/bitcoin/bitcoin/commit/124ee3786802b19e81351808f3145ed4e80dc32c, cc @kallewoof). By dropping the signet lines from the QT commit, I indeed get a purple client.

  9. kallewoof commented at 2:25 pm on August 29, 2019: member
    Nice!
  10. jtimon commented at 6:27 pm on August 30, 2019: contributor
    @Sjors sure, that’s another way to test it, thanks.
  11. in src/qt/networkstyle.cpp:94 in dba00d2b04 outdated
    87@@ -85,8 +88,8 @@ const NetworkStyle *NetworkStyle::instantiate(const QString &networkId)
    88                     network_styles[x].appName,
    89                     network_styles[x].iconColorHueShift,
    90                     network_styles[x].iconColorSaturationReduction,
    91-                    network_styles[x].titleAddText);
    92+                    titleAddText.c_str());
    93         }
    94     }
    95-    return nullptr;
    96+    return new NetworkStyle(strprintf("%s-%s", QAPP_APP_NAME_CUSTOM, networkId).c_str(), 250, 30, titleAddText.c_str());
    


    MarcoFalke commented at 2:49 pm on September 6, 2019:

    in commit dba00d2b04c3bf0fd4d31cca662d262c459f2ebb:

    This is dead code and I’d prefer if the “default purple” and “custom chain” concept were left for the testchains pull request. This is not required for signet and is only adding dead code.

    I am fine with the titleAddText change in this commit, though. So you can either remove the commit or strip it of the concept of a custom chain.


    jtimon commented at 6:58 pm on September 6, 2019:

    I guess my idea was for signet to reuse this color, perhaps change the tittle from custom to signet if it comes first, and if not just reuse the custom name for all custom chains signet or not.

    EDIT: I mean, or if it’s about the color, we can change to the signet one, I couldn’t care less. Or I can separate it as you sasy, it shouldn’t take long.


    MarcoFalke commented at 7:37 pm on September 6, 2019:
    Wouldn’t that also require 2f5796504a5d984276931da974436a8a5d352f74?

    jtimon commented at 8:17 pm on September 6, 2019:
    hopefully fixed
  12. MarcoFalke dismissed
  13. MarcoFalke commented at 2:51 pm on September 6, 2019: member

    ACK 36f9573e82d370af76fed0789fe3d671546e6e85 (also run the test to verify that only error messages are responsible for change the hash)

    Signature:

     0-----BEGIN PGP SIGNED MESSAGE-----
     1Hash: SHA512
     2
     3ACK 36f9573e82d370af76fed0789fe3d671546e6e85 (also run the test to verify that only error messages are responsible for change the hash)
     4-----BEGIN PGP SIGNATURE-----
     5
     6iQGzBAEBCgAdFiEE+rVPoUahrI9sLGYTzit1aX5ppUgFAlwqrYAACgkQzit1aX5p
     7pUga+Av/Y3yW/KQZwNdF7hYFnrmx2Oi6tYorQ3duhA1xTtkkNMZJn6VHS2qDDoOL
     88OApQqJa8AQOQO+Ds1kkXQMq7PJzxaxh0kw31YvmQblZGKPsUUqziCbHF1GjFHWo
     92GhY3x+sBuNhHyTXgS6EqiyEmEAE0B+1fb4xvAC7cna5RkexOR4JDu6n6I5PZDxu
    105upGAB55q1014wUc1aNbEqFHwDmqiwAzIMIKgWSpaQoFKNOUsNl0MS/XpSTeNG7u
    1154LHuSoTyLJi+luhY0I+wqDMZuzgJeSZySlQFKDMzC0pVLoMYfO0qqcpDD4pkSkW
    12cg55tpewD4W/ljq4lFYTATtHzAy6mi3s/AN09TM/GE7DOyYdnSxPRyBrKaA039Ii
    13HCTUZtS1hv/gbs7l6aqUgWlNFwicSvqRSHWJ7IXmbqIS26E5R+e9i4II6mfcZsoD
    14GQXjYagSkdta8xydIaWDTHt6x2hXzYHXxtUyI6reJ+ObrCgsPjiWG6eA3aUoaaYv
    15iEIzcc2c
    16=ubtk
    17-----END PGP SIGNATURE-----
    

    Timestamp of file with hash fe315895de9bcfebf0a22dee8eb70c8cd08dd7ba0736e8d0c931542ea93a4bd7 -

  14. MarcoFalke added this to the milestone 0.19.0 on Sep 6, 2019
  15. Testchains: Generic selection with -chain=<str> in addition of -testnet and -regtest 052c54ecb0
  16. Testchains: Qt: Simplify network/chain styles 3bf9d8cac0
  17. jtimon force-pushed on Sep 6, 2019
  18. MarcoFalke commented at 7:55 am on September 7, 2019: member

    ACK 3bf9d8cac09fc88727ef2f2a2bea33b90b625e50

    Signature:

     0-----BEGIN PGP SIGNED MESSAGE-----
     1Hash: SHA512
     2
     3ACK 3bf9d8cac09fc88727ef2f2a2bea33b90b625e50
     4-----BEGIN PGP SIGNATURE-----
     5
     6iQGzBAEBCgAdFiEE+rVPoUahrI9sLGYTzit1aX5ppUgFAlwqrYAACgkQzit1aX5p
     7pUhhSgv/d0tNdJAcYe5izbrwgb32bUYpXXLrk7KdCxauZoGCVKsPxbK+iGx5nhZg
     8OcUun64mGXA9L6fMLFyByXZe1FND1CVNHF/b/5mxobmpaE5RqFq7DWhpcVNoXwe3
     97CukYbaPMcqajlIsr1KHgetHQrs5Z7HQO4qC4+vvcVLTBd+X0LB61AKbEaDwVldp
    10oFKk4C7B9wNDfnUxGqjyBr671tfMgGVi+rDlmra4xedUd93PTRJ12fudf1pp9OcI
    11hvr8ablChiTG1EKbbfbXPcScpfsfjGc1ZI0z2wvKXKRSpe1pmoWLje9ySt0TUBN9
    12B8wRdozzk4Q63v+6X2+JvNzT7gIEJYi7wNgERipkTJAckWgwZ+jU3WgcB+yHkfrf
    13Kun/DULfIusSIqSJBKU8UKe3zCxH2ykhRJT3tzd7zB5k+QHGgWLq9ojLpBdfi/jm
    14hkhxq1TIqrMmwC3jXWnTH4P1Qtvx5Fiq4KB7RmXjuZ43EIIHMlet8gewhZRBH0X+
    15DXnwuC7C
    16=omI2
    17-----END PGP SIGNATURE-----
    

    Timestamp of file with hash 9eb4317ea08a354e0ed72ca0faed34267277bab19a079787f864956aa279387d -

  19. MarcoFalke referenced this in commit 750c2fbf26 on Sep 10, 2019
  20. MarcoFalke merged this on Sep 10, 2019
  21. MarcoFalke closed this on Sep 10, 2019

  22. sidhujag referenced this in commit c15fa2cfee on Sep 10, 2019
  23. MarcoFalke referenced this in commit f32564f0a7 on Feb 4, 2020
  24. sidhujag referenced this in commit e5ba378689 on Feb 9, 2020
  25. deadalnix referenced this in commit cf6846fa78 on Apr 30, 2020
  26. sidhujag referenced this in commit 269521a1d5 on Nov 10, 2020
  27. UdjinM6 referenced this in commit 9a5d7fc5ac on Jan 21, 2021
  28. DrahtBot 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: 2024-12-22 09:12 UTC

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