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

Btc upstream changes 2024-01-22 #123

Merged
merged 2,533 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2533 commits
Select commit Hold shift + click to select a range
19bb65b
[doc]: add doxygen return comment for CheckPackageLimits
ismaelsadeeq Dec 19, 2023
40c80e3
wallettool: Don't unilaterally reset wallet_instance if loading error
achow101 Dec 19, 2023
d83bea4
wallettool: Don't create CWallet when dumping DB
achow101 Oct 13, 2021
e3847f7
Merge bitcoin/bitcoin#29037: Add multiplication operator to CFeeRate
achow101 Dec 20, 2023
f7ce5ac
logging: add LogError, LogWarning, LogInfo, LogDebug, LogTrace
ajtowns Aug 22, 2023
e60fc7d
logging: Replace uses of LogPrintfCategory
ajtowns Aug 22, 2023
3a0f54d
Merge bitcoin/bitcoin#29115: [doc]: add doxygen comment describing w…
glozow Dec 20, 2023
4fdd836
Use hardened runtime on macOS release builds.
maaku Dec 21, 2023
7524fcf
Merge bitcoin/bitcoin#28372: fuzz: coinselection, improve `min_viable…
achow101 Dec 21, 2023
5ddd7c6
build: Bump `native_clang` up to 17.0.6
hebasto Oct 25, 2023
558250d
guix: use clang-toolchain-17 for macOS build
fanquake Nov 15, 2023
b0c2903
Revert "build: Patch Qt to handle minimum macOS version properly"
fanquake Dec 1, 2023
e8ecec4
build: rename native_clang to native_llvm
fanquake Dec 5, 2023
b335710
depends: patch around non-determinism in qt
fanquake Dec 19, 2023
eefe4ba
Merge bitcoin/bitcoin#29027: wallet: fix key parsing check for minisc…
achow101 Dec 21, 2023
dca0f23
Merge bitcoin/bitcoin#29056: refactor: Print verbose serialize compil…
achow101 Dec 21, 2023
4b1196a
Merge bitcoin/bitcoin#28880: build: switch to using LLVM 17.x for mac…
fanquake Dec 22, 2023
91dc48c
doc: Add multiprocess design doc
ryanofsky Nov 30, 2023
fa1d495
refactor: share and use `GenerateRandomKey` helper
theStack Sep 12, 2023
96d08c5
Merge remote-tracking branch 'bitcoin/master' into btc-master
mxaddict Dec 23, 2023
3013822
Merge remote-tracking branch 'navcoin/master' into btc-master
mxaddict Dec 23, 2023
1f64656
Merge remote-tracking branch 'bitcoin/master' into btc-master
mxaddict Dec 23, 2023
23d1e2e
Removed QT
mxaddict Dec 23, 2023
c3142c6
Updated the BASE_BUILD_DIR to match navcoin dir structure
mxaddict Dec 23, 2023
0318921
Replace BOOST_ASSERT with BOOST_CHECK
mxaddict Dec 23, 2023
157a11d
Fixed linting issue with test/functional/feature_config_args.py
mxaddict Dec 23, 2023
357e2e5
Kick off test runners
mxaddict Dec 23, 2023
c639402
Kick build
mxaddict Dec 23, 2023
06d63a5
Removed some duplicate includes
mxaddict Dec 23, 2023
d2e29be
Removed 'wallet/fees -> wallet/wallet -> wallet/fees' circular depend…
mxaddict Dec 23, 2023
081fa0e
Updated src/test/blsct/building_block/imp_inner_prod_arg_tests.cpp to…
mxaddict Dec 23, 2023
12e4135
Fixed clang tidy issue for test/blsct/building_block/imp_inner_prod_a…
mxaddict Dec 24, 2023
6bd74f4
Fixed directory location for iwyu/bitcoin file in test runner
mxaddict Dec 24, 2023
bd7ad7d
Disabled test/bip324_tests.cpp temporarily
mxaddict Dec 27, 2023
6fa3303
Replaced std::uniform_int_distribution with FastRandomContext
mxaddict Dec 27, 2023
071843a
Added TODO to fix src/test/bip324_tests.cpp
mxaddict Dec 27, 2023
8a9d357
Added TODO to fix src/test/bip324_tests.cpp
mxaddict Dec 27, 2023
9af6b80
Updated some referrences to test_bitcoin to be test_navcoin
mxaddict Dec 27, 2023
b3b9266
Update
mxaddict Dec 27, 2023
770c031
net: attempt v2 transport for manual connections if we support it
mzumsande Dec 11, 2023
9eed22e
net: attempt v2 transport for addrfetch connections if we support it
mzumsande Dec 11, 2023
fb5bfed
cli: add transport protcol column to -netinfo
mzumsande Dec 11, 2023
a44808f
fuzz: rule-out too deep derivation paths in descriptor parsing targets
darosior Nov 9, 2023
fcd4296
doc: fix typo and update incorrect comment
ismaelsadeeq Dec 6, 2023
5615e16
tx fees: update `m_from_disconnected_block` to `m_mempool_limit_bypas…
ismaelsadeeq Dec 6, 2023
b1318dc
test: change `m_submitted_in_package` input to fuzz data provider boo…
ismaelsadeeq Dec 6, 2023
d036a86
Merge bitcoin/bitcoin#28978: doc: Add multiprocess design doc
achow101 Jan 2, 2024
2652506
Merge bitcoin/bitcoin#28455: refactor: share and use `GenerateRandomK…
achow101 Jan 2, 2024
00bf4a1
Merge bitcoin/bitcoin#26684: bench: add readblock benchmark
achow101 Jan 2, 2024
c3038bf
Merge bitcoin/bitcoin#29076: fuzz: set `m_fallback_fee` and `m_fee_mo…
achow101 Jan 2, 2024
65c05db
Merge bitcoin/bitcoin#29013: test: doc: follow-up #28368
glozow Jan 3, 2024
a361fd7
Merge remote-tracking branch 'navcoin/master' into btc-master
mxaddict Jan 3, 2024
0b9f783
Merge remote-tracking branch 'bitcoin/master' into btc-master
mxaddict Jan 3, 2024
173d5a4
Replaced BOOST_ASSERT with BOOST_CHECK
mxaddict Jan 3, 2024
a81c9d8
Fixes for linter
mxaddict Jan 3, 2024
5180359
Fixes for linter
mxaddict Jan 3, 2024
3fd260a
Fixes for linter
mxaddict Jan 3, 2024
a228efe
Fixes for linter
mxaddict Jan 3, 2024
dc4e63a
Fixes for linter
mxaddict Jan 3, 2024
3d4b374
Fixes for clang tidy
mxaddict Jan 3, 2024
5335e45
contrib: add macho branch protection check
fanquake Jan 3, 2024
2d65ce7
Fixes for clang tidy
mxaddict Jan 4, 2024
faebf1d
wallet: Fix use-after-free in WalletBatch::EraseRecords
Jan 4, 2024
823c5e2
Fixes for clang tidy
mxaddict Jan 4, 2024
f8ca135
build: Fix check whether `-latomic` needed
hebasto Jan 4, 2024
d15ec65
Fixes for clang tidy
mxaddict Jan 4, 2024
29fde02
Squashed 'src/secp256k1/' changes from 199d27cea3..efe85c70a2
fanquake Jan 4, 2024
e2cdeb5
Update secp256k1 subtree to latest master
fanquake Jan 4, 2024
0e0289a
Fixes for clang tidy
mxaddict Jan 4, 2024
d84f736
Merge bitcoin/bitcoin#29176: wallet: Fix use-after-free in WalletBatc…
achow101 Jan 4, 2024
737e588
Merge bitcoin/bitcoin#29169: Update libsecp256k1 subtree to current m…
glozow Jan 4, 2024
6047e25
Revert "depends: systemtap: remove variadic params that trigger compi…
fanquake Jan 4, 2024
5779010
RPC/Blockchain: scanblocks: Accept named param for filter_false_posit…
luke-jr Jan 4, 2024
d445545
Merge bitcoin/bitcoin#28832: fuzz: rule-out too deep derivation paths…
achow101 Jan 4, 2024
fa87f8f
doc: Clarify C++20 comments
Dec 9, 2023
143ace6
Merge bitcoin/bitcoin#28890: rpc: Remove deprecated -rpcserialversion
fanquake Jan 5, 2024
c80f57b
Merge bitcoin/bitcoin#29177: build: Fix check whether `-latomic` needed
fanquake Jan 5, 2024
2d1b1c7
build: remove --enable-lto
fanquake Dec 6, 2023
7c248b9
Merge bitcoin/bitcoin#29042: doc: Clarify C++20 comments
fanquake Jan 5, 2024
cb6d619
Merge bitcoin/bitcoin#29181: build: remove systemtap variadic patch
fanquake Jan 5, 2024
e5b9ee0
fuzz: set `nMaxOutboundLimit` in connman target
brunoerg Jan 3, 2024
a395218
ci, iwyu: Drop backported mappings
hebasto Jan 5, 2024
6044628
crypto, hash: replace custom rotl32 with std::rotl
fjahr Dec 12, 2023
04978c2
Merge bitcoin/bitcoin#29117: wallettool: Always be able to dump a wal…
fanquake Jan 5, 2024
82ba0f8
Merge bitcoin/bitcoin#28962: doc: Rework guix docs after 1.4 release
fanquake Jan 5, 2024
8decc5c
build: Fix `-Xclang -internal-isystem` option
hebasto Jan 7, 2024
9d72891
net: create I2P sessions with both ECIES-X25519 and ElGamal encryption
jonatack Jan 7, 2024
d742be3
ci: Switch native macOS CI job to Xcode 15.0
hebasto Jan 7, 2024
04b9df0
Merge bitcoin/bitcoin#29184: RPC/Blockchain: scanblocks: Accept named…
glozow Jan 8, 2024
c2d04f1
Merge bitcoin/bitcoin#28610: wallet: Migrate entire address book entr…
fanquake Jan 8, 2024
016cc80
test: wallet migration, add coverage for tx extra data
furszy Jan 3, 2024
080763a
build: Drop `ALLOW_HOST_PACKAGES` support in depends
hebasto Jan 8, 2024
2fca6c2
rpc: changed prioritisation-map -> ""
kevkevinpal Nov 13, 2023
252a867
rpc: renaming txid -> transactionid
kevkevinpal Jan 9, 2024
f921d94
Merge bitcoin/bitcoin#29172: fuzz: set `nMaxOutboundLimit` in connman…
fanquake Jan 9, 2024
9e1306f
Merge bitcoin/bitcoin#29195: build: Fix `-Xclang -internal-isystem` o…
fanquake Jan 9, 2024
fa7c751
build: Bump clang minimum supported version to 14
Jan 9, 2024
fa223ba
Revert "build: Fix undefined reference to __mulodi4"
Jan 9, 2024
aaaace2
fuzz: Assume presence of __builtin_*_overflow, without checks
Jan 9, 2024
b3b19be
Merge bitcoin/bitcoin#29203: build: Drop `ALLOW_HOST_PACKAGES` suppor…
fanquake Jan 9, 2024
5a121bc
Merge bitcoin/bitcoin#29200: net: create I2P sessions using both ECIE…
fanquake Jan 9, 2024
063a8b8
Merge bitcoin/bitcoin#29058: net, cli: use v2transport for manual/add…
achow101 Jan 9, 2024
e84dc36
fuzz: fix `connman` initialization
brunoerg Jan 9, 2024
5fa7460
Fix -netinfo backward compat with getpeerinfo pre-v26
jonatack Jan 9, 2024
9315754
test: assumeutxo: spend coin from snapshot chainstate after loading
theStack Jan 10, 2024
6bcf134
Merge remote-tracking branch 'navcoin/master' into btc-master
mxaddict Jan 10, 2024
bb808c6
clang-tidy
mxaddict Jan 10, 2024
154fcce
[fuzz] Improve fuzzing stability for ellswift_roundtrip harness
dergoegge Jan 10, 2024
41b979e
Added new ci build for libblsct
mxaddict Jan 10, 2024
a6cba59
Changed GOAL to be install instead of deploy for libblsct build
mxaddict Jan 10, 2024
0bf17ac
Fixed linting issue with ci/test/00_setup_env_native_libblsct_only.sh
mxaddict Jan 10, 2024
3e038d9
Moved libblsct above libbitcoinkernel test in CI builds
mxaddict Jan 10, 2024
632a2bb
Merge bitcoin/bitcoin#29215: test: assumeutxo: spend coin from snapsh…
glozow Jan 10, 2024
7ff8e6b
Merge bitcoin/bitcoin#28318: logging: Simplify API for level based lo…
achow101 Jan 10, 2024
507dbe4
Merge bitcoin/bitcoin#29211: fuzz: fix `connman` initialization
achow101 Jan 10, 2024
fcacbab
Merge bitcoin/bitcoin#29204: test: wallet migration, add coverage for…
achow101 Jan 10, 2024
1f8450f
doc: upgrade Bitcoin Core license to 2024
22388o Dec 25, 2023
522b837
Merge bitcoin/bitcoin#29127: Use hardened runtime on macOS release bu…
fanquake Jan 11, 2024
f3ca6db
ci: move CMake into base packages
fanquake Jan 11, 2024
4ae5171
Merge bitcoin/bitcoin#29219: fuzz: Improve fuzzing stability for ells…
fanquake Jan 11, 2024
cfdbcd1
rpc: exposing modified_fee in getprioritisedtransactions
kevkevinpal Jan 9, 2024
0eebd6f
test: Assert that a new tx with a delta of 0 is never added
kevkevinpal Nov 14, 2023
12865d2
Merge bitcoin/bitcoin#29225: ci: move CMake into base packages
fanquake Jan 11, 2024
014f525
Merge bitcoin/bitcoin#29186: ci, iwyu: Drop backported mappings
fanquake Jan 11, 2024
4e104e2
Merge bitcoin/bitcoin#28838: test: add assumeutxo wallet test
achow101 Jan 11, 2024
fa0c594
ci: Rename tasks (previous releases, macOS cross)
Jan 10, 2024
131dd11
Merge bitcoin/bitcoin#28870: depends: Include `config.guess` and `con…
fanquake Jan 11, 2024
dff6d18
Merge bitcoin/bitcoin#29222: doc: update Bitcoin Core license to 2024
fanquake Jan 11, 2024
ec779a2
doc: add unconditional info loglevel following merge of PR 28318
jonatack Jan 11, 2024
05c98b6
Merge remote-tracking branch 'bitcoin/master' into btc-master
mxaddict Jan 11, 2024
bb6de1b
Merge bitcoin/bitcoin#29034: test: detect OS in functional tests cons…
achow101 Jan 11, 2024
4baa162
Merge bitcoin/bitcoin#29212: Fix -netinfo backward compat with getpee…
achow101 Jan 11, 2024
0d627c4
doc: refer to "Node relay options" in policy/README
djschnei21 Dec 15, 2023
4756114
[depends] Allow PATH with spaces in directory names.
maaku Apr 20, 2022
c3d02be
[test] rescan legacy wallet with reorged parent + IsFromMe child in m…
glozow Jan 3, 2024
8c0d1c6
Merge bitcoin/bitcoin#29218: ci: Rename tasks (previous releases, mac…
fanquake Jan 12, 2024
8c5e4f4
Merge bitcoin/bitcoin#29208: build: Bump clang minimum supported vers…
fanquake Jan 12, 2024
cd60336
Merge bitcoin/bitcoin#28885: mempool / rpc: followup to getprioritise…
glozow Jan 12, 2024
3ba8de1
Merge bitcoin/bitcoin#29235: doc: refer to "Node relay options" in po…
glozow Jan 12, 2024
eb78ea4
[log] mempool loading
glozow Jan 11, 2024
3ba815b
Make v2transport default for addnode RPC when enabled
sipa Jan 11, 2024
df30247
[test] import descriptor wallet with reorged parent + IsFromMe child …
glozow Jan 9, 2024
c003562
doc: Add missing backtick in developer notes logging section
fjahr Jan 12, 2024
ea2551e
wallet: Reset chain notifications handler if AttachChain fails
achow101 Jan 13, 2024
25f223b
Updated BLSCT_H and BLSCT_CPP
mxaddict Jan 14, 2024
3494c3c
Updates
mxaddict Jan 14, 2024
fe1eccd
Merge bitcoin/bitcoin#29243: wallet: Reset chain notifications handle…
fanquake Jan 15, 2024
28ccc70
Merge bitcoin/bitcoin#29241: doc: Add missing backtick in developer n…
fanquake Jan 15, 2024
17e33fb
Merge bitcoin/bitcoin#29237: depends: Allow PATH with spaces in direc…
fanquake Jan 15, 2024
05c4c5a
Merge bitcoin/bitcoin#29227: log mempool loading progress
fanquake Jan 15, 2024
74ebd4d
doc, test: Test and explain service flag handling
mzumsande Jan 9, 2024
2ac2821
Merge bitcoin/bitcoin#29185: build: remove `--enable-lto`
fanquake Jan 16, 2024
6ec2813
depends: add NM output to gen_id
fanquake Jan 15, 2024
42b2283
depends: deduplicate use of mmacosx-version-min in macOS build
fanquake Jan 11, 2024
cbc9bf1
build: move -mlinker-version to *FLAGS
fanquake Jan 11, 2024
fadb06c
doc: move-only lint docs to one place
Jan 16, 2024
fa2b95c
test: Remove all-lint.py script
Jan 11, 2024
999962d
Add missing XOnlyPubKey::data() to get mutable data
Dec 22, 2023
9fa8eda
Merge bitcoin/bitcoin#29230: doc: update -loglevel help to add `info`…
fanquake Jan 16, 2024
fa96d93
refactor: Allow std::span construction from CKey
Dec 22, 2023
008e81e
contrib: Latest clang-format-diff.py script
TheCharlatan Jan 15, 2024
f1fcc96
Merge bitcoin/bitcoin#29170: contrib: add macho branch protection check
fanquake Jan 16, 2024
27d935f
Merge bitcoin/bitcoin#29179: test: wallet rescan with reorged parent …
achow101 Jan 16, 2024
5711da6
Merge bitcoin/bitcoin#29213: doc, test: test and explain service flag…
achow101 Jan 16, 2024
a3fb1f8
Merge bitcoin/bitcoin#28791: snapshots: don't core dump when running …
achow101 Jan 16, 2024
8106b26
Merge bitcoin/bitcoin#29239: rpc: Make v2transport default for addnod…
achow101 Jan 16, 2024
52149b7
contrib: Fix clang-format-diff.py lint errors
TheCharlatan Jan 17, 2024
c818607
Merge bitcoin/bitcoin#29233: build: depends move macOS C(XX) FLAGS ou…
fanquake Jan 17, 2024
fa91089
rpc: Fix race in loadtxoutset
Jan 17, 2024
5555d8d
test: Use blocks_path where possible
Jan 17, 2024
5142681
Merge bitcoin/bitcoin#29133: refactor: Allow std::span construction f…
fanquake Jan 17, 2024
3d52ced
Merge bitcoin/bitcoin#29251: contrib: Update clang-format-diff
fanquake Jan 17, 2024
ded111b
Updates
mxaddict Jan 18, 2024
38cb2e0
Updates
mxaddict Jan 18, 2024
6da711e
Merge remote-tracking branch 'bitcoin/master' into btc-master
mxaddict Jan 18, 2024
15e98fc
Updates
mxaddict Jan 18, 2024
4633702
Updated the gitignore file to ignore *.tmp files
mxaddict Jan 18, 2024
585bf0e
Updates
mxaddict Jan 18, 2024
eb6dadf
Updates
mxaddict Jan 18, 2024
03c5b00
Merge bitcoin/bitcoin#29085: refactor: C++20: Use std::rotl
fanquake Jan 18, 2024
ca17d66
Merge remote-tracking branch 'bitcoin/master' into btc-master
mxaddict Jan 18, 2024
ac3901e
Merge bitcoin/bitcoin#29228: test: Remove all-lint.py script
achow101 Jan 18, 2024
5f3a057
Merge bitcoin/bitcoin#29262: rpc: Fix race in loadtxoutset
achow101 Jan 18, 2024
282b12d
refactor: remove CTxMemPool::queryHashes()
stickies-v Jan 17, 2024
e7a1e33
Merge remote-tracking branch 'bitcoin/master' into btc-master
mxaddict Jan 19, 2024
0375244
Merge bitcoin/bitcoin#29249: depends: add NM output to gen_id
fanquake Jan 19, 2024
4882834
Merge remote-tracking branch 'bitcoin/master' into btc-master
mxaddict Jan 22, 2024
651fb03
Merge bitcoin/bitcoin#29260: refactor: remove CTxMemPool::queryHashes()
glozow Jan 19, 2024
44734c7
Merge remote-tracking branch 'bitcoin/master' into btc-master
mxaddict Jan 22, 2024
87b1a4b
Removed more QT related files/code
mxaddict Feb 13, 2024
f897d87
Updated .github/workflows/ci.yml
mxaddict Feb 13, 2024
25cb09f
Removed more QT references
mxaddict Feb 13, 2024
39d0fbc
Reimplemented BLSCT functionality in walletdb
mxaddict Feb 13, 2024
a00e279
Updated CTransaction::CTransaction function
mxaddict Feb 14, 2024
abcc395
Updated test/util/data/navcoin-util-test.json to work with our navcoi…
mxaddict Feb 14, 2024
c1c1129
Fixed some issues in configure.ac
mxaddict Feb 14, 2024
2ad883b
Merge remote-tracking branch 'navcoin/master' into btc-master
mxaddict Feb 14, 2024
5bbfaa0
Moved some headers in blsct and moved BLS_ETH=1 to configure.ac
mxaddict Feb 14, 2024
47b42c4
Updated chainparams genesis block hex parsing
mxaddict Feb 14, 2024
90bbb36
Updated chainparams
mxaddict Feb 14, 2024
19faab4
Added missing call to MclInit
mxaddict Feb 15, 2024
7363041
[Branding] bitcoin -> navcoin
mxaddict Feb 16, 2024
4864047
[Branding] bitcoin -> navcoin
mxaddict Feb 16, 2024
5d66fb4
[Branding] bitcoin -> navcoin
mxaddict Feb 16, 2024
24e2dec
[Branding] bitcoin -> navcoin
mxaddict Feb 16, 2024
a6b4e2d
[Branding] bitcoin -> navcoin
mxaddict Feb 16, 2024
5069033
Fixed error with test_node not having use_v2transport
mxaddict Feb 16, 2024
56670dc
Added missing blank value in some RPC commands
mxaddict Feb 16, 2024
7443b25
Fixed tool_wallet test
mxaddict Feb 16, 2024
ee7ee7a
Fixed mempool_limit.py test
mxaddict Feb 16, 2024
82729c5
Fixed feature_filelock.py test
mxaddict Feb 16, 2024
d04cb4f
[Branding] bitcoin -> navcoin
mxaddict Feb 16, 2024
8d9facb
[Branding] bitcoin -> navcoin
mxaddict Feb 16, 2024
ba6a3fc
Fixed the navcoin dir for unix-like datadir
mxaddict Feb 16, 2024
64deef8
Updated qa-assets location
mxaddict Feb 16, 2024
58964d8
Updated libbitcoinkernel test to be libnavcoinkernel
mxaddict Feb 16, 2024
a912cfc
Set value for BLS_ETH=1 for msvc builds
mxaddict Feb 16, 2024
66019fa
Updated qa-assets location
mxaddict Feb 17, 2024
00b7e10
Re-added BLS_ETH defines for files that include bls headers
mxaddict Feb 17, 2024
2d9dc63
Fixed configure.ac to allow for blsct only config
mxaddict Feb 17, 2024
02ca004
Disabled previous tests in ci
mxaddict Feb 17, 2024
32a30aa
Increased the timeout temporarily
mxaddict Feb 17, 2024
2b68b08
Removed more qt related files
mxaddict Feb 17, 2024
a887b80
Updated timeout back to 120m from 240m
mxaddict Feb 17, 2024
fb8f2c2
Added a check for string::npos
mxaddict Feb 17, 2024
689253a
Updated MSan test to run on medium vps runner
mxaddict Feb 17, 2024
a467743
[msvc] autogen
mxaddict Feb 17, 2024
e8daf9a
Updated bitcoin.sln
mxaddict Feb 18, 2024
541b1d3
Updated src/Makefile.am to deduplicate and sort include and source fi…
mxaddict Feb 18, 2024
659bb50
Updated some configs for msvc
mxaddict Feb 18, 2024
165a540
Updated gitignore
mxaddict Feb 18, 2024
86846f8
Added bls and mcl to libbitcoin_common.vcxproj.in
mxaddict Feb 18, 2024
ef4f954
[msvc] Updates
mxaddict Feb 18, 2024
b7f2845
Updated gitignore
mxaddict Feb 18, 2024
87aada3
[msvc] updates
mxaddict Feb 18, 2024
bfc8da8
[msvc] updates
mxaddict Feb 18, 2024
f33b75c
[msvc] updates
mxaddict Feb 18, 2024
bb951c4
[msvc] updates
mxaddict Feb 18, 2024
10c1780
[msvc] updates
mxaddict Feb 18, 2024
7b6f24d
[msvc] updates
mxaddict Feb 18, 2024
8f50eec
[msvc] updates
mxaddict Feb 18, 2024
d4f4493
[msvc] updates
mxaddict Feb 18, 2024
093a92c
[msvc] updates
mxaddict Feb 18, 2024
8a7d115
Disabled test/bip324_tests.cpp temporarily
mxaddict Feb 18, 2024
6e9f62f
Added TODO comment about BIP324 failing test
mxaddict Feb 18, 2024
3d4a02d
Fixed ASan test
mxaddict Feb 18, 2024
87d3714
Fixed ASan test
mxaddict Feb 18, 2024
56bd656
renamed bench_bench_navcoin.exe to bench_navcoin.exe
mxaddict Feb 18, 2024
36a365b
Fixed the gitignore in build_msvc
mxaddict Feb 19, 2024
197c020
[MSan] updates
mxaddict Feb 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
358 changes: 119 additions & 239 deletions .cirrus.yml

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions .github/ISSUE_TEMPLATE/good_first_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ body:
attributes:
label: Useful Skills
description: For example, “`std::thread`”, “Qt5 GUI and async GUI design” or “basic understanding of Bitcoin mining and the Bitcoin Core RPC interface”.
validations:
required: false
value: |
* Compiling Bitcoin Core from source
* Running the C++ unit tests and the Python functional tests
* ...
- type: textarea
attributes:
label: Guidance for new contributors
Expand Down
236 changes: 236 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,236 @@
# Copyright (c) 2023 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

name: CI
on:
# See: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request.
pull_request:
# See: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push.
push:
branches:
- '**'
tags-ignore:
- '**'

concurrency:
group: ${{ github.event_name != 'pull_request' && github.run_id || github.ref }}
cancel-in-progress: true

env:
DANGER_RUN_CI_ON_HOST: 1
CI_FAILFAST_TEST_LEAVE_DANGLING: 1 # GHA does not care about dangling processes and setting this variable avoids killing the CI script itself on error
MAKEJOBS: '-j10'

jobs:
test-each-commit:
name: 'test each commit'
runs-on: ubuntu-22.04
if: github.event_name == 'pull_request' && github.event.pull_request.commits != 1
timeout-minutes: 360 # Use maximum time, see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes. Assuming a worst case time of 1 hour per commit, this leads to a --max-count=6 below.
env:
MAX_COUNT: 6
steps:
- name: Determine fetch depth
run: echo "FETCH_DEPTH=$((${{ github.event.pull_request.commits }} + 2))" >> "$GITHUB_ENV"
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: ${{ env.FETCH_DEPTH }}
- name: Determine commit range
run: |
# Checkout HEAD~ and find the test base commit
# Checkout HEAD~ because it would be wasteful to rerun tests on the PR
# head commit that are already run by other jobs.
git checkout HEAD~
# Figure out test base commit by listing ancestors of HEAD, excluding
# ancestors of the most recent merge commit, limiting the list to the
# newest MAX_COUNT ancestors, ordering it from oldest to newest, and
# taking the first one.
#
# If the branch contains up to MAX_COUNT ancestor commits after the
# most recent merge commit, all of those commits will be tested. If it
# contains more, only the most recent MAX_COUNT commits will be
# tested.
#
# In the command below, the ^@ suffix is used to refer to all parents
# of the merge commit as described in:
# https://git-scm.com/docs/git-rev-parse#_other_rev_parent_shorthand_notations
# and the ^ prefix is used to exclude these parents and all their
# ancestors from the rev-list output as described in:
# https://git-scm.com/docs/git-rev-list
echo "TEST_BASE=$(git rev-list -n$((${{ env.MAX_COUNT }} + 1)) --reverse HEAD ^$(git rev-list -n1 --merges HEAD)^@ | head -1)" >> "$GITHUB_ENV"
- run: |
sudo apt-get update
sudo apt-get install clang-15 ccache build-essential libtool autotools-dev automake pkg-config bsdmainutils python3-zmq libevent-dev libboost-dev libsqlite3-dev libdb++-dev systemtap-sdt-dev libminiupnpc-dev libnatpmp-dev -y
- name: Compile and run tests
run: |
# Run tests on commits after the last merge commit and before the PR head commit
# Use clang++, because it is a bit faster and uses less memory than g++
git rebase --exec "echo Running test-one-commit on \$( git log -1 ) && ./autogen.sh && CC=clang-15 CXX=clang++-15 ./configure && make clean && make -j $(nproc) check && ./test/functional/test_runner.py -j $(( $(nproc) * 2 ))" ${{ env.TEST_BASE }}

macos-native-x86_64:
name: 'macOS 13 native, x86_64, no depends, sqlite only'
# Use latest image, but hardcode version to avoid silent upgrades (and breaks).
# See: https://github.com/actions/runner-images#available-images.
runs-on: macos-13

# No need to run on the read-only mirror, unless it is a PR.
if: github.repository != 'bitcoin-core/gui' || github.event_name == 'pull_request'

timeout-minutes: 120

env:
FILE_ENV: './ci/test/00_setup_env_mac_native.sh'
BASE_ROOT_DIR: ${{ github.workspace }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Clang version
run: |
sudo xcode-select --switch /Applications/Xcode_15.0.app
clang --version

- name: Install Homebrew packages
env:
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
run: brew install automake libtool pkg-config gnu-getopt ccache boost libevent miniupnpc libnatpmp zeromq

- name: Set Ccache directory
run: echo "CCACHE_DIR=${RUNNER_TEMP}/ccache_dir" >> "$GITHUB_ENV"

- name: Restore Ccache cache
id: ccache-cache
uses: actions/cache/restore@v3
with:
path: ${{ env.CCACHE_DIR }}
key: ${{ github.job }}-ccache-${{ github.run_id }}
restore-keys: ${{ github.job }}-ccache-

- name: CI script
run: ./ci/test_run_all.sh

- name: Save Ccache cache
uses: actions/cache/save@v3
if: github.event_name != 'pull_request' && steps.ccache-cache.outputs.cache-hit != 'true'
with:
path: ${{ env.CCACHE_DIR }}
# https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache
key: ${{ github.job }}-ccache-${{ github.run_id }}

win64-native:
name: 'Win64 native, VS 2022'
# Use latest image, but hardcode version to avoid silent upgrades (and breaks).
# See: https://github.com/actions/runner-images#available-images.
runs-on: windows-2022

# No need to run on the read-only mirror, unless it is a PR.
if: github.repository != 'bitcoin-core/gui' || github.event_name == 'pull_request'

env:
CCACHE_MAXSIZE: '200M'
CI_CCACHE_VERSION: '4.7.5'
PYTHONUTF8: 1
TEST_RUNNER_TIMEOUT_FACTOR: 40

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Configure Developer Command Prompt for Microsoft Visual C++
# Using microsoft/setup-msbuild is not enough.
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64

- name: Check MSBuild
run: |
msbuild -version | Out-File -FilePath "$env:GITHUB_WORKSPACE\msbuild_version"
Get-Content -Path "$env:GITHUB_WORKSPACE\msbuild_version"
$env:VCToolsVersion | Out-File -FilePath "$env:GITHUB_WORKSPACE\toolset_version"
Get-Content -Path "$env:GITHUB_WORKSPACE\toolset_version"

- name: Ccache installation cache
id: ccache-installation-cache
uses: actions/cache@v3
with:
path: |
C:\ProgramData\chocolatey\lib\ccache
C:\ProgramData\chocolatey\bin\ccache.exe
C:\ccache\cl.exe
key: ${{ github.job }}-ccache-installation-${{ env.CI_CCACHE_VERSION }}

- name: Install Ccache
if: steps.ccache-installation-cache.outputs.cache-hit != 'true'
run: |
choco install --yes --no-progress ccache --version=$env:CI_CCACHE_VERSION
New-Item -ItemType Directory -Path "C:\ccache"
Copy-Item -Path "$env:ChocolateyInstall\lib\ccache\tools\ccache-$env:CI_CCACHE_VERSION-windows-x86_64\ccache.exe" -Destination "C:\ccache\cl.exe"

- name: Restore Ccache cache
id: ccache-cache
uses: actions/cache/restore@v3
with:
path: ~/AppData/Local/ccache
key: ${{ github.job }}-ccache-${{ github.run_id }}
restore-keys: ${{ github.job }}-ccache-

- name: Using vcpkg with MSBuild
run: |
Set-Location "$env:VCPKG_INSTALLATION_ROOT"
Add-Content -Path "triplets\x64-windows-static.cmake" -Value "set(VCPKG_BUILD_TYPE release)"
Add-Content -Path "triplets\x64-windows-static.cmake" -Value "set(VCPKG_PLATFORM_TOOLSET_VERSION $env:VCToolsVersion)"
.\vcpkg.exe --vcpkg-root "$env:VCPKG_INSTALLATION_ROOT" integrate install
git rev-parse HEAD | Out-File -FilePath "$env:GITHUB_WORKSPACE\vcpkg_commit"
Get-Content -Path "$env:GITHUB_WORKSPACE\vcpkg_commit"

- name: vcpkg tools cache
uses: actions/cache@v3
with:
path: C:/vcpkg/downloads/tools
key: ${{ github.job }}-vcpkg-tools

- name: vcpkg binary cache
uses: actions/cache@v3
with:
path: ~/AppData/Local/vcpkg/archives
key: ${{ github.job }}-vcpkg-binary-${{ hashFiles('vcpkg_commit', 'msbuild_version', 'toolset_version', 'build_msvc/vcpkg.json') }}

- name: Generate project files
run: py -3 build_msvc\msvc-autogen.py

- name: Build
shell: cmd
run: |
ccache --zero-stats
msbuild build_msvc\bitcoin.sln -property:CLToolPath=C:\ccache;CLToolExe=cl.exe;UseMultiToolTask=true;Configuration=Release -maxCpuCount -verbosity:minimal -noLogo

- name: Ccache stats
run: ccache --show-stats

- name: Save Ccache cache
uses: actions/cache/save@v3
if: github.event_name != 'pull_request' && steps.ccache-cache.outputs.cache-hit != 'true'
with:
path: ~/AppData/Local/ccache
# https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache
key: ${{ github.job }}-ccache-${{ github.run_id }}

- name: Run unit tests
run: src\test_navcoin.exe -l test_suite

- name: Run benchmarks
run: src\bench_navcoin.exe -sanity-check

- name: Run util tests
run: py -3 test\util\test_runner.py

- name: Run rpcauth test
run: py -3 test\util\rpcauth-test.py

- name: Run functional tests
env:
TEST_RUNNER_EXTRA: ${{ github.event_name != 'pull_request' && '--extended' || '' }}
run: py -3 test\functional\test_runner.py --jobs $env:NUMBER_OF_PROCESSORS --ci --quiet --tmpdirprefix=$env:RUNNER_TEMP --combinedlogslen=99999999 --timeout-factor=$env:TEST_RUNNER_TIMEOUT_FACTOR $env:TEST_RUNNER_EXTRA
26 changes: 6 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ src/navcoin-chainstate
src/navcoin-wallet
src/test/fuzz/fuzz
src/test/test_navcoin
src/qt/test/test_navcoin-qt

# autoreconf
Makefile.in
Expand Down Expand Up @@ -41,20 +40,6 @@ src/config/bitcoin-config.h
src/config/bitcoin-config.h.in
src/config/stamp-h1
src/obj
share/setup.nsi
share/qt/Info.plist

src/qt/*.moc
src/qt/moc_*.cpp
src/qt/forms/ui_*.h

src/qt/test/moc*.cpp

src/qt/bitcoin-qt.config
src/qt/bitcoin-qt.creator
src/qt/bitcoin-qt.creator.user
src/qt/bitcoin-qt.files
src/qt/bitcoin-qt.includes

.deps
.dirstamp
Expand All @@ -71,10 +56,11 @@ src/qt/bitcoin-qt.includes
*.pb.cc
*.pb.h
*.dat
*.tmp

*.log
*.trs
*.dmg
*.zip

*.json.h
*.raw.h
Expand All @@ -92,15 +78,15 @@ src/qt/bitcoin-qt.includes
*.qm
Makefile
!depends/Makefile
src/qt/navcoin-qt
Navcoin-Qt.app

# Qt Creator
Makefile.am.user

# Unit-tests
Makefile.test
navcoin-qt_test

# Visual Studio
*.vcxproj.user

# Resources cpp
qrc_*.cpp
Expand Down Expand Up @@ -135,7 +121,7 @@ test/.mypy_cache/

/doc/doxygen/

libbitcoinconsensus.pc
libnavcoinconsensus.pc
contrib/devtools/split-debug.sh

# Output from running db4 installation
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.8.16
3.9.18
2 changes: 1 addition & 1 deletion .style.yapf
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ each_dict_entry_on_separate_line=True
i18n_comment=

# The i18n function call names. The presence of this function stops
# reformattting on that line, because the string it has cannot be moved
# reformatting on that line, because the string it has cannot be moved
# away from the i18n comment.
i18n_function_call=

Expand Down
2 changes: 1 addition & 1 deletion .tx/config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[main]
host = https://www.transifex.com

[o:bitcoin:p:bitcoin:r:qt-translation-025x]
[o:bitcoin:p:bitcoin:r:qt-translation-026x]
file_filter = src/qt/locale/bitcoin_<lang>.xlf
source_file = src/qt/locale/bitcoin_en.xlf
source_lang = en
4 changes: 2 additions & 2 deletions COPYING
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
The MIT License (MIT)

Copyright (c) 2009-2023 The Bitcoin Core developers
Copyright (c) 2009-2023 Bitcoin Developers
Copyright (c) 2009-2024 The Bitcoin Core developers
Copyright (c) 2009-2024 Bitcoin Developers

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading
Loading