Byron Hambly
c942f6af15
Merge cdf12c7b3d into merged_master (Bitcoin PR bitcoin/bitcoin#22895 )
2023-04-21 12:03:29 +00:00
James Dorfman
44df9bbb73
Merge 951850bebf into merged_master (Bitcoin PR #22371 )
2023-03-16 14:23:27 +00:00
Pablo Greco
e7fea1d50b
Fix underflow when blocks are ahead of headers
2023-02-21 06:22:25 -03:00
Glenn Willen
f5c79950a1
When people ask us for headers we do not have (over REST or RPC), do something reasonable.
2022-12-12 09:53:42 -08:00
Glenn Willen
7c555578b7
Add a flag for header-trimming; clear P2P network feature bits when enabled.
2022-12-12 09:46:07 -08:00
Jon Atack
350e034e64
consensus: don't call GetBlockPos in ReadBlockFromDisk without lock
2021-09-05 17:55:06 +02:00
Andrew Poelstra
cac878cf89
Merge 8071ec179d into merged_master (Bitcoin PR bitcoin/bitcoin#21789 )
2021-07-29 12:55:13 +00:00
Andrew Poelstra
34da23bd1a
Merge a55904a80c into merged_master (Bitcoin PR bitcoin/bitcoin#21866 )
...
Paying the piper for some lazy use of globals, including ones I added
in 8e770d3f21
Had to add another couple methods to interfaces::Chain
2021-07-29 13:18:11 +00:00
MarcoFalke
faa54e3757
Move pblocktree global to BlockManager
2021-07-15 13:54:09 +02:00
Andrew Poelstra
87c10268ee
Merge 3275c6e578 into merged_master (Bitcoin PR bitcoin/bitcoin#21727 )
2021-07-06 21:07:44 +00:00
Andrew Poelstra
a9ef79acbc
Merge 1f14130cb0 into merged_master (Bitcoin PR #21575 )
2021-06-30 03:43:01 +00:00
MarcoFalke
fa0d9211ef
refactor: Remove chainparams arg from CChainState member functions
...
Passing this is confusing and redundant with the m_params member.
2021-06-13 09:43:54 +02:00
Carl Dong
6c3b5dc0c1
scripted-diff: tree-wide: Remove all review-only assertions
...
-BEGIN VERIFY SCRIPT-
find_regex='((assert|CHECK_NONFATAL)\(std::addressof|TODO: REVIEW-ONLY)' \
&& git grep -l -E "$find_regex" -- . \
| xargs sed -i -E "/${find_regex}/d"
-END VERIFY SCRIPT-
2021-06-10 15:05:24 -04:00
MarcoFalke
fa09a9eac8
style: Add { } to multi-line if
...
Can be reviewed with --word-diff-regex=. --ignore-all-space
2021-04-27 10:36:41 +02:00
MarcoFalke
fadafab833
move-only: Move functions to blockstorage
2021-04-27 10:36:23 +02:00
MarcoFalke
fa247a327f
refactor: Move block storage globals to blockstorage
...
However, keep a declaration in validation to make it possible to move
smaller chunks to blockstorage without breaking compilation.
Also, expose AbortNode in the header.
Can be reviewed with --color-moved=dimmed-zebra --color-moved-ws=ignore-all-space
2021-04-27 10:32:30 +02:00
MarcoFalke
fa81c30c6f
refactor: Move pruning/reindex/importing globals to blockstorage
...
Can be reviewed with --color-moved=dimmed-zebra
2021-04-27 10:32:24 +02:00
MarcoFalke
fa121b628d
blockstorage: [refactor] Use chainman reference where possible
...
Also, add missing { } for style.
Can be reviewed with `--word-diff-regex=.`
2021-04-05 20:26:32 +02:00
MarcoFalke
fa0c7d9ad2
move-only: Move *Disk functions to blockstorage
...
Can be reviewed with the git options
--color-moved=dimmed-zebra --color-moved-ws=ignore-all-space
2021-04-05 20:26:14 +02:00
MarcoFalke
fa413f07a1
move-only: Move ThreadImport to blockstorage
...
Can be reviewed with the git options
--color-moved=dimmed-zebra --color-moved-ws=ignore-all-space
2021-04-04 18:07:24 +02:00