MCPcopy Create free account
hub / github.com/ElementsProject/elements / getBlockSource

Method getBlockSource

src/qt/clientmodel.cpp:166–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166enum BlockSource ClientModel::getBlockSource() const
167{
168 if (m_node.getReindex())
169 return BlockSource::REINDEX;
170 else if (m_node.getImporting())
171 return BlockSource::DISK;
172 else if (getNumConnections() > 0)
173 return BlockSource::NETWORK;
174
175 return BlockSource::NONE;
176}
177
178QString ClientModel::getStatusBarWarnings() const
179{

Callers 1

setNumBlocksMethod · 0.80

Calls 2

getReindexMethod · 0.80
getImportingMethod · 0.80

Tested by

no test coverage detected