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

Method Commit

src/index/base.cpp:202–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202bool BaseIndex::Commit()
203{
204 CDBBatch batch(GetDB());
205 if (!CommitInternal(batch) || !GetDB().WriteBatch(batch)) {
206 return error("%s: Failed to commit latest %s state", __func__, GetName());
207 }
208 return true;
209}
210
211bool BaseIndex::CommitInternal(CDBBatch& batch)
212{

Callers

nothing calls this directly

Calls 2

errorFunction · 0.85
WriteBatchMethod · 0.45

Tested by

no test coverage detected