dash/contrib
Wladimir J. van der Laan bba59cabc3
Merge #16802: scripts: In linearize, search for next position of magic bytes rather than fail
3284e6c09a84e9557ec72723ad636053d3ef7122 scripts: search for next position of magic bytes rather than fail (Tim Akinbo)

Pull request description:

  When using the `linearize-data.py` contrib script to export block data, there are edge cases where the script fails with an `Invalid magic: 00000000` error. This error occurs due to the presence of padding bytes that occasionally appears between consecutive blocks in the block data file.

  There's an ongoing conversation about this in #14986. sipa also admitted that it is a bug in #5028. Fortunately, this is not an issue in bitcoin core as it handles this type of situation gracefully and so no fix in bitcoin core is required.

  This PR is an improvement on how the script handles these "invalid magic bytes". Rather than failing, this patch allows the script to search for the next occurrence of the magic bytes and then starts reading the block from there.

ACKs for top commit:
  laanwj:
    ACK 3284e6c09a84e9557ec72723ad636053d3ef7122

Tree-SHA512: 18067ae0b4b62e822dfc558a86439ad6acaf939b98479e38e8e4248536574643b26eb48e96ec7139375c88b42cbe7705a64deb13a3c239e16025a6aad3d69bfa
2021-09-15 13:54:38 -04:00
..
auto_gdb refactor: PrivateSend -> CoinJoin + Move the tab (#4038) 2021-03-17 18:36:11 -04:00
debian Merge #15061: [Trivial] Update license year range to 2019 2021-08-15 11:08:08 -04:00
devtools Merge #16223: devtools: Fetch and display ACKs at sign-off time in github-merge 2021-09-12 14:15:11 -04:00
gitian-descriptors gitian: Fix gitian-linux.yml 2021-09-07 03:25:11 +03:00
gitian-keys contrib: Added thephez.pgp (#3750) 2020-09-30 15:30:55 +03:00
init Merge #12255: Update bitcoin.service to conform to init.md 2021-09-10 15:40:46 -04:00
linearize Merge #16802: scripts: In linearize, search for next position of magic bytes rather than fail 2021-09-15 13:54:38 -04:00
macdeploy merge #20735: Remove outdated extract-osx-sdk.sh 2021-09-04 10:19:32 +05:30
qos Partial Merge #14831: Scripts and tools: Use #!/usr/bin/env bash instead of #!/bin/bash. 2021-08-15 11:08:08 -04:00
seeds contrib|src: Update hard coded seeds (#4152) 2021-05-13 12:31:45 +03:00
testgen Merge #13935: contrib: Adjust output to current test format 2021-07-08 13:09:43 -04:00
verify-commits Merge #15255: [tests] Remove travis_wait from lint script 2021-09-10 20:55:59 -04:00
verifybinaries contrib: Dashify verifybin (#4288) 2021-07-27 13:48:01 +03:00
windeploy update public part of windows code signing certificate (#3749) 2020-10-05 14:57:01 +03:00
zmq Merge bitcoin#14060: ZMQ: add options to configure outbound message high water mark, aka SNDHWM (#4360) 2021-09-08 12:39:06 -04:00
dash-cli.bash-completion Merge #15245: remove deprecated mentions of signrawtransaction from fundraw help 2021-09-06 18:01:57 +05:30
dash-qt.pro qt: Introduce appearance tab and setup dialog (#3568) 2020-07-26 14:19:11 +03:00
dash-tx.bash-completion
dashd.bash-completion Merge #10680: Fix inconsistencies and grammar in various files 2020-01-10 10:33:53 -06:00
filter-lcov.py Merge #13448: Add linter: Make sure we explicitly open all text files using UTF-8 encoding in Python 2020-07-07 11:50:56 -05:00
gitian-build.py merge #19240: macOS toolchain simplification and bump 2021-09-03 17:49:55 +05:30
README.md Slightly adjust some README.md files (#3175) 2019-10-29 21:37:18 +03:00
valgrind.supp bitcoin -> Dash 2020-01-30 07:37:50 -06:00

Repository Tools

Developer tools

Specific tools for developers working on this repository. Contains the script github-merge.py for merging GitHub pull requests securely and signing them using GPG.

Verify-Commits

Tool to verify that every merge commit was signed by a developer using the above github-merge.py script.

Linearize

Construct a linear, no-fork, best version of the blockchain.

Qos

A Linux bash script that will set up traffic control (tc) to limit the outgoing bandwidth for connections to the Dash network. This means one can have an always-on dashd instance running, and another local dashd/dash-qt instance which connects to this node and receives blocks from it.

Seeds

Utility to generate the pnSeed[] array that is compiled into the client.

Build Tools and Keys

Debian

Contains files used to package dashd/dash-qt for Debian-based Linux systems. If you compile dashd/dash-qt yourself, there are some useful files here.

Gitian-descriptors

Notes on getting Gitian builds up and running using KVM.

Gitian-keys

PGP keys used for signing Dash Core Gitian release results.

MacDeploy

Scripts and notes for Mac builds.

Gitian-build

Script for running full Gitian builds.

Test and Verify Tools

TestGen

Utilities to generate test vectors for the data-driven Dash tests.

Verify Binaries

This script attempts to download and verify the signature file SHA256SUMS.asc from bitcoin.org.