Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport] 5.4.0 backports #2678

Merged
merged 37 commits into from
Dec 15, 2021
Merged

[Backport] 5.4.0 backports #2678

merged 37 commits into from
Dec 15, 2021

Conversation

random-zebra and others added 18 commits December 11, 2021 11:41
-BEGIN VERIFY SCRIPT-
sed -i -e 's/boost::optional/Optional/g' -e 's/boost::none/nullopt/g' -e 's?#include <boost/optional.hpp>?#include "optional.h"?g' src/sapling/*.h src/sapling/*.cpp src/util/system.h src/wallet/test/wallet_shielded_balances_tests.cpp;
-END VERIFY SCRIPT-

Github-Pull: bitcoin#2642
Rebased-From: d74cd79
by moving GetLastCheckpoint() to validation.cpp
Github-Pull: bitcoin#2643
Rebased-From: 9b97cf0
by moving CCheckpointData into chainparams.h (as per
bitcoin/bitcoin@f0deec5)
Github-Pull: bitcoin#2643
Rebased-From: 50fb779
by moving GetKeyIDFromUTXO to blocksignature.cpp, which is the only
place using it
Github-Pull: bitcoin#2644
Rebased-From: e55b0dc
Note locking is not yet implemented, as such there is no reason to show
any of the locking related actions in the coin control dialog.

Github-Pull: bitcoin#2662
Rebased-From: f05bd1b
Cleans up some instances of duplicate item names, which results in
build-time warnings.

Github-Pull: bitcoin#2663
Rebased-From: 943159e
When there are enough proposals to need the GUI to scroll down to see
them all, the location of the tooltip menu gets skewed to the point of
it not being visible. This is because it's location was being based on
the initial position of the proposal card, even for off-screen ones.

This fixes the issue by taking the scrollarea's vertical scrollbar value
 into consideration.

Github-Pull: bitcoin#2664
Rebased-From: 4ba2c4c
Previously, the governance nav button was not showing the same
background color as the rest of the nav buttons. This fixes it to be
the same as the others.

Also slightly increase the size of the icon.

Github-Pull: bitcoin#2665
Rebased-From: b801219
@furszy furszy self-assigned this Dec 11, 2021
@random-zebra random-zebra added this to the 5.4.0 milestone Dec 14, 2021
TheBlueMatt and others added 9 commits December 14, 2021 10:53
This resolves a bug introduced in
66aa1d5 where, if when responding
to a series of transaction requests in a getdata we hit the send
buffer limit and set fPauseSend, we will skip one transaction per
call to ProcessGetData.

Bug found by Cory Fields (@theuni).

Github-Pull: bitcoin#2677
Rebased-From: 3355026
no functional change.

Github-Pull: bitcoin#2659
Rebased-From: fd7d569
if we received for example a single proposal +50 seconds ago, then once the budget sync starts (right after this call),
it will look like the sync is finished. Will not wait to receive any budget data and declare the sync over.

Github-Pull: bitcoin#2659
Rebased-From: 7349750
MNW initial sync is mostly for historical reasons, get +20k items per peer (+120k items total for the previous threshold of 6) is a high amount of duplicated data relayed over the wire. 89k is still very high but.. it's something that we have to live with until v6.0.

Github-Pull: bitcoin#2659
Rebased-From: 7020310
…s flow.

As we are increase the `RequestedMNAttempt` right after calling `SwitchToNextAsset()`, the mn list sync starts with an invalid extra sync attempt.

Github-Pull: bitcoin#2659
Rebased-From: 2c3b0e8
Before, this function was being totally skipped for the tiertwo_networksync dispatcher function. The dispatcher internally processes `syncstatusaccount` messages and return true, which means that the message was processed, there by, it was never reaching the `masternodeSync.ProcessMessage` call in net_processing.

Github-Pull: bitcoin#2659
Rebased-From: ae28000
…ngle budget finalization.

Neither block them if it's us who started the budget sync process.

Co-authored-by: random-zebra <random.zebra@protonmail.com>

Github-Pull: bitcoin#2659
Rebased-From: 5f596b8
…ed to broadcast an inv if the peer is asking for the item directly..) and stop walking through the two maps (budgets and proposals), locking their mutexes, when the peer is requesting a single proposal/budfin.

Github-Pull: bitcoin#2659
Rebased-From: 31e40a4
furszy and others added 10 commits December 14, 2021 10:53
…al vote reception and single finalization sync based on an orphan finalization vote.

Github-Pull: bitcoin#2659
Rebased-From: 32196b1
…a single vote, discarding the previous stored item every time that a new orphan arrives. Blocking any follow-up reception of the orphan votes that were discarded, prohibiting its connection forever.

Github-Pull: bitcoin#2659
Rebased-From: 62e9f5e
…(1) single items sync requests and (2) full budget sync requests.

Github-Pull: bitcoin#2659
Rebased-From: 62ae606
…reset.

The seen maps are used to answer inventory requests (to get the item serialized without locking the main budget maps mutexes). If they are cleared prior to the full budget invs relay, the node will not be able to respond to any follow-up getdata..

Plus, decrease full budget data relay to be done once per week instead of once every 14 days.

Github-Pull: bitcoin#2659
Rebased-From: 34e9c23
Essentially a node dropping the budget data and waiting until any of the connected peers relays the complete budget data once more (this happens every 28 blocks in regtest).

Github-Pull: bitcoin#2659
Rebased-From: d60a105
And clear the orphan maps as well.

Github-Pull: bitcoin#2659
Rebased-From: 6f79df3
nMaxInbound might very well be 0 or -1, if the user prefers to keep
a small number of maxconnections.

Note: nMaxInbound of -1 means that the user set maxconnections
to 8 or less, but we still want to keep an additional slot for
the feeler connection.

Github-Pull: bitcoin#2682
Rebased-From: 72dfebb
@furszy
Copy link
Author

furszy commented Dec 14, 2021

Added 2659, 2677 and 2682.

Ready to go now.

Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK c9b1909

Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK c9b1909

@furszy furszy merged commit 0706a79 into PIVX-Project:5.4 Dec 15, 2021
furszy added a commit that referenced this pull request Dec 18, 2021
47590ba Doc: v5.4.0 release notes (furszy)

Pull request description:

  Final release notes for the coming v5.4.0 release.

  Note: #2678 is still pending.

ACKs for top commit:
  random-zebra:
    utACK 47590ba
  Fuzzbawls:
    ACK 47590ba

Tree-SHA512: fe4983ee9b3cb32911e373cbedb69d9bf904e0e54e03556e3dc00aff0e1c62ee913fc4e2cde3d0bc1f94553d0c509b65181cf7163034b81a3fa8b34e1b8cd882
@furszy furszy deleted the 2021_5.4_backports branch November 29, 2022 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants