14378 Commits

Author SHA1 Message Date
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
Ed Tubbs
49fdaa19dc depends: updated to protobuf 3.6.1 2023-10-28 17:25:05 +00: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
chromatic
083ab1c096 Add optional height to importaddress
This follows the same pattern as other import RPC calls and uses the
same codepath.
2023-07-04 11:19:22 -07:00
Patrick Lodder
733c43c80c
don't ignore legit patches 2023-07-04 05:24:36 -04:00
Old Dip Tracker
f3f087a281
Merge pull request #3286 from chromatic/payment-server-no-datadir
Allow PaymentServer a parametric server name
2023-06-30 09:24:52 -04:00
chromatic
1c0cab74dd Allow PaymentServer a parametric server name
While the default server name is almost always what we want, given that
it is unique to main or testnet and the default data directory,
defaulting to this value during tests is not always what we want,
especially if there's production data or the path is not available
(think of a CI system).

Switch the test to provide a fixed server name at the point of
constructing the PaymentServer object.

Addresses GH #3285.
2023-06-28 14:25:08 -07:00
chromatic
502a8a93ce
Merge pull request #3222 from patricklodder/1.14.7-focal
build: use Ubuntu Focal for depends, ci and gitian releases
2023-06-28 14:24:13 -07:00
Patrick Lodder
e1c688dfd2
compat: link librt even if it is not needed on build host
glibc absorbed clock_gettime in 2.17. To retain backward
compatibility with systems that package glibc < 2.17, we need to
include it anyway. Until gcc-7, librt still got included with all
relevant symbols, so there was no issue and we could just use
that instead of gcc-native clock_gettime.

Since gcc-9, we need to explicitly add lrt outside the scope of
"as-needed" packages, because ld finds no reason to add a
DT_NEEDED tag for it, despite our inclusion, as the function
gets pulled from libc.so.6. Therefore, we:

1. disable "as-needed"
2. add librt
3. re-enable "as-needed" again

This way, we both force include librt, but still not link any
other unneeded libraries.

Because this is only valid for backward compatible binaries where
our build system is newer than the oldest supported OS (i.e. when
cross-compiling, running CI or gitian built releases) the -lrt flag
is now part of COMPAT_LDFLAGS instead of global "LIBS" when
configuring with --with-glibc-back-compat.

This explicit link can be removed when we drop support for glibc
versions < 2.17 (i.e. in the next major version)
2023-06-22 09:23:00 -04:00
Patrick Lodder
cb49fe3fe5
doc: depends is now maintained with ubuntu focal 2023-05-23 09:38:04 +02:00
Patrick Lodder
4b5bc2ac76
build: upgrade gitian descriptors to ubuntu focal
- update all suites to use focal
- update gcc to 9.x
- use lief wheel from https://pypi.org/project/lief/0.12.3/#files

Co-authored-by: Dakoda Greaves <dakoda@xanimo.net>
2023-05-23 09:38:04 +02:00
Dakoda Greaves
d488df5e5d
ci: add pre-install scripts
cause: msft/gha doesn't support the i386 winehq ppa, therefore we
have to use a workaround to download necessary i386 dependencies
for winehq-stable.

This adds winehq-focal.sources to and removes microsoft-prod.list
from the i686 build.

Implemented by the "add architecture" CI step into a script that
can now be customized per job.

Co-authored-by: Patrick Lodder <patricklodder@users.noreply.github.com>
2023-05-23 09:38:04 +02:00
Patrick Lodder
b65c56b0d8
ci: switch build hosts to focal
switches all CI process and codeql to use focal hosts
2023-05-23 09:37:23 +02:00
fanquake
0790ab75d1
depends: native_cctools 921, ld64 409.12, libtapi 1000.10.8
Co-Authored-By: Cory Fields <cory-nospam-@coryfields.com>
Cherry-picked from: ca5055a

Cherry-pick notes: undid the removal of -mlinker-version, as this
                   was done erroneously upstream
2023-05-05 17:55:54 +02:00
Dakoda Greaves
4ad7a450b9
depends: clang 6.0.1
This also removes some now-unnecessary cctools hacks.

Co-Authored-By: Cory Fields <cory-nospam-@coryfields.com>
2023-05-05 17:54:56 +02:00
Dakoda Greaves
4657f98839
compat: wrap fcntl and fcntl64 for 32-bit linux
On 32-bit platforms, glibc wraps fcntl to 64-bit address space
fcntl64, for reading files > 2GB. Since we don't open any files
of that size, we do not need this and can safely wrap to the old
32-bit fcntl.

Co-authored-by: Patrick Lodder <patricklodder@users.noreply.github.com>
2023-05-05 17:54:56 +02:00
Patrick Lodder
99cbe5129a
compat: wrap clock_gettime
wraps librt clock_gettime for backward compatibility with glibc
versions < 2.17.
2023-05-05 17:54:56 +02:00
Dakoda Greaves
87b1dc9300
compat: add interface overrides for libm
wraps pow.3 exp.3 and log.3 to explicitly use backward compatible
glibc symbols. this is needed to stay compatible with old linux
versions with minor releases
2023-05-05 17:54:56 +02:00
chromatic
f449518940
Merge pull request #3241 from Anish-M-code/1.14.7_dev_fix_p2p_feefilter
Update fee rate to 0.01 DOGE/kb in p2p-feefilter.py
2023-04-08 15:40:47 -07:00
ANISH M
32697ba1a8
Update fee rate to 0.01 DOGE/kb in p2p-feefilter.py
I have made an attempt to update fee rate in p2p-feefilter.py to recommended minimum transaction fee of 0.01 DOGE/kb to reflect fee rate changes made in 1.14.4 release , it is linked with issue #3201
2023-03-26 14:47:41 +05:30
chromatic
867f3bec3f
Merge pull request #3204 from patricklodder/1.14.7-better-binary-checks
devtools: backport modern security and symbol check tooling
2023-03-13 17:54:43 -07:00
chromatic
cd8dac2ec5
Merge pull request #3233 from JalinWang/1.14.7-dev_typo
fix some typos
2023-03-11 11:57:11 -08:00
Your Name
ca60d1e30b more typos 2023-03-09 14:25:14 +08:00