Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1// Copyright (c) The Bitcoin Core developers2// Distributed under the MIT software license, see the accompanying3// file COPYING or https://opensource.org/license/mit/.5#include <bitcoin-build-config.h> // IWYU pragma: keep7#include <common/license_info.h>9#include <tinyformat.h>10#include <util/translation.h>12#include <string>14std::string CopyrightHolders(const std::string& strPrefix)15{16const auto copyright_devs = strprintf(_(COPYRIGHT_HOLDERS), COPYRIGHT_HOLDERS_SUBSTITUTION).translated;17std::string strCopyrightHolders = strPrefix + copyright_devs;19// Make sure Bitcoin Core copyright is not removed by accident20if (copyright_devs.find("Bitcoin Core") == std::string::npos) {21strCopyrightHolders += "\n" + strPrefix + "The Bitcoin Core developers";22}23return strCopyrightHolders;24}26std::string LicenseInfo()27{28const std::string URL_SOURCE_CODE = "<https://github.com/bitcoin/bitcoin>";30return CopyrightHolders(strprintf(_("Copyright (C) %i-%i"), 2009, COPYRIGHT_YEAR).translated + " ") + "\n" +31"\n" +32strprintf(_("Please contribute if you find %s useful. "33"Visit %s for further information about the software."),34CLIENT_NAME, "<" CLIENT_URL ">")35.translated +36"\n" +37strprintf(_("The source code is available from %s."), URL_SOURCE_CODE).translated +38"\n" +39"\n" +40_("This is experimental software.") + "\n" +41strprintf(_("Distributed under the MIT software license, see the accompanying file %s or %s"), "COPYING", "<https://opensource.org/license/MIT>").translated +42"\n";43}