14399 Commits

Author SHA1 Message Date
Patrick Lodder
88b36f18cc
qa: test walletnotify
Tests 5 scenarios:
1. Notifying for a new transaction into mempool
2. Notifying again for a mined known transaction
3. Notifying for a reversal and subsequent remine
4. Notifying for a reversal and subsequent doublespend
5. Notifying for a transaction that wasn't in mempool first
2023-12-20 21:14:00 -05:00
chromatic
4d44dbf629
Merge pull request #3364 from edtubbs/1.14.7-dev-fontconfig
depends: updated to fontconfig 2.12.6
2023-12-03 09:15:02 -08:00
chromatic
94f5ef4a43
Merge pull request #3214 from patricklodder/1.14.7-fix-avx2-qt-dep
build: constrain -lQt5PlatformSupport check as AVX2 dependency
2023-11-27 17:16:34 -08:00
chromatic
afdea1c9dc
Merge pull request #3383 from patricklodder/1.14.7-unify-aarch64-ci
ci: execute only one aarch64 experimental ci
2023-11-27 17:15:19 -08:00
Old Dip Tracker
0896780b25
Merge pull request #3384 from edtubbs/1.14.7-dev-doc_sec_update
doc: added security update guidance
2023-11-27 00:22:46 +01:00
Old Dip Tracker
1198179944
Merge pull request #3271 from sinetek/1.14.7-dev-expat
depends: expat 2.5.0
2023-11-26 13:01:21 +01:00
Old Dip Tracker
8a3669d10a
Merge pull request #3257 from chromatic/add-height-to-walletnotify
Add height parameter to walletnotify message
2023-11-26 01:30:08 +01:00
Ed Tubbs
2edf2fc0e4 doc: added security update guidance 2023-11-24 23:47:39 -06:00
Patrick Lodder
0c1b61d841
ci: execute only one aarch64 ci
For 7019ead, a separate CI job was created because bionic's gcc-7
didn't have sha512 intrinsics support. Now that we've moved to a
focal build system, the experimental CI job for aarch64 can be ran
as a single job again.
2023-11-24 20:18:13 -05:00
chromatic
7bf35af221 Add height to walletnotify message
Use %i in the command to include the height of the block containing the
transaction.
2023-11-24 10:58:58 -08:00
pmb
4aab1c148a [depends] expat 2.5.0 2023-11-24 10:22:57 -08:00
chromatic
faa42010d8
Merge pull request #3358 from patricklodder/1.14.7-reduce-qt
depends: reduce Qt footprint
2023-11-23 13:24:27 -08:00
Ed Tubbs
7904b4805f depends: updated to fontconfig 2.12.6 2023-11-17 21:23:54 -06:00
Old Dip Tracker
bdd8926be8
Merge pull request #3345 from edtubbs/1.14.7-dev-zlib
depends: updated to zlib 1.3
2023-11-17 14:38:11 +01:00
Old Dip Tracker
9a380b0fcd
Merge pull request #3335 from AjaxPop/patch-3
include stdexcept in the lockedpool.cpp file
2023-11-01 07:14:06 -04:00
Ed Tubbs
3d7395284d depends: updated to zlib 1.3 2023-10-30 12:17:24 -05:00
Old Dip Tracker
727e6f11ae
Merge pull request #3357 from edtubbs/1.14.7-dev-protobuf
depends: updated to protobuf 3.6.1
2023-10-30 10:33:18 -04:00
Skylar Loomis
e6ffd92e28
iinclude stdexcept
It is needed for handling std::runtime_error correctly.
2023-10-29 16:12:08 -04:00
Ed Tubbs
49fdaa19dc depends: updated to protobuf 3.6.1 2023-10-28 17:25:05 +00:00
Patrick Lodder
01cdeec11a
build: remove libx11 dependency
We do not need libx11 to compile Qt with some very minor patches.
Removing this removes attack surface from dogecoin-qt and reduces
future maintenance cost.

- Removes packages:
  - libX11
  - libXext
  - xextproto
  - xtrans
- Patches Qt to not try to include X11 anywhere
- Removes x11-xcb check from bitcoin_qt.m4
- Remove permission to depend on libX11*so in release binaries

Backported-from: 1ec30b8f
                 aa53cb7a
                 92456991
                 0c55d8b5
                 689d3b4a
Co-Authored-By: Carl Dong <contact@carldong.me>
2023-10-28 07:49:23 -04:00
Patrick Lodder
a93bf1c1b0
depends: remove dbus dependency and fix qt configuration
dbus is not used by qt in depends per documentation of the
-dbus-runtime configuration flag - it uses the packaged interface
and can be removed as a managed dependency.

Since dbus interfaces are only used on linux, remove it from the
windows and macOS configurations.

Backported-from: e8fabd92
                 6fdf5dab
Co-authored-by: fanquake <fanquake@gmail.com>
2023-10-28 07:49:22 -04:00
Patrick Lodder
fe94986c35
depends: reduce exported features for qt 5.7.1
Remove functionality of Qt that we do not need, resulting in a
smaller dogecoin-qt binary and a reduced attack surface.

- removes all image support except png
  (xpm is needed for qt binary build tools)
- no longer use Qt's built-in libjpeg
- disable all unused features

Items that cannot be removed vs Bitcoin Core:
For paper wallets:
- printer dialogs and pdf
- html rendering
For BIP70 payment requests:
- network configuration
- openssl
- socks5 support
2023-10-28 07:39:11 -04:00
chromatic
86d754c0e9
Merge pull request #3355 from patricklodder/1.14.7-linter-trans
ci: add linter for translations
2023-10-25 15:02:39 -07:00
Patrick Lodder
cf485309c5
ci: add linter for translations
Adds a lint job to the CI where we can do sanity analysis on
included files to help spot errors on non-cpp source files
that may cause problems during runtime.

This first job implements contrib/devtools/check-translations.py
that alerts the repository of errors in the translation files in
src/qt/locale. Errors in a translation file are otherwise only
becoming visible during runtime.
2023-10-19 17:12:45 -04:00
Old Dip Tracker
be2ee04d5f
Merge pull request #3340 from justinvforvendetta/patch-1
doc: update build-windows.md, remove linux lib deps installation line.
2023-10-07 07:40:08 -04:00
chromatic
e23f14c4eb
Merge pull request #3308 from patricklodder/1.14.7-fix-brew
build: bdb detection and configuration fixes for macOs/brew
2023-09-30 17:45:58 -07:00
sunerok
e80975d837
Update build-windows.md
remove misinformation, this belongs in the dogecoin/docs/build-unix.md page, not under cross compilation for windows. Installing these linux libraries and interfere with libs cross-compiled from /dogecoin/depends/packages m4's. This line can be put in the build-unix.md, but it definitely doesnt belong here.
2023-09-30 20:45:11 -04:00
chromatic
6197b988ff
Merge pull request #3322 from xanimo/1.14.7-utiltime
utiltime: refactor nMockTime and add getmocktime
2023-09-19 13:33:05 -07:00
chromatic
28fbf0f917
Merge pull request #3332 from AjaxPop/patch-2
Use nullptr instead of null
2023-09-19 13:17:31 -07:00
Skylar Loomis
98f56e142d
Use nullptr instead of null
Reasons for the change:

1) Type Safety:
nullptr is a keyword introduced in modern C++. It's designed to be type-safe, meaning it can only represent a null pointer value.

NULL, on the other hand, is typically defined as 0. It's a macro and is not type-safe. This means you can unintentionally assign NULL to an integer variable without any compiler warnings.

2) Explicit Null Pointer Value:
nullptr is explicitly defined to represent a null pointer value. It's clear and unambiguous.

NULL is usually defined as 0, which can lead to ambiguity. For instance, when comparing a pointer to an integer, it's unclear whether you're checking for a null pointer or a zero integer value.

3) Consistency with C++:
nullptr is consistent with the principles of modern C++. C++ is a strongly typed language, and nullptr is designed to be a type-safe representation of a null pointer.

NULL is a legacy from C and is essentially a macro for 0. It doesn't align as well with the type-safe nature of C++.
2023-09-18 08:40:36 -04:00
Old Dip Tracker
865e0f3664
Merge pull request #3327 from chromatic/qa-dogecoin-strings-in-output
Change Bitcoin to Dogecoin in QA output strings
2023-09-04 21:39:36 +02:00
chromatic
ed851804d7
Merge pull request #3309 from patricklodder/1.14.7-rpc-test-fix-verbosity
qa: also log named arguments when using `--tracerpc`
2023-08-31 22:28:12 -07:00
chromatic
96483e2551 Change Bitcoin to Dogecoin in QA output strings 2023-08-31 10:44:48 -07:00
Patrick Lodder
b09aa70cd8
build: fix bdb detection through brew
Fixes the detection of bdb on brew enabled systems by using
dogecoin_find_bdb53.m4 parametrization and checking if the
brew-located files actually work.

Searches brew installed packages in the order: 5.x, 4.x, default.

The reason for this order is that 4.x is still fully readable by
5.3.27NC that is distributed by default, and therefore prefered
over newer-than 5.x versions.
2023-08-30 19:33:15 -04:00
Patrick Lodder
a32eb2629e
build: check bdb includes/libs even if overridden 2023-08-30 19:33:14 -04:00
chromatic
836753eb6e
Merge pull request #3301 from patricklodder/1.14.7-remove-boost-sharedptr
replace boost::shared_ptr with std::shared_ptr
2023-08-30 16:03:07 -07:00
Dakoda Greaves
dd2bc7261e
utiltime: refactor nMockTime and add getmocktime
-adds simple qa test to verify getmocktime works
2023-08-29 13:37:33 -07:00
Patrick Lodder
0906eb7ea2
qa: also log named arguments when using --tracerpc
This logs either positional arguments or named arguments if no
positional arguments exist when using --tracerpc to allow deep
examination of calls that use named arguments.

The __call__ function rejects any calls made using both positional
and named arguments, therefore we can print either in this
construction.
2023-08-29 07:47:45 -04:00
Old Dip Tracker
0014ad2867
Merge pull request #3318 from itsajay1029/BTC_Placeholders_replaced
replaced BTC with DOGE
2023-08-28 19:19:48 +02:00
Old Dip Tracker
185096b9c0
Merge pull request #3307 from alamshafil/getblock-lock
rpc: Serialize in getblock without cs_main
2023-08-27 00:56:10 +02:00
Ajay Chowdhury
97b6370c8b replaced BTC with DOGE 2023-08-19 12:56:36 +05:30
alamshafil
2f72f273d7
rpc: Serialize in getblock without cs_main 2023-08-08 22:48:13 -04:00
Old Dip Tracker
71d3451f18
Merge pull request #3306 from alamshafil/getblock-qa
qa: Add getblock test
2023-08-08 00:32:53 +02:00
alamshafil
34bfe64748
Test backward-compatibility 2023-08-04 11:24:02 -04:00
alamshafil
714e586978
qa: Add getblock test 2023-08-03 00:16:56 -04:00
Old Dip Tracker
85ee858d14
Merge pull request #3299 from alamshafil/update-getblock
rpc: Add verbosity levels to getblock
2023-07-27 17:10:57 +02:00
Patrick Lodder
0d39941515
mining: replace boost::shared_ptr with std::shared_ptr
Throughout the codebase we use std::shared_ptr, except for some
instances in the miner code, where we use boost::shared_ptr for
sharing a wallet address with the miner and rpc across threads.

This patch removes all usage of boost::shared_ptr to instead use
std::shared_ptr, to reduce exposure to multiple shared pointer
implementations.
2023-07-17 12:09:44 -04:00
alamshafil
cc4bffc0d6
rpc: Add verbosity levels to getblock 2023-07-11 14:45:42 -04:00
Old Dip Tracker
4c441c1e8f
Merge pull request #3235 from chromatic/add-height-to-importaddress
Add optional `height` to `importaddress`
2023-07-07 05:03:57 -04:00
chromatic
fc66af47f4
Merge pull request #3292 from patricklodder/1.14.7-track-depends-patches
maint: don't ignore legit patches
2023-07-05 13:50:15 -07:00