ikripaka
bde05e1016
Merge 5d6f6fd00d into merged_master (Bitcoin PR bitcoin/bitcoin#31490 )
2026-04-10 12:22:58 +00:00
Tom Trevethan
1288483aed
Merge d73f37dda2 into merged_master (Bitcoin PR bitcoin/bitcoin#31346 )
2026-04-09 01:16:46 +01:00
ivanlele
b28b274b1b
Merge d4b5553849 into merged_master (Bitcoin PR bitcoin/bitcoin#30742 )
2026-03-24 14:10:04 +00:00
ivanlele
e2c90769ca
Merge 949b673472 into merged_master (Bitcoin PR bitcoin/bitcoin#28052 )
2026-03-11 12:29:52 +00:00
ivanlele
31cc9083a6
Merge 1e8d689e01 into merged_master (Bitcoin PR bitcoin/bitcoin#30517 )
2026-03-10 12:44:30 +00:00
Tom Trevethan
84203ffb07
Merge 8426e018bf into merged_master (Bitcoin PR bitcoin/bitcoin#30428 )
2026-03-09 00:20:27 +00:00
ikripaka
b1203b233e
Merge f4849f6922 into merged_master (Bitcoin PR bitcoin/bitcoin#29668 )
2026-03-05 16:00:34 +00:00
Tom Trevethan
af7931ef34
Merge b1ba1b178f into merged_master (Bitcoin PR bitcoin/bitcoin#30132 )
2026-02-26 07:10:28 +00:00
Tom Trevethan
27d5d6f08b
Merge 058af75874 into merged_master (Bitcoin PR bitcoin/bitcoin#29817 )
2026-02-22 23:30:46 +00:00
Tom Trevethan
9e3f7c92fa
Merge 2f53f2273d into merged_master (Bitcoin PR bitcoin/bitcoin#29975 )
2026-02-22 21:41:31 +00:00
Byron Hambly
6abf91ab3d
Merge 622e79e0fb into merged_master (Bitcoin PR bitcoin/bitcoin#29021 )
2025-11-17 15:07:22 +02:00
Byron Hambly
32e1849401
Merge ca041fc4ab into merged_master (Bitcoin PR bitcoin/bitcoin#28904 )
2025-11-10 14:58:08 +02:00
Byron Hambly
2c751b43ed
Merge f4e96c29a6 into merged_master (Bitcoin PR bitcoin/bitcoin#28691 )
2025-08-07 13:55:53 +02:00
Byron Hambly
7fc909ab98
Merge e7b0004b37 into merged_master (Bitcoin PR bitcoin/bitcoin#27596 )
...
ELEMENTS TODO assumeutxo for liquidv1
2025-08-06 14:33:15 +02:00
Byron Hambly
c22f740992
Merge f562856d02 into merged_master (Bitcoin PR bitcoin/bitcoin#27866 )
2025-08-04 15:42:06 +02:00
Byron Hambly
ace917697e
Merge c9f288244b into merged_master (Bitcoin PR bitcoin/bitcoin#28483 )
2025-08-04 12:54:49 +02:00
Byron Hambly
61847fc900
Merge 1e9d367d0d into merged_master (Bitcoin PR bitcoin/bitcoin#28423 )
2025-07-21 14:48:23 +02:00
Byron Hambly
bef3aeb383
Merge ecab855838 into merged_master (Bitcoin PR bitcoin/bitcoin#28195 )
2025-07-07 09:45:43 +02:00
Byron Hambly
8bc9cd62fb
Merge be44332803 into merged_master (Bitcoin PR bitcoin/bitcoin#28191 )
2025-07-03 15:53:03 +02:00
Byron Hambly
3e027c6bd4
Merge f4f1d6d230 into merged_master (Bitcoin PR bitcoin/bitcoin#27746 )
2025-07-03 12:59:45 +02:00
Byron Hambly
61ecd1fa45
Merge e253568da8 into merged_master (Bitcoin PR bitcoin/bitcoin#28053 )
2025-07-01 11:52:36 +02:00
Byron Hambly
f61ec91393
Merge ef29d5d7e2 into merged_master (Bitcoin PR bitcoin/bitcoin#27607 )
2025-07-01 11:32:01 +02:00
Byron Hambly
a8a9ae2ae1
Merge 75135c673e into merged_master (Bitcoin PR bitcoin/bitcoin#27861 )
2025-07-01 10:39:46 +02:00
Byron Hambly
73663a4c89
Merge 4e8a7654f6 into merged_master (Bitcoin PR bitcoin/bitcoin#25193 )
2025-06-20 16:01:14 +02:00
Byron Hambly
b1d470027d
Merge c2f2abd0a4 into merged_master (Bitcoin PR bitcoin/bitcoin#27125 )
2025-06-20 10:46:05 +02:00
Byron Hambly
e22e1b9509
Merge ccd4db7d62 into merged_master (Bitcoin PR bitcoin/bitcoin#27570 )
2025-05-16 10:32:57 +02:00
Byron Hambly
e23e51f9ef
Merge 369d4c03b7 into merged_master (Bitcoin PR bitcoin/bitcoin#27254 )
2025-04-12 12:19:09 +02:00
Byron Hambly
59a4dcb178
Merge cbfbf46e57 into merged_master (Bitcoin PR bitcoin/bitcoin#25781 )
2025-04-10 09:10:09 +02:00
Byron Hambly
6ec7ce1641
Merge bb136aaf2c into merged_master (Bitcoin PR bitcoin/bitcoin#26533 )
2025-04-09 12:28:27 +02:00
Tom Trevethan
5b2b315520
Merge 9a288430df into merged_master (Bitcoin PR bitcoin/bitcoin#26900 )
2025-04-04 14:21:48 +00:00
Tom Trevethan
7d07e14d44
Merge 6b7ccb98a5 into merged_master (Bitcoin PR bitcoin/bitcoin#26251 )
2025-04-02 14:56:26 +00:00
Byron Hambly
b4405ba453
Merge e9262ea32a into merged_master (Bitcoin PR bitcoin/bitcoin#26750 )
2025-03-31 16:37:52 +02:00
Byron Hambly
ca0a68b350
Merge UP TO 551c8e9526 into merged_master (UP TO bitcoin/bitcoin#26349 )
...
Includes FIXMEs for a few functional tests
2025-02-05 09:50:17 +02:00
Lőrinc
223081ece6
scripted-diff: rename block and undo functions for consistency
...
Co-authored-by: Ryan Ofsky <ryan@ofsky.org>
Co-authored-by: Hodlinator <172445034+hodlinator@users.noreply.github.com>
-BEGIN VERIFY SCRIPT-
grep -r -wE 'WriteBlock|ReadRawBlock|ReadBlock|WriteBlockUndo|ReadBlockUndo' $(git ls-files src/ ':!src/leveldb') && \
echo "Error: One or more target names already exist!" && exit 1
sed -i \
-e 's/\bSaveBlockToDisk/WriteBlock/g' \
-e 's/\bReadRawBlockFromDisk/ReadRawBlock/g' \
-e 's/\bReadBlockFromDisk/ReadBlock/g' \
-e 's/\bWriteUndoDataForBlock/WriteBlockUndo/g' \
-e 's/\bUndoReadFromDisk/ReadBlockUndo/g' \
$(git ls-files src/ ':!src/leveldb')
-END VERIFY SCRIPT-
2025-01-09 15:17:02 +01:00
Lőrinc
fa39f27a0f
refactor,blocks: deduplicate block's serialized size calculations
...
For consistency `UNDO_DATA_DISK_OVERHEAD` was also extracted to avoid the constant's ambiguity.
Asserts were added to help with the review - they are removed in the next commit.
Co-authored-by: Ryan Ofsky <ryan@ofsky.org>
2025-01-09 15:16:28 +01:00
Lőrinc
dfb2f9d004
refactor,blocks: inline WriteBlockToDisk
...
Similarly, `WriteBlockToDisk` wasn't really extracting a meaningful subset of the `SaveBlockToDisk` functionality, it's tied closely to the only caller (needs the header size twice, recalculated block serializes size, returns multiple branches, mutates parameter).
The inlined code should only differ in these parts (modernization will be done in other commits):
* renamed `blockPos` to `pos` in `SaveBlockToDisk` to match the parameter name;
* changed `return false` to `return FlatFilePos()`.
Also removed remaining references to `SaveBlockToDisk`.
Co-authored-by: Ryan Ofsky <ryan@ofsky.org>
2025-01-09 13:24:53 +01:00
Lőrinc
42bc491465
refactor,blocks: inline UndoWriteToDisk
...
`UndoWriteToDisk` wasn't really extracting a meaningful subset of the `WriteUndoDataForBlock` functionality, it's tied closely to the only caller (needs the header size twice, recalculated undo serializes size, returns multiple branches, modifies parameter, needs documentation).
The inlined code should only differ in these parts (modernization will be done in other commits):
* renamed `_pos` to `pos` in `WriteUndoDataForBlock` to match the parameter name;
* inlined `hashBlock` parameter usage into `hasher << block.pprev->GetBlockHash()`;
* changed `return false` to `return FatalError`;
* capitalize comment.
Co-authored-by: Ryan Ofsky <ryan@ofsky.org>
2025-01-09 13:18:22 +01:00
Sjors Provoost
37946c0aaf
Set notifications m_tip_block in LoadChainTip()
...
Ensure KernelNotifications m_tip_block is set even if no new block arrives.
Additionally, have node init always wait for this to happen.
2024-12-06 14:24:21 +07:00
Byron Hambly
8499b13762
lint: fix lint issues
2024-12-03 14:02:33 +02:00
Byron Hambly
b80b3aeff4
Merge 3a7e0a210c into merged_master (Bitcoin PR bitcoin/bitcoin#24513 )
2024-11-26 14:42:49 +02:00
Byron Hambly
076e809b74
Merge 821f5c824f into merged_master (Bitcoin PR bitcoin/bitcoin#25487 )
2024-10-17 09:16:23 +02:00
James Dorfman
413a175b53
Fixes for Elements PR #1270
2024-09-23 21:22:11 +00:00
James Dorfman
61b0543ba7
Merge cdcc74bbcc into merged_master (Elements PR #1270 )
2024-09-23 16:51:13 +00:00
James Dorfman
7ef8f9380b
Merge 015717e2b8 into merged_master (Bitcoin PR bitcoin/bitcoin#25299 )
2024-09-10 23:50:51 +00:00
James Dorfman
ae633bfd3b
Merge 636991d0c0 into merged_master (Bitcoin PR bitcoin/bitcoin#25264 )
2024-09-06 19:31:45 +00:00
TheCharlatan
a2955f0979
validation: Use span for ImportBlocks paths
...
Makes it friendlier for potential future users of the kernel library if
they do not store the headers in a std::vector, but can guarantee
contiguous memory.
2024-08-30 12:39:46 +02:00
James Dorfman
5b4757e4f1
Merge d17bbc3c48 into merged_master (Bitcoin PR bitcoin/bitcoin#25060 )
2024-08-09 03:29:09 +00:00
James Dorfman
387cfbcfe8
Merge 194b414697 into merged_master (Bitcoin PR bitcoin/bitcoin#25016 )
2024-08-08 17:30:27 +00:00
James Dorfman
628a1506e1
Merge b51e60f914 into merged_master (Bitcoin PR bitcoin/bitcoin#22564 )
2024-08-06 19:02:09 +00:00
James Dorfman
237db14671
Merge bd616bc16a into merged_master (Bitcoin PR bitcoin/bitcoin#24917 )
2024-08-06 17:01:19 +00:00