We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
blockHash
1 parent 4699be4 commit 1300cd1Copy full SHA for 1300cd1
src/evo/deterministicmns.cpp
@@ -221,7 +221,7 @@ std::vector<CDeterministicMNCPtr> CDeterministicMNList::GetProjectedMNPayees(int
221
}
222
223
bool isMNRewardReallocation{false};
224
- if (auto pindex = ::ChainActive()[nHeight]; pindex == nullptr) {
+ if (auto pindex = WITH_LOCK(::cs_main, return g_chainman.m_blockman.LookupBlockIndex(blockHash)); pindex == nullptr) {
225
// Something went wrong, probably a race condition in tip and mnlist updates,
226
// try recovering...
227
pindex = ::ChainActive().Tip();
0 commit comments