MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / updateIrreversible

Function updateIrreversible

blockproducer/storage.go:254–260  ·  view source on GitHub ↗
(h hash.Hash)

Source from the content-addressed store, hash-verified

252}
253
254func updateIrreversible(h hash.Hash) storageProcedure {
255 return func(tx *sql.Tx) (err error) {
256 _, err = tx.Exec(`INSERT OR REPLACE INTO "irreversible" ("id", "hash")
257 VALUES (?, ?)`, 0, h.String())
258 return
259 }
260}
261
262func deleteTxs(txs []pi.Transaction) storageProcedure {
263 var hs = make([]hash.Hash, len(txs))

Callers 2

NewChainWithContextFunction · 0.85

Calls 2

ExecMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected