-
Notifications
You must be signed in to change notification settings - Fork 39k
assumeutxo (2) #27596
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
assumeutxo (2) #27596
Changes from 1 commit
b73d3bb
c93ef43
c711ca1
434495a
9f2318c
c6af23c
1e59acd
4d8f4dc
f073917
fbe0a7d
1fffdd7
373cf91
1019c39
49ef778
4c3b8ca
7fcd215
9511fb3
62ac519
ce585a9
bb05857
0f64bac
42cae39
7ee46a7
99839bb
b8cafe3
edbed31
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4148,6 +4148,12 @@ bool ChainstateManager::ProcessNewBlock(const std::shared_ptr<const CBlock>& blo | |
| return error("%s: ActivateBestChain failed (%s)", __func__, state.ToString()); | ||
| } | ||
|
|
||
| Chainstate* bg_chain{WITH_LOCK(cs_main, return BackgroundSyncInProgress() ? m_ibd_chainstate.get() : nullptr)}; | ||
| BlockValidationState bg_state; | ||
| if (bg_chain && !bg_chain->ActivateBestChain(bg_state, block)) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. a9ea542: it's probably not significant, but if we split up the two |
||
| return error("%s: [background] ActivateBestChain failed (%s)", __func__, bg_state.ToString()); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: could adapt the error above to also include the name of the chainstate. |
||
| } | ||
|
|
||
| return true; | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.