Skip to content

Conversation

@furszy
Copy link

@furszy furszy commented Feb 24, 2021

Grouped some small commits from init, validation and zc removal together to not end up pushing them separately.

  • validation: DisconnectBlock remove nValueOut and nValueIn calculation.
  • deterministicmint.h/cpp unused files removed.
  • don't save until LoadMempool() is finished.
  • fRequestShutdown moved to std::atomic.
  • several Clang-Tidy warnings solved in init.cpp.

eklitzke and others added 6 commits February 24, 2021 17:53
While reading another PR I saw a mention of bitcoin#6358. The use case for
SCHED_BATCH is to hint to the kernel that the thread is running a
non-interactive workload that consumes a lot of CPU time. This is
helpful on desktop machines where the loadblk thread can interfere with
interactive applications. More details can be found in the sched(7) man
page.
Adaptation of btc@cb1e319fe9e198c9c5cf5236fe9af5a3d748b9e8
Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 4bc4728

Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 4bc4728

@random-zebra random-zebra merged commit 1fe8b63 into PIVX-Project:master Feb 27, 2021
furszy added a commit that referenced this pull request Mar 13, 2021
…ead of 0

48b3bc4 util: Remove designator initializer from ScheduleBatchPriority (Wladimir J. van der Laan)
886b6ca util: Pass pthread_self() to pthread_setschedparam instead of 0 (Wladimir J. van der Laan)

Pull request description:

  Coming straight from bitcoin#12923.

  Fixes a bug introduced in #2212 for **some** POSIX linux systems (observed on CentOS 7 currently)

  Original upstream text:

  > Nowhere in the man page of pthread_setschedparam it is mentioned that 0 is a valid value. The example uses pthread_self(), so should we.

ACKs for top commit:
  furszy:
    utACK 48b3bc4
  random-zebra:
    utACK 48b3bc4

Tree-SHA512: b7976efbe4659a20ca88e958dc419d6cf9a11867c0a1dc021af722f5878b4574a160680b35fecca348231c5477f52fd0a1e336f76968127acf0f5c018e2b6de7
@furszy furszy deleted the 2020_init_updates branch November 29, 2022 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants