-
Notifications
You must be signed in to change notification settings - Fork 37.8k
signet miner followups #20923
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
signet miner followups #20923
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested ACK f30c348
Running this code on my side as of a minute ago.
The gitian builds are broken right now:
|
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(); |
Gitian builds
|
Thanks to muxator, JeremyRubin, and gruve-p for spotting.
Thanks to muxator for spotting.
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.
f30c348
to
b3c712c
Compare
Rebased on top of #20715 and updated to use GetCommand, also removed some commented-out debug code. |
Forgot about this because it wasn't tagged 22.0 |
Code review ACK b3c712c |
Post-merge ACK |
Followups from #19937