Skip to content
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

Clean proofofstake implementation #1

Merged
merged 2 commits into from
Jul 17, 2019
Merged

Clean proofofstake implementation #1

merged 2 commits into from
Jul 17, 2019

Conversation

barrystyle
Copy link

No description provided.

barrystyle added 2 commits July 18, 2019 06:48
       61604537f58ed2165268a07f6a5bf77470361cb4
       4850537fdf2b0c6e87722a7c2262c2da210f2574
       17e8d4ef606935421962c19a33504d3ccd27c669
       89844c26031f0d066f1b0921d3e6837dac6cdac8
       c7881e59630585f1f7b71c6fadfa10e928f1954f
	1a142768aa258e66b4f848515a4939673340b831
	bf5f082c6766b3c9f0782a16627dd760f7dd59bc
	371731ba7270b39b9c29eea14ce6771c6a355391
@barrystyle barrystyle merged commit 6a657df into PACGlobalOfficial:v0.14.0.x Jul 17, 2019
barrystyle pushed a commit that referenced this pull request Apr 30, 2020
…tion

d31e5c1 Fix shutdown in case of errors during initialization (Wladimir J. van der Laan)

Pull request description:

  PR bitcoin#10286 introduced a few steps which are not robust to early shutdown in initialization.

  Stumbled upon this with bitcoin#11781, not sure if there are other scenarios that can trigger it, but it's good to harden against this in any case.

  E.g.
  ```
  $ src/bitcoind  -debuglogfile=/dfdf
  Error: Could not open debug log file /dfdf
  Program received signal SIGSEGV, Segmentation fault.
  UnregisterValidationInterface (pwalletIn=0x0) at /.../bitcoin/src/validationinterface.cpp:82
  82          g_signals.m_internals->BlockChecked.disconnect(boost::bind(&CValidationInterface::BlockChecked, pwalletIn, _1, _2));
  (gdb) bt
  #0  UnregisterValidationInterface (pwalletIn=0x0) at /.../bitcoin/src/validationinterface.cpp:82
  #1  0x00005555555a11fc in Shutdown () at /.../bitcoin/src/init.cpp:196
  #2  0x00005555555961cc in AppInit (argc=<optimized out>, argv=<optimized out>) at /.../bitcoin/src/bitcoind.cpp:183
  #3  0x0000555555596249 in main (argc=0, argv=0x555555ecf200) at /.../bitcoin/src/bitcoind.cpp:19
  ```

Tree-SHA512: 7dd9570a9803514a17781bfadf1edde47e96df4e852cce2f423cab422e005fb94d44e777af1a6ea5167b04a4d889e848ae7a61a7e0e94232247ddea32ee70fc8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant