14063 Commits

Author SHA1 Message Date
chromatic
b277b68eb4 Set maximum/minimum connection thresholds
This uses the constant in src/net.h for the minimum allowed number of
connections.

The limit of new max connections is silently capped to the number of
available file descriptors. This value is not exposed in the UI or
RPC messages so as not to leak interesting or important system details.

The floor of maximum connections is set to the number of connections
required for this node to operate.
2022-05-04 17:38:03 -07:00
chromatic
4b5dcc77f6 Reduce number of connections, if needed
This makes the best attempt to reduce the number of connections by
reusing the eviction logic. This reuses the core of that algorithm at
the expense of deterministic behavior. In other words, starting with a
max connections value of 125 and then changing the max connections to 3
does not mean that this will immediately evict 122 connections.

Eventually the number of connections will reduce to the limit.

While the body of the condition will add latency to network processing,
the integer comparison between max connections and size of the
connections vector should be quick in most cases.

Note the extraction of connection disconnect/delete helpers so as to
reuse the same logic in multiple places. While this may not be strictly
necessary for the algorithm, it reduces the possibility that this entire
loop will get stuck doing busy work when trying to evict connections to
get under the maximum threshold.
2022-05-04 17:38:03 -07:00
chromatic
d871cda81a Add RPC command to set max connections 2022-05-04 17:38:03 -07:00
Old Dip Tracker
10c294d2eb
Merge pull request #2937 from edtubbs/1.14.6-dev
Added declaration check for sha512 on armv82
2022-05-01 08:18:13 -06:00
Ed Tubbs
7f4f3450e1 Added declaration check for vsha512su0q_u64 2022-04-29 05:30:10 +00:00
Old Dip Tracker
ecdba76ab3
Merge pull request #2882 from patricklodder/1.14.6-armv82crypto
build: work around ubuntu:focal libgcc-9-dev-arm64-cross issue
2022-04-27 12:32:58 -06:00
Old Dip Tracker
983ce7720f
Merge pull request #2909 from patricklodder/1.14.6-fix-rest
fix rest/getutxos endpoint for usage without mempool
2022-04-27 12:32:08 -06:00
Old Dip Tracker
c6a285828e
Merge pull request #2923 from alamshafil/prune-ui
Qt: Add prune setting to OptionsDialog
2022-04-24 23:13:42 -06:00
alamshafil
71f5e6c488 Qt: Add prune setting to OptionsDialog
Make default prune size 3GB

Use GiB and MiB

Add DEFAULT_PRUNE_TARGET_GB

PruneMiBtoGB & PruneGBtoMiB
2022-04-17 16:34:55 -04:00
Old Dip Tracker
0e02aea03a
Merge pull request #2870 from chromatic/add-lupdate-to-translation-policy
Add lupdate to translation policy
2022-04-10 15:55:42 -04:00
chromatic
67c7fefcf8 Improve translation policy
This change separates the `make translate language=...` and `make
translate_base` Makefile targets. The former is useful for translators
and the latter for core developers.

This change also rearranges flags to `lupdate` to improve utility for
both cases.

Finally, this change also documents these targets and gives more advice
on how to use them.
2022-04-07 15:56:25 -07:00
Patrick Lodder
da0e46a5a8
build: work around ubuntu focal gcc-9 arm cross issue
Ubuntu's libgcc-9-dev-arm64-cross on focal is broken: it misses
patch 8c92fcb13a4979232787f0476bf7469ccbb03617 that fixes a
mismatched "extern C" block in arm_acle.h.

We provide the patched header file in src/compat and include a
selector for it. Whenever we detect GCC 9.4, we include the
imported header rather than the system provided, broken header.

This patch can be reverted when Ubuntu has fixed
libgcc-9-dev-arm64-cross.
2022-04-07 16:17:08 +02:00
Patrick Lodder
88e841b933
Revert "qa: remove experimental ci for aarch64 sha512"
This reverts commit b4632e92e6594b22db48a453106ac0e71ede22b3.
2022-04-07 16:16:50 +02:00
Roman Zeyde
285254989d
[rest] Test UTXO retrieval when ignoring the mempool
Current REST API always returns empty UTXO when invoked without
`/checkmempool/` URL part.

Cherry-picked from: bitcoin/bitcoin 9cb9af8c
Conflicts: limited scope to only the QA test, as rest.cpp
           implementation is incompatible with Dogecoin 1.14
2022-04-06 10:36:40 +02:00
Patrick Lodder
7e727174d5
[rest] fix rest/getutxos endpoint for usage without mempool
The chain-only view from pcoinsTip was only assigned when the user
queried inclusive of mempool, but when queried without, the view
only contained an empty dummy.
2022-04-06 10:36:40 +02:00
Old Dip Tracker
08d2d5173b
Merge pull request #2754 from sinetek/displaymb
Network Tab Maximum Granularity.
2022-04-06 03:25:56 -04:00
Old Dip Tracker
4008d95e53
Merge pull request #2895 from motahharm/master
Simple edit README.md and README_zh_CN.md
2022-04-06 03:25:17 -04:00
Old Dip Tracker
9c79c2de2f
Merge pull request #2860 from patricklodder/1.14.6-fix-binresponse
[qa] fix binary response parsing in rest test
2022-04-06 03:24:52 -04:00
Old Dip Tracker
d5b1719880
Merge pull request #2869 from jadijadi/fix/issue-2530-Persian-translation
Fixing Persian Translation; mainly repalcing Bitcoin with Dogecoin
2022-04-06 03:24:22 -04:00
Old Dip Tracker
f78b4b35e7
Merge pull request #2907 from patricklodder/1.14.6-rm-sha512-exp-ci
qa: remove experimental ci for aarch64 sha512
2022-04-06 03:22:59 -04:00
Patrick Lodder
b4632e92e6
qa: remove experimental ci for aarch64 sha512
Remove the CI for aarch64-linux-sha512-experimental because it
errors out.
2022-04-05 09:54:06 +02:00
Motahhar Mokf
77a364cb21
Update README_zh_CN.md 2022-03-29 20:46:05 +04:30
Motahhar Mokf
c1d0dbc4e3
Update README.md 2022-03-29 20:42:43 +04:30
Jadi
c1f4007c24 Fixing Persian Translation; mainly repalcing Bitcoin with Dogecoin
This fixes issue #2530 by running the `lupdate` and then reviewing the
strings. What is done is 1. replacing references to Bitcoin with Dogecoin,
2. fixing some minor typos and 3. translating some of the new strings (like tips)
2022-03-06 06:14:17 -05:00
Patrick Lodder
cdc98a32ec
[qa] fix binary response parsing in rest test
Removing rstrip() from response parsing because it removes 0x20,
which can be a legitimate first byte of a block hash
2022-02-20 21:40:23 +01:00
Old Dip Tracker
d483dfba80
Merge pull request #2745 from vertiond/install_db5
Add install_db5.sh and update build-unix
2022-02-17 15:16:04 -04:00
Patrick Lodder
2a6421f79d
Merge pull request #2770 from just-an-dev/add-blockhashbyheight-to-rest-interface
add blockhashbyheight to rest interface
2022-02-13 22:30:57 -04:00
Ross Nicoll
cdeca5d581
Merge pull request #2843 from patricklodder/1.14.6-sdk-mirror
qa: change download location and harden process for SDKs in CI
2022-02-13 19:45:56 +00:00
Patrick Lodder
a38e8bfff5
qa: harden SDK usage in GH Actions CI
- Check SDK shasum to protect against supply-chain attacks
- Don't re-download the SDK archive when we have it in cache
- Purge the cache when the CI configuration changes
2022-02-12 20:19:41 +01:00
Patrick Lodder
556c586ece
qa: Change CI source of macOS sdk dependency
Moves SDK file from bitcoincore.org to depends.dogecoincore.org to
further reduce dependencies on the former.
2022-02-12 20:19:40 +01:00
Ross Nicoll
8fecf8d732
Merge pull request #2842 from patricklodder/1.14.6-dogecoincore-org-mirror
depends: change fallback to depends.dogecoincore.org
2022-02-12 18:07:42 +00:00
Patrick Lodder
2c7772e906
depends: change fallback to depends.dogecoincore.org
Changes the fallback dependency source repository from Bitcoin's
bitcoincore.org to dogecoincore.org. Both are centrally hosted,
as a fallback. Ideally this would be utilizing a decentralized
protocol like IPFS, but this is harder to integrate with the CI
tooling.

Note: because some dependencies have identical filenames in their
source URLs (currently ds_store and mac_alias) we host the target
filename on the mirror, to prevent conflicts.
2022-02-12 17:45:54 +01:00
Patrick Lodder
24a20ed523
Merge pull request #2778 from chromatic/fix-qt-high-dpi-scaling
Fix QT high DPI scaling
2022-01-20 09:44:23 -04:00
Patrick Lodder
3024da3d6b
Merge pull request #2765 from rnicoll/1.14.6-fix-wallet-charbool
Fix Char as Bool in interfaces
2022-01-20 09:43:31 -04:00
Patrick Lodder
646b1149dc
Merge pull request #2779 from dogespacewizard/patch-2
Partial Translations for Korean
2022-01-16 18:17:19 -04:00
dogespacewizard
01f9baea35 a couple more additional translations im able to do 2022-01-10 23:39:56 +09:00
Ross Nicoll
8b222213b3
Merge pull request #2791 from iam-agf/svg-pixmaps
Svg files added (16,32,64,128,256)
2022-01-08 15:52:37 +00:00
iamagf
038bcfe03e Svg files added (16,32,64,128,256) 2022-01-06 19:13:20 -06:00
just-an-dev
5f5efffd11 add blockhashbyheight to rest interface 2022-01-04 00:47:22 +01:00
Patrick Lodder
94d7e452be
Merge pull request #2784 from bskrksyp9/patch-1
Fix typo in Readme doc
2021-12-28 13:59:02 -04:00
Bhaskar Kashyap
a597fd2821
Fix typo in Readme doc
Corrected spelling of a word
2021-12-28 07:51:46 +05:30
dogespacewizard
330c9c7ad4
Update bitcoin_ko_KR.ts 2021-12-25 19:28:25 +09:00
dogespacewizard
9e45c10449
Partial Translations for Korean
not a coder, ive added some translations for some lines that weren't translated i dont understand some of the stuff so i've left these untouched
2021-12-25 19:26:09 +09:00
chromatic
dae2b2626f Initialize Qt high DPI scaling appropriately
Refers to Bitcoin PR16524 by hebasto:

https://github.com/bitcoin/bitcoin/pull/16254

Addresses GH #2776.
2021-12-24 23:43:43 -08:00
Ross Nicoll
a8026ba7d5
Merge pull request #2768 from patricklodder/1.14.6-scrypt-bench
bench: add scrypt
2021-12-22 19:49:41 +00:00
Patrick Lodder
96af810b53
bench: add scrypt
Add an scrypt benchmark that hashes 80 byte inputs (size of a
block header)
2021-12-20 15:45:15 -04:00
Jeremy Rubin
3f64119177 Fix Char as Bool in interfaces 2021-12-19 18:08:04 +00:00
Ross Nicoll
da8dae3eb3
Merge pull request #2756 from patricklodder/1.14.6-fix-nlocktime-leak
Avoid leaking locktime fingerprint when anti-fee-sniping
2021-12-19 16:45:59 +00:00
Ross Nicoll
190d48e487
Merge pull request #2757 from patricklodder/1.14.6-uninit-scopeid
net: Ensure every CNetAddr constructor initializes the scopeId field
2021-12-19 11:50:47 +00:00
Ross Nicoll
e4e3371b6f
Merge pull request #2759 from patricklodder/1.14.6-initialize-counters
net: avoid uninitialized reads on counters
2021-12-19 11:36:28 +00:00