Skip to content

Conversation

@fanquake
Copy link
Member

@fanquake fanquake commented Apr 12, 2018

Backports:

to the 0.16 branch.

@fanquake fanquake changed the title backport: #12626, #12650, #12487 [0.16] backport: #12626, #12650, #12487 Apr 12, 2018
@fanquake fanquake added this to the 0.16.1 milestone Apr 12, 2018
src/init.cpp Outdated
Copy link
Member

Choose a reason for hiding this comment

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

This setting is now in here twice.

Also, I think it would make more sense to backport #12756 instead, since it was already "removed" earlier (due to being ignored because of a typo).

@maflcko
Copy link
Member

maflcko commented Apr 12, 2018

ACK the gui changes. Also thanks for doing the backports!

@fanquake fanquake changed the title [0.16] backport: #12626, #12650, #12487 [0.16] backport: #12626, #12650, #12756 Apr 16, 2018
@sdaftuar
Copy link
Member

Neither of these are clean cherry-picks, unfortunately, but I thought I'd suggest backporting #12904 and #12902, both of which cause spurious test failures for me (I run the tests on the 0.16 branch regularly).

@fanquake fanquake changed the title [0.16] backport: #12626, #12650, #12756 [0.16] Backports Apr 18, 2018
@Michagogo
Copy link
Contributor

@fanquake
Copy link
Member Author

fanquake commented Apr 18, 2018

Test changes are happening in #13049.

@maflcko maflcko mentioned this pull request Apr 20, 2018
maflcko pushed a commit that referenced this pull request Apr 24, 2018
41c29f6 qa: Fix python TypeError in script.py (MarcoFalke)
7460945 [qa] Delete cookie file before starting node (Suhas Daftuar)
0a76ed2 qa: Cache only chain and wallet for regtest datadir (MarcoFalke)
6c26df0 [qa] Ensure bitcoind processes are cleaned up when tests end (Suhas Daftuar)
df38b13 [tests] Test starting bitcoind with -h and -version (John Newbery)
4bdb0ce [tests] Fix intermittent rpc_net.py failure. (John Newbery)
0e98f96 test: Use wait_until in tests where time was used for polling (Ben Woosley)
1286f3e test: Use wait_until to ensure ping goes out (Ben Woosley)
cfebd40 [test] Round target fee to 8 decimals in assert_fee_amount (Karl-Johan Alm)

Pull request description:

  Similar to #12967 this contains all relevant bugfixes and improvements to the functional test suite.

  I didn't include fixes to make the tests run on Windows, since that is still an ongoing effort and doesn't seem worth to backport.

  As all of these are clean cherry-picks, I suggest reviewers redo the cherry-picks to get the same branch and then run the extended test suite.

Tree-SHA512: 70e1bc28d5572f93796f1ac4d97d77e8146869c15dcc1e3b65a730fa2641283050f769cefd9791d800c758e0a92f11fd55ed0797ccec87b897c7e701d0187f34
EthanHeilman and others added 7 commits April 26, 2018 23:43
A risk exists where a malicious DNS seeder eclipses a node by returning an enormous number of IP addresses. In this commit we mitigate this risk by limiting the number of IP addresses addrman learns to 256 per DNS seeder.

GitHub-Pull: bitcoin#12626
Rebased-From: 46e7f80
The blockmaxsize option was marked as deprecated in V0.15.1, and code
was added to convert provided blockmaxsize into blockmaxweight. However,
this code was incorrectly implemented, and blockmaxsize was silently
ignored.

No users have complained about blockmaxsize being ignored, so just
remove it in V0.17.

GitHub-Pull: bitcoin#12756
Rebased-From: 4757c04
The Bitcoin Core NSIS script runs with elevated privileges.  Unfortunately, this means that it launches Bitcoin Core itself with elevated privileges when the user chooses to launch Bitcoin Core at the end of the installation procedure.  This commit works around the issue by having explorer.exe launch Bitcoin Core.  Seems to be a similar approach to what http://nsis.sourceforge.net/ShellExecAsUser_plug-in does, but without a plugin.

h/t to "UK" at https://mdb-blog.blogspot.se/2013/01/nsis-lunch-program-as-user-from-uac.html?showComment=1410158039989#c2463780017054126736 for the sample code.

Fixes bitcoin#7990.

GitHub-Pull: bitcoin#12985
Rebased-From: 7d8a8cc
While this isn't a supported build configuration, some build
systems need to build without going through our autotools steps,
so defaulting to something sane may make it easier to build.

Specifically, this fixes the inability to build
rust-bitcoinconsensus on some non-x86 platforms. It needs to build
without our autotools/configure steps to ensure correct compile
args are passed from the rust build system to gcc. Converting the
args from the rust build system to gcc would be a lot of
unmaintainable work.

GitHub-Pull: bitcoin#12998
Rebased-From: 150b2f0
@fanquake
Copy link
Member Author

I've added #12998 as suggested by @TheBlueMatt here.

@laanwj
Copy link
Member

laanwj commented Apr 26, 2018

Regarding the NSIS bit, this may not be a good idea: https://mdb-blog.blogspot.com/2013/01/nsis-lunch-program-as-user-from-uac.html?showComment=1388694317801#c939517856791332836

Well it's much better than launching as admin, even if it is a solution that only works for current windows. In the longer run might be better to remove that option completely (but that should happen on master, not on the backport here).

@maflcko
Copy link
Member

maflcko commented Apr 26, 2018

Agree with @laanwj. Will review the diffs before todays meeting

@laanwj
Copy link
Member

laanwj commented Apr 26, 2018

utACK 7847b92

@maflcko
Copy link
Member

maflcko commented Apr 26, 2018

utACK 7847b92 (Did cherry-picks of all commits that were mentioned in "Rebased-From:" and compared for each that the code diff was zero. Didn't look at the commit messages)

@maflcko
Copy link
Member

maflcko commented Apr 26, 2018

@fanquake Could you please manually remove the blockmaxsize option in init.cpp, since git's cherry-pick couldn't do that due to a merge conflict?

@maflcko
Copy link
Member

maflcko commented Apr 30, 2018

@fanquake Are you still working on this?

You can find it with git checkout 7847b926057b46a5c01e1033f64f6f61dbf3d88f && git grep blockmaxsize src

Just adding a commit on top of this branch is fine (does not invalidate review)

@fanquake
Copy link
Member Author

fanquake commented Apr 30, 2018 via email

@maflcko
Copy link
Member

maflcko commented May 1, 2018

Thanks. re-ACK 9645aa6

@ken2812221
Copy link
Contributor

utACK 8fca086

@laanwj laanwj merged commit 8fca086 into bitcoin:0.16 May 16, 2018
laanwj added a commit that referenced this pull request May 16, 2018
8fca086 List support for BIP173 in bips.md (Pieter Wuille)
9645aa6 Remove blockmaxsize option from init.cpp (fanquake)
7847b92 Default to defining endian-conversion DECLs in compat w/o config (Matt Corallo)
1720eb3 qt:Show the entire Window when double clicking on taskbar (Chun Kuan Lee)
e055bc0 depends: Fix Qt build with XCode 9.3 (fanquake)
0684cf9 Avoid launching as admin when NSIS installer ends. (JeremyRand)
e802c22 [config] Remove blockmaxsize option (John Newbery)
f118a7a Fix illegal default `addProxy` and `addrSeparateProxyTor` settings. (251)
f60e84d Limit the number of IPs we use from each DNS seeder (e0)

Pull request description:

  Backports:
  - #12626 Limit the number of IPs addrman learns from each DNS seeder
  - #12650 gui: Fix issue: "default port not shown correctly in settings dialog"
  - #12756 [config] Remove blockmaxsize option
  - #12985 Windows: Avoid launching as admin when NSIS installer ends.
  - #12946 depends: Fix Qt build with XCode 9.3
  - #12998 Default to defining endian-conversion DECLs in compat w/o config
  - #12999 qt: Show the Window when double clicking the taskbar icon
  - #13064 List support for BIP173 in bips.md

  to the 0.16 branch.

Tree-SHA512: 3e6b47c54b2cd2bdd81fbc6176cb31e46423f6e05988984d3a09b3535e3cee101ffb071cf753a4beff3c9f0521eb5de4b7c0424a3e97da801d56b4015847ac0f
@fanquake fanquake deleted the backport-12626 branch January 22, 2020 11:29
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.