forked from domob1812/namecoin-core
-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
143 changed files
with
1,357 additions
and
783 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
contrib/devtools/bitcoin-tidy/example_nontrivial-threadlocal.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#include <string> | ||
thread_local std::string foo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// Copyright (c) 2023 Bitcoin Developers | ||
// Distributed under the MIT software license, see the accompanying | ||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
#include "nontrivial-threadlocal.h" | ||
|
||
#include <clang/AST/ASTContext.h> | ||
#include <clang/ASTMatchers/ASTMatchFinder.h> | ||
|
||
|
||
// Copied from clang-tidy's UnusedRaiiCheck | ||
namespace { | ||
AST_MATCHER(clang::CXXRecordDecl, hasNonTrivialDestructor) { | ||
// TODO: If the dtor is there but empty we don't want to warn either. | ||
return Node.hasDefinition() && Node.hasNonTrivialDestructor(); | ||
} | ||
} // namespace | ||
|
||
namespace bitcoin { | ||
|
||
void NonTrivialThreadLocal::registerMatchers(clang::ast_matchers::MatchFinder* finder) | ||
{ | ||
using namespace clang::ast_matchers; | ||
|
||
/* | ||
thread_local std::string foo; | ||
*/ | ||
|
||
finder->addMatcher( | ||
varDecl( | ||
hasThreadStorageDuration(), | ||
hasType(hasCanonicalType(recordType(hasDeclaration(cxxRecordDecl(hasNonTrivialDestructor()))))) | ||
).bind("nontrivial_threadlocal"), | ||
this); | ||
} | ||
|
||
void NonTrivialThreadLocal::check(const clang::ast_matchers::MatchFinder::MatchResult& Result) | ||
{ | ||
if (const clang::VarDecl* var = Result.Nodes.getNodeAs<clang::VarDecl>("nontrivial_threadlocal")) { | ||
const auto user_diag = diag(var->getBeginLoc(), "Variable with non-trivial destructor cannot be thread_local."); | ||
} | ||
} | ||
|
||
} // namespace bitcoin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright (c) 2023 Bitcoin Developers | ||
// Distributed under the MIT software license, see the accompanying | ||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
#ifndef NONTRIVIAL_THREADLOCAL_CHECK_H | ||
#define NONTRIVIAL_THREADLOCAL_CHECK_H | ||
|
||
#include <clang-tidy/ClangTidyCheck.h> | ||
|
||
namespace bitcoin { | ||
|
||
// Warn about any thread_local variable with a non-trivial destructor. | ||
class NonTrivialThreadLocal final : public clang::tidy::ClangTidyCheck | ||
{ | ||
public: | ||
NonTrivialThreadLocal(clang::StringRef Name, clang::tidy::ClangTidyContext* Context) | ||
: clang::tidy::ClangTidyCheck(Name, Context) {} | ||
|
||
bool isLanguageVersionSupported(const clang::LangOptions& LangOpts) const override | ||
{ | ||
return LangOpts.CPlusPlus; | ||
} | ||
void registerMatchers(clang::ast_matchers::MatchFinder* Finder) override; | ||
void check(const clang::ast_matchers::MatchFinder::MatchResult& Result) override; | ||
}; | ||
|
||
} // namespace bitcoin | ||
|
||
#endif // NONTRIVIAL_THREADLOCAL_CHECK_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
commit 0e953866fc4672486e29e1ba6d83b4207e7b2f0b | ||
Author: fanquake <[email protected]> | ||
Date: Tue Aug 18 15:09:06 2020 +0800 | ||
Do not assume FHS in scripts | ||
|
||
Don't hardcode pwd path | ||
On systems that do not follow the Filesystem Hierarchy Standard, such as | ||
guix, the hardcoded `/bin/pwd` will fail to be found so that the script | ||
will fail. | ||
|
||
Let a man use his builtins if he wants to! Also, removes the unnecessary | ||
assumption that pwd lives under /bin/pwd. | ||
Use `pwd`, instead, so that the command can be found through the normal | ||
path search mechanism. | ||
|
||
See #15581. | ||
See https://github.com/qt/qtbase/commit/3388de698bfb9bbc456c08f03e83bf3e749df35c. | ||
|
||
diff --git a/qtbase/configure b/qtbase/configure | ||
index 08b49a8d..faea5b55 100755 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Build | ||
----- | ||
|
||
GCC 11.1 or later, or Clang 15+ or later, | ||
GCC 11.1 or later, or Clang 16.0 or later, | ||
are now required to compile Bitcoin Core. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
26.2 Release Notes | ||
================== | ||
|
||
Bitcoin Core version 26.2 is now available from: | ||
|
||
<https://bitcoincore.org/bin/bitcoin-core-26.2/> | ||
|
||
This release includes new features, various bug fixes and performance | ||
improvements, as well as updated translations. | ||
|
||
Please report bugs using the issue tracker at GitHub: | ||
|
||
<https://github.com/bitcoin/bitcoin/issues> | ||
|
||
To receive security and update notifications, please subscribe to: | ||
|
||
<https://bitcoincore.org/en/list/announcements/join/> | ||
|
||
How to Upgrade | ||
============== | ||
|
||
If you are running an older version, shut it down. Wait until it has completely | ||
shut down (which might take a few minutes in some cases), then run the | ||
installer (on Windows) or just copy over `/Applications/Bitcoin-Qt` (on macOS) | ||
or `bitcoind`/`bitcoin-qt` (on Linux). | ||
|
||
Upgrading directly from a version of Bitcoin Core that has reached its EOL is | ||
possible, but it might take some time if the data directory needs to be migrated. Old | ||
wallet versions of Bitcoin Core are generally supported. | ||
|
||
Compatibility | ||
============== | ||
|
||
Bitcoin Core is supported and extensively tested on operating systems | ||
using the Linux kernel, macOS 11.0+, and Windows 7 and newer. Bitcoin | ||
Core should also work on most other Unix-like systems but is not as | ||
frequently tested on them. It is not recommended to use Bitcoin Core on | ||
unsupported systems. | ||
|
||
Notable changes | ||
=============== | ||
|
||
### Script | ||
|
||
- #29853: sign: don't assume we are parsing a sane TapMiniscript | ||
|
||
### P2P and network changes | ||
|
||
- #29691: Change Luke Dashjr seed to dashjr-list-of-p2p-nodes.us | ||
- #30085: p2p: detect addnode cjdns peers in GetAddedNodeInfo() | ||
|
||
### RPC | ||
|
||
- #29869: rpc, bugfix: Enforce maximum value for setmocktime | ||
- #28554: bugfix: throw an error if an invalid parameter is passed to getnetworkhashps RPC | ||
- #30094: rpc: move UniValue in blockToJSON | ||
- #29870: rpc: Reword SighashFromStr error message | ||
|
||
### Build | ||
|
||
- #29747: depends: fix mingw-w64 Qt DEBUG=1 build | ||
- #29985: depends: Fix build of Qt for 32-bit platforms with recent glibc | ||
- #30151: depends: Fetch miniupnpc sources from an alternative website | ||
- #30283: upnp: fix build with miniupnpc 2.2.8 | ||
|
||
### Misc | ||
|
||
- #29776: ThreadSanitizer: Fix #29767 | ||
- #29856: ci: Bump s390x to ubuntu:24.04 | ||
- #29764: doc: Suggest installing dev packages for debian/ubuntu qt5 build | ||
- #30149: contrib: Renew Windows code signing certificate | ||
|
||
Credits | ||
======= | ||
|
||
Thanks to everyone who directly contributed to this release: | ||
|
||
- Antoine Poinsot | ||
- Ava Chow | ||
- Cory Fields | ||
- dergoegge | ||
- fanquake | ||
- glozow | ||
- Hennadii Stepanov | ||
- Jameson Lopp | ||
- jonatack | ||
- laanwj | ||
- Luke Dashjr | ||
- MarcoFalke | ||
- nanlour | ||
- willcl-ark | ||
|
||
As well as to everyone that helped with translations on | ||
[Transifex](https://www.transifex.com/bitcoin/bitcoin/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.