Function
stampTransaction
(state: TransactionMetaInner, now: number)
Source from the content-addressed store, hash-verified
| 16453 | const completedTransactions = new WeakSet<Transaction["Service"]>() |
| 16454 | |
| 16455 | const stampTransaction = (state: TransactionMetaInner, now: number) => { |
| 16456 | state.elapsedSincePrevious = now - state.now |
| 16457 | state.now = now |
| 16458 | state.elapsed = now - state.start |
| 16459 | } |
| 16460 | |
| 16461 | const isTransactionConsistent = (state: TransactionMeta) => { |
| 16462 | for (const [ref, { version }] of state.journal) { |
Tested by
no test coverage detected