Followups from #19937
signet miner followups #20923
pull ajtowns wants to merge 6 commits into bitcoin:master from ajtowns:202101-signet-tweak changing 3 files +66 −90-
ajtowns commented at 4:29 AM on January 13, 2021: member
- fanquake requested review from kallewoof on Jan 13, 2021
- DrahtBot added the label Docs on Jan 13, 2021
- DrahtBot added the label Scripts and tools on Jan 13, 2021
- kallewoof approved
-
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.
- MarcoFalke removed the label Docs on Jan 13, 2021
- MarcoFalke added the label Needs gitian build on Jan 13, 2021
-
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
MarcoFalke commented at 10:40 AM on January 14, 2021: memberThe 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 1CXXLD 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'fanquake commented at 3:39 PM on January 14, 2021: memberbitcoin-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();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...DrahtBot removed the label Needs gitian build on Jan 16, 2021MarcoFalke added the label Needs gitian build on Jan 18, 2021DrahtBot commented at 6:07 AM on January 20, 2021: member<!--a722867cd34abeea1fadc8d60700f111-->
Gitian builds
DrahtBot removed the label Needs gitian build on Jan 20, 20211a45cd2e51contrib/signet: Fix typos
Thanks to muxator, JeremyRubin, and gruve-p for spotting.
a383ce5b4acontrib/signet/miner: --grind-cmd is required for calibrate
Thanks to muxator for spotting.
e66543827ccontrib/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.
contrib/signet/README.md: Update miner description b6d493fd4dbitcoin-util: use AddCommand / GetCommand 297e35159fcontrib/signet/miner: remove debug code b3c712cb28ajtowns force-pushed on Feb 6, 2021MarcoFalke added this to the milestone 22.0 on Jun 17, 2021MarcoFalke commented at 7:07 PM on June 17, 2021: memberForgot about this because it wasn't tagged 22.0
laanwj commented at 5:12 PM on June 18, 2021: memberCode review ACK b3c712cb2871e0034898b37454fb6a4e1fc78f84 (and tested the help functionality)
MarcoFalke requested review from kallewoof on Jun 18, 2021laanwj merged this on Jun 18, 2021laanwj closed this on Jun 18, 2021sidhujag referenced this in commit 442081e957 on Jun 18, 2021kallewoof commented at 1:57 AM on June 19, 2021: memberPost-merge ACK
gwillen referenced this in commit 5effa94fc5 on Jun 1, 2022DrahtBot locked this on Aug 18, 2022LabelsMilestone
22.0
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 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
More mirrored repositories can be found on mirror.b10c.me