Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13711356
D11751.id34379.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
752 B
Subscribers
None
D11751.id34379.diff
View Options
diff --git a/src/interfaces/chain.cpp b/src/interfaces/chain.cpp
--- a/src/interfaces/chain.cpp
+++ b/src/interfaces/chain.cpp
@@ -235,9 +235,8 @@
const FoundBlock &block) override {
WAIT_LOCK(cs_main, lock);
const CChain &active = Assert(m_node.chainman)->ActiveChain();
- return FillBlock(
- ChainActive().FindEarliestAtLeast(min_time, min_height), block,
- lock, active);
+ return FillBlock(active.FindEarliestAtLeast(min_time, min_height),
+ block, lock, active);
}
bool findAncestorByHeight(const BlockHash &block_hash,
int ancestor_height,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 26, 11:45 (16 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5566327
Default Alt Text
D11751.id34379.diff (752 B)
Attached To
D11751: refactor: Replace uses ChainActive() in interfaces/chain.cpp (follow-up)
Event Timeline
Log In to Comment