MCPcopy Create free account
hub / github.com/CPChain/chain / close

Method close

core/tx_journal.go:172–180  ·  view source on GitHub ↗

close flushes the transaction journal contents to disk and closes the file.

()

Source from the content-addressed store, hash-verified

170
171// close flushes the transaction journal contents to disk and closes the file.
172func (journal *txJournal) close() error {
173 var err error
174
175 if journal.writer != nil {
176 err = journal.writer.Close()
177 journal.writer = nil
178 }
179 return err
180}

Callers 1

StopMethod · 0.45

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected