(h hash.Hash)
| 252 | } |
| 253 | |
| 254 | func 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 | |
| 262 | func deleteTxs(txs []pi.Transaction) storageProcedure { |
| 263 | var hs = make([]hash.Hash, len(txs)) |
no test coverage detected