Script verification being run when rebuilding UTXO database. #27639

issue rebroad openend this issue on May 12, 2023
  1. rebroad commented at 11:47 am on May 12, 2023: contributor

    It seems that script verification is being run during the rebuilding of the UTXO database, which, if the intention is simply to rebuild the UTXO (due to a disk corruption) then this ought to be unnecessary given the verification has already occurred.

    GPT-4 suggested a simple code-change, although it’s a little more complex than this as it needs to ensure that the script verification is only skipped on blocks we can be sure have previously been checked.

    GPT-4’s suggestion nevertheless: https://shareg.pt/qDkfAkx (I love how it’s familiar with the project’s code though!)

  2. rebroad added the label Feature on May 12, 2023
  3. maflcko commented at 12:50 pm on May 12, 2023: member
    You can leave -assumevalid’s default value to skip the checks. However, if you run into disk corruption, I’d recommend to disable it via -assumevalid=0 to catch problems in files on disk.
  4. maflcko closed this on May 12, 2023

  5. bitcoin locked this on May 11, 2024


rebroad maflcko

Labels
Feature


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: 2024-12-21 15:12 UTC

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