Sebastian Falbesoner
254a63e097
contrib: refactor: replace `hex_switchEndian` in linearize scripts
...
Switching the endianness of a hex string `str` can simply be
achieved by `bytes.fromhex(str)[::-1].hex()`, i.e. we can use
that and remove those helper methods.
3 years ago
MarcoFalke
aaaaad6ac9
scripted-diff: Bump copyright of files changed in 2019
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-
5 years ago
Ben Woosley
b21680baf5
test/contrib: Fix invalid escapes in regex strings
...
Flagged by flake8 v3.6.0, as W605, plus a few others identified
incidentally, e.g. 59ffecf66cf4d08c4b431e457b083878d66a3fd6.
Note that r"\n" matches to "\n" under re.match/search.
5 years ago
OverlordQ
7fdb92e53b
Update linearize-hashes.py
...
Fix class case issue.
6 years ago
practicalswift
4de11a3682
Remove Python 2 import workarounds
6 years ago
DrahtBot
eb7daf4d60
Update copyright headers to 2018
6 years ago
practicalswift
634bd97001
Explicitly specify encoding when opening text files in Python code
7 years ago
John Bampton
0d31ef4762
Enable W191 and W291 flake8 checks.
...
Remove trailing whitespace from Python files.
Convert tabs to spaces.
7 years ago
practicalswift
f020aca297
Minor Python cleanups to make flake8 pass with the new rules enabled
7 years ago
Akira Takizawa
595a7bab23
Increment MIT Licence copyright header year on files modified in 2017
7 years ago
practicalswift
9b94054b7c
Avoid reference to undefined name: stderr does not exist, sys.stderr does
7 years ago
practicalswift
25cd520fc4
Use sys.exit(...) instead of exit(...): exit(...) should not be used in programs
7 years ago
Andrew Chow
bd41d9831f
Datadir option in linearize scripts
...
Adds a datadir configuration option to the linearize scripts to allow the script to use the RPC cookie instead of requiring the user to set a rpcuser and rpcpassword for the rpc server.
8 years ago
practicalswift
95bab821b3
Remove unused Python imports
8 years ago
Doug
3c8f63ba7c
Make linearize scripts Python 3-compatible.
8 years ago
Doug
d5aa19813c
Allow linearization scripts to support hash byte reversal
...
Currently, the linearization scripts require input hashes to be in one endian form. Add support for byte reversal.
8 years ago
isle2983
27765b6403
Increment MIT Licence copyright header year on files modified in 2016
...
Edited via:
$ contrib/devtools/copyright_header.py update .
8 years ago
Matthew King
873e81f89b
Use portable #! in python scripts (/usr/bin/env)
9 years ago
sandakersmann
f914f1a746
Added "Core" to copyright headers
...
Github-Pull: #5494
Rebased-From: 15de949bb9
10 years ago
Michael Ford
78253fcbad
Remove references to X11 licence
10 years ago
Wladimir J. van der Laan
772ab0ea98
contrib: use batched JSON-RPC in linarize-hashes
...
Batch up to 10000 requests for a ~30x speedup.
10 years ago
Jeff Garzik
476eb7eb53
Update linearize scripts.
...
Break into two steps:
* Generate hash list
* Build data file(s) from local bitcoind blocks/ directory.
This supports building one large bootstrap.dat, or multiple
smaller blocks/blkNNNNN.dat files.
10 years ago