signet miner followups #20923

pull ajtowns wants to merge 6 commits into bitcoin:master from ajtowns:202101-signet-tweak changing 3 files +66 −90
  1. ajtowns commented at 4:29 AM on January 13, 2021: member

    Followups from #19937

  2. fanquake requested review from kallewoof on Jan 13, 2021
  3. DrahtBot added the label Docs on Jan 13, 2021
  4. DrahtBot added the label Scripts and tools on Jan 13, 2021
  5. kallewoof approved
  6. kallewoof commented at 7:16 AM on January 13, 2021: member

    tested ACK f30c348be188b32a32f758c7e01b3bb0010e3125

    Running this code on my side as of a minute ago.

  7. MarcoFalke removed the label Docs on Jan 13, 2021
  8. MarcoFalke added the label Needs gitian build on Jan 13, 2021
  9. in contrib/signet/miner:428 in f30c348be1 outdated
     427 | @@ -428,10 +428,13 @@ def do_generate(args):
     428 |              action_time = now
    


    MarcoFalke commented at 10:15 AM on January 13, 2021:

    Is #generate.add_argument("--signcmd", default=None, type=str, help="Alternative signing command") still needed?


    ajtowns commented at 9:06 PM on February 6, 2021:

    Gone

  10. MarcoFalke commented at 10:40 AM on January 14, 2021: member

    The gitian builds are broken right now:

    
      CXXLD    bitcoin-util
    bitcoin_util-bitcoin-util.o: In function `grind_task':
    /home/ubuntu/build/bitcoin/distsrc-riscv64-linux-gnu/src/bitcoin-util.cpp:98: undefined reference to `__atomic_exchange_1'
    collect2: error: ld returned 1 exit status
    Makefile:4964: recipe for target 'bitcoin-util' failed
    make[2]: *** [bitcoin-util] Error 1
    make[2]: Leaving directory '/home/ubuntu/build/bitcoin/distsrc-riscv64-linux-gnu/src'
    Makefile:14421: recipe for target 'all-recursive' failed
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory '/home/ubuntu/build/bitcoin/distsrc-riscv64-linux-gnu/src'
    Makefile:809: recipe for target 'all-recursive' failed
    make: *** [all-recursive] Error 1
    
      CXXLD    qt/bitcoin-qt.exe
    make[2]: Leaving directory '/home/ubuntu/build/bitcoin/distsrc-x86_64-w64-mingw32/src'
    make[1]: Leaving directory '/home/ubuntu/build/bitcoin/distsrc-x86_64-w64-mingw32/src'
    Making all in doc/man
    make[1]: Entering directory '/home/ubuntu/build/bitcoin/distsrc-x86_64-w64-mingw32/doc/man'
    make[1]: Nothing to be done for 'all'.
    make[1]: Leaving directory '/home/ubuntu/build/bitcoin/distsrc-x86_64-w64-mingw32/doc/man'
    make[1]: Entering directory '/home/ubuntu/build/bitcoin/distsrc-x86_64-w64-mingw32'
    make[1]: Nothing to be done for 'all-am'.
    make[1]: Leaving directory '/home/ubuntu/build/bitcoin/distsrc-x86_64-w64-mingw32'
    + make -j1 -C src check-security
    make: Entering directory '/home/ubuntu/build/bitcoin/distsrc-x86_64-w64-mingw32/src'
    Checking binary security...
    bitcoin-util.exe: failed RELOC_SECTION
    make: *** [check-security] Error 1
    Makefile:14974: recipe for target 'check-security' failed
    make: Leaving directory '/home/ubuntu/build/bitcoin/distsrc-x86_64-w64-mingw32/src'
    
  11. fanquake commented at 3:39 PM on January 14, 2021: member

    bitcoin-util.exe: failed RELOC_SECTION

    This will fix the reloc section issue (same as in #18702):

    diff --git a/src/bitcoin-util.cpp b/src/bitcoin-util.cpp
    index b702a68bd..30b809871 100644
    --- a/src/bitcoin-util.cpp
    +++ b/src/bitcoin-util.cpp
    @@ -181,7 +181,16 @@ static int CommandLineUtil(int argc, char* argv[])
         return nRet;
     }
     
    +#ifdef WIN32
    +// Export main() and ensure working ASLR on Windows.
    +// Exporting a symbol will prevent the linker from stripping
    +// the .reloc section from the binary, which is a requirement
    +// for ASLR. This is a temporary workaround until a fixed
    +// version of binutils is used for releases.
    +__declspec(dllexport) int main(int argc, char* argv[])
    +#else
     int main(int argc, char* argv[])
    +#endif
     {
         SetupEnvironment();
    
  12. DrahtBot commented at 2:28 AM on January 16, 2021: member

    <!--a722867cd34abeea1fadc8d60700f111-->

    Gitian builds

    File commit f91587f050d9dceb45fe10129a76a4a9a060a09c<br>(master) commit c05404b3d55952e865fdc69fcd0db9c58b948ae1<br>(master and this pull)
    bitcoin-core-osx-22-res.yml e200c826eeb7a93c... 5b95d001f42c498d...
    *-osx-unsigned.dmg 717ed50827df3258... 92ee3f82dcc0510c...
    *-osx64.tar.gz b69aca9c61c5f323... 9d47f5f3ce853747...
    *.tar.gz 55ea07e15a1bb201... 05299f06b52f1bf7...
    linux-build.log d3c3a429c2a30cbb... d6233a6aa9943c0e...
    osx-build.log 145288090ebdfce2... 9fd223c75b33a758...
    win-build.log 7dce8d9537232b5a... 311b41cfbc824d95...
    bitcoin-core-osx-22-res.yml.diff 988590203fe27d67...
    linux-build.log.diff b67e704bb6e15546...
    osx-build.log.diff ab557248c7a44d6b...
    win-build.log.diff e871442041e9df2f...
  13. DrahtBot removed the label Needs gitian build on Jan 16, 2021
  14. MarcoFalke added the label Needs gitian build on Jan 18, 2021
  15. DrahtBot commented at 6:07 AM on January 20, 2021: member

    <!--a722867cd34abeea1fadc8d60700f111-->

    Gitian builds

    File commit 43f3ada27b835e6b198f9a669e4955d06f5c4d08<br>(master) commit f1e128158f42ec8341b0ec5108149330e9f40309<br>(master and this pull)
    *-aarch64-linux-gnu-debug.tar.gz 559dd36d19c18766... cd9c1f3170534173...
    *-aarch64-linux-gnu.tar.gz 2327131dc0b85b16... 8eedd20d804a896e...
    *-arm-linux-gnueabihf-debug.tar.gz a344291979c13f62... 333af071421dc200...
    *-arm-linux-gnueabihf.tar.gz 3fa15aad12aa0b4d... 29a7e98fdeb16db9...
    *-osx-unsigned.dmg daa2cf679fb82613... ffe9dd6ad4a82ead...
    *-osx64.tar.gz 72f5f659ccc515d2... 52731e7018bf9659...
    *-riscv64-linux-gnu-debug.tar.gz 7203c3f42c26dd51... 014c14e2524d6b10...
    *-riscv64-linux-gnu.tar.gz 42b2f7b5e3adba32... ef65bd534f2cb7cf...
    *-win64-debug.zip c9d2083970c06a74... 967325049992900f...
    *-win64-setup-unsigned.exe 0d56ad727cd6854c... dc8c0db84abe2e91...
    *-win64.zip 04a512476cc79e35... 1b22ec5e55c721d6...
    *-x86_64-linux-gnu-debug.tar.gz 86cb4df751bb46dc... c9d66637b73204c9...
    *-x86_64-linux-gnu.tar.gz 1d287b0c59bfb059... fc6c7f3e812b5252...
    *.tar.gz a1ee1dac4c106342... 1d310d3ca909b303...
    bitcoin-core-linux-22-res.yml c4a09a6900e447e4... ed438a58e3fe308f...
    bitcoin-core-osx-22-res.yml 55b7f77fae35f92a... 4404304ceb166d05...
    bitcoin-core-win-22-res.yml 77d6843038373494... 07f7671331d5d980...
    linux-build.log 35bd4b0a51da2e8f... 2898518c18b0253a...
    osx-build.log 5aff87f4cdceb992... 2775bb9f1d4a8b16...
    win-build.log 93ca97a3a1aa62e6... 04957fb18924cf58...
    bitcoin-core-linux-22-res.yml.diff e3c62fa0eeafe304...
    bitcoin-core-osx-22-res.yml.diff 6cb456800f201957...
    bitcoin-core-win-22-res.yml.diff d10625a721ec1f2d...
    linux-build.log.diff acf9f6435085666c...
    osx-build.log.diff 411c584779df7994...
    win-build.log.diff 4bc1d991ba4ef85a...
  16. DrahtBot removed the label Needs gitian build on Jan 20, 2021
  17. contrib/signet: Fix typos
    Thanks to muxator, JeremyRubin, and gruve-p for spotting.
    1a45cd2e51
  18. contrib/signet/miner: --grind-cmd is required for calibrate
    Thanks to muxator for spotting.
    a383ce5b4a
  19. contrib/signet/miner: Automatic timestamp for first block
    When mining the first block of a new signet chain, pick a timestamp for
    the first block so that after mining 100 blocks the timestamp will be
    back to the current time -- this prevents an unnecessary delay before
    any miner rewards have matured enough to be spent.  This takes into
    account that the delta between blocks may be shorter than 10 minutes due
    to attempting to increase the difficulty to match --nbits, but does not
    take into account the time spent actually generating the 100 blocks.
    e66543827c
  20. contrib/signet/README.md: Update miner description b6d493fd4d
  21. bitcoin-util: use AddCommand / GetCommand 297e35159f
  22. contrib/signet/miner: remove debug code b3c712cb28
  23. ajtowns force-pushed on Feb 6, 2021
  24. ajtowns commented at 9:06 PM on February 6, 2021: member

    Rebased on top of #20715 and updated to use GetCommand, also removed some commented-out debug code.

  25. MarcoFalke added this to the milestone 22.0 on Jun 17, 2021
  26. MarcoFalke commented at 7:07 PM on June 17, 2021: member

    Forgot about this because it wasn't tagged 22.0

  27. laanwj commented at 5:12 PM on June 18, 2021: member

    Code review ACK b3c712cb2871e0034898b37454fb6a4e1fc78f84 (and tested the help functionality)

  28. MarcoFalke requested review from kallewoof on Jun 18, 2021
  29. laanwj merged this on Jun 18, 2021
  30. laanwj closed this on Jun 18, 2021

  31. sidhujag referenced this in commit 442081e957 on Jun 18, 2021
  32. kallewoof commented at 1:57 AM on June 19, 2021: member

    Post-merge ACK

  33. gwillen referenced this in commit 5effa94fc5 on Jun 1, 2022
  34. DrahtBot locked this on Aug 18, 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-04-26 09:14 UTC

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