14080 Commits

Author SHA1 Message Date
matheusbach
bd3500adcb set the wallet's discard threshold to 0.01 DOGE 2022-06-23 22:03:55 -03:00
Old Dip Tracker
6fd30245b4
Merge pull request #2956 from katesalazar/202205150706
Ignore bench_dogecoin
2022-05-17 10:02:10 -04:00
Old Dip Tracker
159786718f
Merge pull request #2912 from MishaBoar/master
Italian Translation Update
2022-05-17 10:01:44 -04:00
katesalazar
2229878cfa Ignore bench_dogecoin 2022-05-15 09:06:50 +00:00
MishaBoar
0bec3d4cd7 Added changes suggested, minor corrections to other phrases 2022-05-14 05:20:55 +02:00
Old Dip Tracker
23eb7b3cc0
Merge pull request #2947 from Maniixer/patch-1
Dutch/Flamish Translation Update
2022-05-13 19:28:02 -04:00
chromatic
4d837b2395
Merge pull request #2903 from thisiskeanyvy/master
Complete update of the French translation file (bitcoin_fr.ts)
2022-05-12 15:53:55 -07:00
Maniixer
d77d10c741
Update bitcoin_nl.ts
Changed Typo Saldi to Saldo.
Added translation to most of the type="unfinished" might have missed some.
2022-05-12 20:49:36 +02:00
Old Dip Tracker
bb5e476975
Merge pull request #2698 from chromatic/add-rpc-set-maxconnection
Add RPC command to set max connection count
2022-05-10 20:02:32 -06:00
thisiskeanyvy
1c990c770f
New translation of the French file (bitcoin_fr.ts) 2022-05-11 01:56:41 +02:00
chromatic
b37b7e655b Attempt to evict nodes to meet the max conn count
The algorithm here is important and took some time to get right. Instead
of comparing whether the current number of connected nodes minus the
number of unevictable nodes is greater than the number of max
connections, check that:

 * there are any evictable nodes (connected nodes minus unevictable
 nodes)
 * there are more nodes connected than requested (connected nodes minus
 max connections)

While we could wait for nodes to disconnect organically, it's more
important to run the eviction logic frequently enough that we can tell
when it will have an effect.

Whitelisted connections and protected inbound connections are
unevictable, and max connections should account for inbound connections.

Because the evictor will never evict protected inbound connections, the
maximum connection count should always be at least as large as the
protected connection count.

Note that the tests for this use a delay and test that the delay has not
expired. This helps improve determinism in the testing. Otherwise, a
strict test for a fixed number of disconnections is susceptible to
things like CPU jitter, especially when running through CI.

Patrick ran this test for 1000 runs on busy CPUs and saw no failures.
2022-05-08 11:43:42 -07:00
MishaBoar
3f4bd2700c Minor adjustments options menu 2022-05-05 05:29:06 +02:00
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
MishaBoar
b424e7ad09 Updated src/qt/bitcoin_locale.qrc to remove bitcoin_it_IT.ts language file 2022-05-04 19:20:10 +02:00
MishaBoar
830f3a5999 Updated src/Makefile.qt.include to remove bitcoin_it_IT.ts language file 2022-05-04 19:17:44 +02:00
MishaBoar
c6e907117e Deleted redundant Italian translation file 2022-05-02 04:37:20 +02:00
MishaBoar
06ba857ff2 Additional minor adjustments. 2022-05-02 04:21:33 +02: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
Mishaboar
887a02f099 Full italian translation update 2022-04-18 19:14:33 +02: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