Commit graph

26709 commits

Author SHA1 Message Date
Ross Nicoll 6514bdd001 Disable broken CI tests
* Disable fuzzer tests in CI as broken when we forked Bitcoin Core 0.21.
* Disable thread sanitizer as it incorrectly flags an issue in BDB.
* Disable integer overflow sanitizer as it fails on algorithms we depend on which intentionally use this behaviour.
2021-07-09 22:06:26 +01:00
Ross Nicoll c93261586d Ignore unsigned overflow warnings
Ignore unsigned overflow warnings in:

* Scrypt hash calculation as this is an intentional part of how they behave.
* Calculating block subsidy as the Mersenne Twister intentionally expects this behaviour.
2021-07-09 22:06:26 +01:00
Ross Nicoll 2b821751fe Replace HMAC_SHA256 with Bitcoin's version 2021-07-09 22:06:26 +01:00
Ross Nicoll 753193e468 Fix compilation error in fuzz code 2021-07-09 22:06:26 +01:00
Ross Nicoll 7b6fadb899 bitcoin-node -> dogecoin-node 2021-07-09 22:06:26 +01:00
Ross Nicoll 9fb45926df Correct signedness of expected data in dogecoin_tests 2021-07-09 22:06:26 +01:00
Ross Nicoll 72bc180795 Cap maximum fee
Cap maximum fee at 21 million Dogecoins to ensure there is no overflow in the fee logic.
2021-07-09 22:06:26 +01:00
Ross Nicoll ac6f78e411 Rewrite subsidy limit tests 2021-07-09 22:06:26 +01:00
fanquake bd2f4164c6
Merge bitcoin/bitcoin#22366: [0.21] fuzz: add missing ECCVerifyHandle to base_encode_decode
da816247f0 util: Properly handle -noincludeconf on command line (MarcoFalke)
513613d8a8 Cleanup -includeconf error message (MarcoFalke)
70eac6fcd0 Fix crash when parsing command line with -noincludeconf=0 (MarcoFalke)
c5357fa415 fuzz: add missing ECCVerifyHandle to base_encode_decode (Andrew Poelstra)

Pull request description:

  Backports #22279, #22002 and #22137 to fix fuzzing issues in the 0.21 branch: https://github.com/bitcoin/bitcoin/runs/2864012729.

ACKs for top commit:
  achow101:
    ACK da816247f0

Tree-SHA512: ab8751387e42e03ff43594ae34be8ed0dba903d7da1aaecb9f19c08366570d8995abe89ba0c9bafe37662940f3e83bef1e9e50f330e86114cd6a773becd1fd21
2021-07-08 11:52:07 +08:00
MarcoFalke 4c29b63cfb
Merge bitcoin/bitcoin#22255: [0.21] wallet: Do not iterate a directory if having an error while accessing it
7b0b201d10 wallet: Do not iterate a directory if having an error while accessing it (Hennadii Stepanov)

Pull request description:

  This change prevents infinite looping for, for example, system folders
  on Windows.

  Github-Pull: #21907
  Rebased-From: 29c9e2c2d2015ade47ed4497926363dea3f9c59b

  Note: Trivial backport, but in a differently-named function in another file

ACKs for top commit:
  hebasto:
    ACK 7b0b201d10, I have reviewed the code and it looks OK, I agree it can be merged.

Tree-SHA512: d41ab267250e8bfd9289cacf1fd804cc1a3bb20fc479dc9da5a69ebf26530b552b11b2ee6b11e17a1c146ca792ee65bd64eeb2269fa5e73a70361da8a2a09925
2021-07-01 08:35:53 +02:00
MarcoFalke da816247f0
util: Properly handle -noincludeconf on command line
This bug was introduced in commit
fad0867d6ab9430070aa7d60bf7617a6508e0586.

Unit test
Co-Authored-By: Russell Yanofsky <russ@yanofsky.org>

Github-Pull: #22137
Rebased-From: fa910b47656d0e69cccb1f31804f2b11aa45d053
2021-06-30 10:39:33 +08:00
MarcoFalke 513613d8a8
Cleanup -includeconf error message
Remove the erroneous trailing newline '\n'. Also, print only the first
value to remove needless redundancy in the error message.

Github-Pull: #22002
Rebased-From: fad0867d6ab9430070aa7d60bf7617a6508e0586
2021-06-30 10:23:54 +08:00
MarcoFalke 70eac6fcd0
Fix crash when parsing command line with -noincludeconf=0
Github-Pull: #22002
Rebased-From: fa9f711c3746ca3962f15224285a453744cd45b3
2021-06-30 10:23:51 +08:00
Andrew Poelstra c5357fa415
fuzz: add missing ECCVerifyHandle to base_encode_decode
GitHub Pull: #22279
Rebased-From: 906d7913117c8f10934b37afa27ae8ac565da042
2021-06-29 11:03:27 +08:00
Patrick Lodder 3eb1ebd217
Merge pull request #2288 from fdoving/fdov-depends-libevent
depends: libevent 2.1.12-stable
2021-06-27 03:09:15 +02:00
Patrick Lodder 56b22fad25
Merge pull request #2287 from fdoving/fdov-depends-expat
depends: update expat to 2.4.1
2021-06-27 02:58:47 +02:00
MarcoFalke 926f76cb20
Merge bitcoin/bitcoin#22191: [0.21] gitian: Use custom MacOS code signing tool
0fe60a84ae Use latest signapple commit (Andrew Chow)
5313d6aed2 gitian: Remove codesign_allocate and pagestuff from MacOS build (Andrew Chow)
27d691b6b5 gitian: use signapple to create the MacOS code signature (Andrew Chow)
2f33e339a8 gitian: use signapple to apply the MacOS code signature (Andrew Chow)
65ce833042 gitian: install signapple in gitian-osx-signer.yml (Andrew Chow)

Pull request description:

  Backport of #20880 and #22190

ACKs for top commit:
  MarcoFalke:
    cherry-pick-only ACK 0fe60a84ae 🍀

Tree-SHA512: e864048fab02a1857161602dd53abba552ca3f859c133a47a5e62c28d3e4de9cd099bce86123a1b5892042b09f51cc1ddd2ed1b0c71bfba162710eaee3f5bf91
2021-06-19 09:50:11 +02:00
Hennadii Stepanov 7b0b201d10 wallet: Do not iterate a directory if having an error while accessing it
This change prevents infinite looping for, for example, system folders
on Windows.

Github-Pull: #21907
Rebased-From: 29c9e2c2d2015ade47ed4497926363dea3f9c59b
2021-06-15 19:02:45 +00:00
Ross Nicoll 52851fa2dd
Merge pull request #2274 from rnicoll/1.21-default-address-type
1.21 Set default address type to legacy
2021-06-12 17:58:14 +01:00
Ross Nicoll 9f3d27833c
Disable generating BECH32 addresses from the UI 2021-06-12 17:13:41 +01:00
Ross Nicoll 261d38e0fe
Generate legacy addresses by default
Generate legacy addresses instead of SegWit by default.
2021-06-12 16:58:46 +01:00
Ross Nicoll efaf5335fd
Merge pull request #2259 from rnicoll/1.21-node-context
Add node context to wallet RPC request object
2021-06-12 16:35:29 +01:00
fdov c159cf0b82
depends: libevent 2.1.12-stable
Update libevent 2.1.12-stable
2021-06-10 00:01:45 +02:00
fdov 481b2469d3
depends: update expat to 2.4.1
Update expat to 2.4.1
    CVE-2013-0340/CWE-776
2021-06-09 23:35:21 +02:00
Ross Nicoll 803923ca58 Remove separate node and wallet contexts 2021-06-09 08:38:00 +01:00
Ross Nicoll 1de71358f7 Directly include NodeContext instead of defining it
Rather than defining that NodeContext is defined fully elsewhere, actually include node/context.h into src/wallet/context.h for details.
2021-06-09 08:14:36 +01:00
Ross Nicoll 39a231053a Add node context to wallet RPC request object
Add node context to wallet RPC request object, as getauxblock needs access to the node to determine if it is in initial block download, and requires access to the wallet to get an address to pay to.
2021-06-09 08:14:36 +01:00
Andrew Chow 0fe60a84ae
Use latest signapple commit
Update gitian and guix to use the same latest signapple commit

Github-Pull: #22190
Rebased-From: 683d197970a533690ca1bd4d06d021900e87cb8b
2021-06-08 17:04:36 -04:00
Andrew Chow 5313d6aed2
gitian: Remove codesign_allocate and pagestuff from MacOS build
Github-Pull: #20880
Rebased-From: 2c403279e2f0f7c8c27c56d4e7b0573c59571f0a
2021-06-08 16:58:40 -04:00
Andrew Chow 27d691b6b5
gitian: use signapple to create the MacOS code signature
Github-Pull: #20880
Rebased-From: f55eed251488d70d5e2e3a2965a4f8ec0c476853
2021-06-08 16:57:32 -04:00
Andrew Chow 2f33e339a8
gitian: use signapple to apply the MacOS code signature
Github-Pull: #20880
Rebased-From: 95b06d21852b28712db6c710e420a58bdc1a0944
2021-06-08 16:57:28 -04:00
Andrew Chow 65ce833042
gitian: install signapple in gitian-osx-signer.yml
Github-Pull: #20880
Rebased-From: 42bb1ea363286b088257cabccb686ef1887c1d3b
2021-06-08 16:56:08 -04:00
Ross Nicoll 0c8a07526f
Merge pull request #2248 from rnicoll/1.21-count-type
Change count type used by `gettxoutsetinfo`
2021-06-08 19:12:41 +01:00
Ross Nicoll 30142014b7
Change count type used by gettxoutsetinfo
changing CAmount (is a int64_t) to arith_uint256 for nTotalAmount in CCoinsStats to prevent overflow
2021-06-08 18:22:11 +01:00
Ross Nicoll 60cc97c7c4
Merge pull request #2252 from rnicoll/1.21-auxpow-parameters
Introduce AuxPoW chain parameters
2021-06-08 18:21:19 +01:00
Ross Nicoll d662bd5011 Switch naming of AuxPoW activation to match BIPxxHeight style
Also removes the AllowLegacyBlocks() function, to be replaced by directly
checking height against the value (as per style used elsewhere).
2021-06-08 08:29:43 +01:00
Ross Nicoll 2fc9a6464d
Merge pull request #2260 from mmicael1/1.21-dev-boost-dependency
fix: Boost url dependency
2021-06-06 09:49:37 +01:00
Malta Micael ebc163c005
fix: Boost url dependency 2021-06-06 00:14:02 -04:00
Ross Nicoll 140871623d
Introduce AuxPoW chain parameters
Introduce AuxPoW chain parameters. These are not yet used, splitting these out to make validation easier.
2021-06-05 23:25:30 +01:00
Ross Nicoll 7e89106e18
Merge pull request #2253 from rnicoll/1.21-centos
Add python3-devel package to CentOS
2021-06-05 22:36:32 +01:00
Ross Nicoll 0baff5a40a
Add python3-devel package to CentOS
* Add python3-devel package to CentOS as it is required for ltc_scrypt to build.
* Remove python3-distutils package from CentOS as they ship in the default Python 3 install.
2021-06-05 09:24:42 +01:00
Ross Nicoll b7413c2f50
Merge pull request #2237 from mmicael1/1.21-dev-ci-cache-assets
Cache qa-assets directory on CI
2021-06-03 19:39:13 +01:00
Patrick Lodder 314ae07dcd
Merge pull request #2238 from rnicoll/1.21-dont-send-alert
Don't send a Bitcoin alert to Dogecoin clients
2021-06-03 18:18:56 +02:00
Ross Nicoll 4288f6cee7
Update src/net_processing.cpp 2021-06-03 16:55:08 +01:00
Patrick Lodder cdc0be5999
Merge pull request #2222 from rnicoll/1.21-italian
minor Italian translation backport
2021-06-03 15:44:09 +02:00
Ross Nicoll 5640cc921d Stop sending a Bitcoin alert to Dogecoin clients 2021-06-03 10:06:21 +01:00
Ross Nicoll f090c41555
Apply suggestions from language review 2021-06-03 09:49:46 +01:00
Malta Micael 363e2bda91
Cache qa-assets directory on CI 2021-06-02 23:10:02 -04:00
Ross Nicoll d069588c1f
Merge pull request #2224 from mmicael1/1.21-reduce-tests-latency
fix: reduce tests latency
2021-06-02 23:22:44 +01:00
Patrick Lodder 8fcbf8cfe5
Merge pull request #1828 from rnicoll/1.21-dev-scrypt-algo
Scrypt algorithm
2021-06-02 23:45:02 +02:00