Skip to content

Conversation

glaksmono
Copy link
Contributor

@glaksmono glaksmono commented May 9, 2018

Take all of the functions that are specific to Windows or Unix, and create a common set of methods in a new header file, all combined in the src/util/ folder.

The goal of this PR is to break src/util.cpp and src/util.h into the following files:

For Windows:

  • src/util/platform_windows.h
  • src/util/platform_windows.cpp

For Mac & Linux:

  • src/util/platform_posix.h
  • src/util/platform_posix.cpp

Issue Reference: #12697

@fanquake
Copy link
Member

fanquake commented May 9, 2018

@glaksmono Thanks for wanting to work on #12697. For future reference, ideally [WIP] PRs should only be opened when some code has been written, and you need help/feedback in regards to code or design decisions. We don't really use them for "claiming" issues to work on, a comment in the relevant issue is enough for that. (they will also consume Travis resources unnecessarily).

@glaksmono
Copy link
Contributor Author

Got it @fanquake apologise. Will keep that in mind for the future.

ken2812221 and others added 9 commits May 9, 2018 17:23
9a75d29 change the error result from `PIE` to `DYNAMIC_BASE`. And there are no test for 64-bit, so I made one
self.nodes[0] creates an address which is watch-only-shared with self.nodes[3]. If nodes[0] spends the associated UTXO during any of its sends later, the watchonly test will fail, as nodes[3] now has insufficient funds.

Note that this also adds a new find_vout_for_address function to the test framework.
@glaksmono glaksmono closed this May 9, 2018
@glaksmono glaksmono deleted the bitcoin-12697 branch May 9, 2018 10:25
@glaksmono glaksmono restored the bitcoin-12697 branch May 9, 2018 10:26
@glaksmono glaksmono reopened this May 9, 2018
@glaksmono glaksmono closed this May 9, 2018
@glaksmono glaksmono deleted the bitcoin-12697 branch May 9, 2018 11:16
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants