Skip to content

Commit f4f0b49

Browse files
Merge #7312: fix: intermittent incorrect logging of CheckQueue for invalid blocks
76e6645 fix: intermittent incorrect logging of CheckQueue for invalid blocks (Konstantin Akimov) Pull request description: ## Issue being fixed or feature implemented ConnectBlock may return no-named failure instead proper error code such as: 2024-09-23T13:13:10Z ERROR: ConnectBlock: CheckQueue failed ## What was done? This PR fixes this intermittent failure ## How Has This Been Tested? N/A ## Breaking Changes N/A ## Checklist: - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone ACKs for top commit: UdjinM6: utACK 76e6645 Tree-SHA512: 5d2b2d40ae65086082dc81c4d0faf9dc2895db1e97cfe1d47857efc6ec5050ea930ca501eb8ef56ebc70ff7e0a14622b69979e63a8d3c1d6703875da06121e8b
2 parents ee16b8d + 76e6645 commit f4f0b49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2440,8 +2440,8 @@ bool CChainState::ConnectBlock(const CBlock& block, BlockValidationState& state,
24402440
// in multiple threads). Preallocate the vector size so a new allocation
24412441
// doesn't invalidate pointers into the vector, and keep txsdata in scope
24422442
// for as long as `control`.
2443-
CCheckQueueControl<CScriptCheck> control(fScriptChecks && g_parallel_script_checks ? &scriptcheckqueue : nullptr);
24442443
std::vector<PrecomputedTransactionData> txsdata(block.vtx.size());
2444+
CCheckQueueControl<CScriptCheck> control(fScriptChecks && g_parallel_script_checks ? &scriptcheckqueue : nullptr);
24452445

24462446
std::vector<int> prevheights;
24472447
CAmount nFees = 0;

0 commit comments

Comments
 (0)