@optimystic/db-core 1.18.0 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/src/blocks/helpers.d.ts +7 -0
- package/dist/src/blocks/helpers.d.ts.map +1 -1
- package/dist/src/blocks/helpers.js +7 -1
- package/dist/src/blocks/helpers.js.map +1 -1
- package/dist/src/btree/btree.d.ts +100 -4
- package/dist/src/btree/btree.d.ts.map +1 -1
- package/dist/src/btree/btree.js +252 -90
- package/dist/src/btree/btree.js.map +1 -1
- package/dist/src/btree/node-division.d.ts +37 -0
- package/dist/src/btree/node-division.d.ts.map +1 -0
- package/dist/src/btree/node-division.js +133 -0
- package/dist/src/btree/node-division.js.map +1 -0
- package/dist/src/chain/chain.d.ts +23 -0
- package/dist/src/chain/chain.d.ts.map +1 -1
- package/dist/src/chain/chain.js +43 -6
- package/dist/src/chain/chain.js.map +1 -1
- package/dist/src/cluster/structs.d.ts +41 -8
- package/dist/src/cluster/structs.d.ts.map +1 -1
- package/dist/src/cluster/structs.js +18 -7
- package/dist/src/cluster/structs.js.map +1 -1
- package/dist/src/collection/action.d.ts +29 -0
- package/dist/src/collection/action.d.ts.map +1 -1
- package/dist/src/collection/action.js +6 -0
- package/dist/src/collection/action.js.map +1 -1
- package/dist/src/collection/collection.d.ts +566 -120
- package/dist/src/collection/collection.d.ts.map +1 -1
- package/dist/src/collection/collection.js +1084 -495
- package/dist/src/collection/collection.js.map +1 -1
- package/dist/src/collection/head-commit.d.ts +110 -0
- package/dist/src/collection/head-commit.d.ts.map +1 -0
- package/dist/src/collection/head-commit.js +65 -0
- package/dist/src/collection/head-commit.js.map +1 -0
- package/dist/src/collection/index.d.ts +2 -0
- package/dist/src/collection/index.d.ts.map +1 -1
- package/dist/src/collection/index.js +2 -0
- package/dist/src/collection/index.js.map +1 -1
- package/dist/src/collection/segments.d.ts +77 -0
- package/dist/src/collection/segments.d.ts.map +1 -0
- package/dist/src/collection/segments.js +110 -0
- package/dist/src/collection/segments.js.map +1 -0
- package/dist/src/collection/struct.d.ts +176 -1
- package/dist/src/collection/struct.d.ts.map +1 -1
- package/dist/src/collection/struct.js +70 -0
- package/dist/src/collection/struct.js.map +1 -1
- package/dist/src/collection/write-attempts.d.ts +245 -0
- package/dist/src/collection/write-attempts.d.ts.map +1 -0
- package/dist/src/collection/write-attempts.js +439 -0
- package/dist/src/collection/write-attempts.js.map +1 -0
- package/dist/src/collections/tree/struct.d.ts +100 -17
- package/dist/src/collections/tree/struct.d.ts.map +1 -1
- package/dist/src/collections/tree/struct.js +38 -7
- package/dist/src/collections/tree/struct.js.map +1 -1
- package/dist/src/collections/tree/tree.d.ts +17 -5
- package/dist/src/collections/tree/tree.d.ts.map +1 -1
- package/dist/src/collections/tree/tree.js +117 -29
- package/dist/src/collections/tree/tree.js.map +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/log/log.d.ts +5 -1
- package/dist/src/log/log.d.ts.map +1 -1
- package/dist/src/log/log.js +7 -1
- package/dist/src/log/log.js.map +1 -1
- package/dist/src/network/block-size.d.ts +67 -0
- package/dist/src/network/block-size.d.ts.map +1 -0
- package/dist/src/network/block-size.js +82 -0
- package/dist/src/network/block-size.js.map +1 -0
- package/dist/src/network/i-repo.d.ts +3 -0
- package/dist/src/network/i-repo.d.ts.map +1 -1
- package/dist/src/network/index.d.ts +5 -0
- package/dist/src/network/index.d.ts.map +1 -1
- package/dist/src/network/index.js +5 -0
- package/dist/src/network/index.js.map +1 -1
- package/dist/src/network/promise-shortfall-error.d.ts +40 -0
- package/dist/src/network/promise-shortfall-error.d.ts.map +1 -0
- package/dist/src/network/promise-shortfall-error.js +67 -0
- package/dist/src/network/promise-shortfall-error.js.map +1 -0
- package/dist/src/network/refuse-solo.d.ts +8 -0
- package/dist/src/network/refuse-solo.d.ts.map +1 -0
- package/dist/src/network/refuse-solo.js +8 -0
- package/dist/src/network/refuse-solo.js.map +1 -0
- package/dist/src/network/stale-failure.d.ts +20 -3
- package/dist/src/network/stale-failure.d.ts.map +1 -1
- package/dist/src/network/stale-failure.js +24 -3
- package/dist/src/network/stale-failure.js.map +1 -1
- package/dist/src/network/struct.d.ts +161 -13
- package/dist/src/network/struct.d.ts.map +1 -1
- package/dist/src/network/struct.js.map +1 -1
- package/dist/src/network/transaction-size.d.ts +59 -0
- package/dist/src/network/transaction-size.d.ts.map +1 -0
- package/dist/src/network/transaction-size.js +74 -0
- package/dist/src/network/transaction-size.js.map +1 -0
- package/dist/src/network/validity-rejected-error.d.ts +28 -0
- package/dist/src/network/validity-rejected-error.d.ts.map +1 -0
- package/dist/src/network/validity-rejected-error.js +51 -0
- package/dist/src/network/validity-rejected-error.js.map +1 -0
- package/dist/src/offline/entry.d.ts +72 -0
- package/dist/src/offline/entry.d.ts.map +1 -0
- package/dist/src/offline/entry.js +73 -0
- package/dist/src/offline/entry.js.map +1 -0
- package/dist/src/offline/index.d.ts +5 -0
- package/dist/src/offline/index.d.ts.map +1 -0
- package/dist/src/offline/index.js +5 -0
- package/dist/src/offline/index.js.map +1 -0
- package/dist/src/offline/journal.d.ts +61 -0
- package/dist/src/offline/journal.d.ts.map +1 -0
- package/dist/src/offline/journal.js +2 -0
- package/dist/src/offline/journal.js.map +1 -0
- package/dist/src/offline/queue.d.ts +484 -0
- package/dist/src/offline/queue.d.ts.map +1 -0
- package/dist/src/offline/queue.js +1236 -0
- package/dist/src/offline/queue.js.map +1 -0
- package/dist/src/offline/reachability.d.ts +25 -0
- package/dist/src/offline/reachability.d.ts.map +1 -0
- package/dist/src/offline/reachability.js +13 -0
- package/dist/src/offline/reachability.js.map +1 -0
- package/dist/src/offline/status.d.ts +148 -0
- package/dist/src/offline/status.d.ts.map +1 -0
- package/dist/src/offline/status.js +63 -0
- package/dist/src/offline/status.js.map +1 -0
- package/dist/src/offline/wake.d.ts +30 -0
- package/dist/src/offline/wake.d.ts.map +1 -0
- package/dist/src/offline/wake.js +68 -0
- package/dist/src/offline/wake.js.map +1 -0
- package/dist/src/reactivity/config.d.ts +8 -4
- package/dist/src/reactivity/config.d.ts.map +1 -1
- package/dist/src/reactivity/config.js +7 -3
- package/dist/src/reactivity/config.js.map +1 -1
- package/dist/src/reactivity/rotation.d.ts +9 -3
- package/dist/src/reactivity/rotation.d.ts.map +1 -1
- package/dist/src/reactivity/rotation.js +8 -2
- package/dist/src/reactivity/rotation.js.map +1 -1
- package/dist/src/testing/test-transactor.d.ts +31 -0
- package/dist/src/testing/test-transactor.d.ts.map +1 -1
- package/dist/src/testing/test-transactor.js +60 -0
- package/dist/src/testing/test-transactor.js.map +1 -1
- package/dist/src/transaction/commit-failure-class.d.ts +103 -0
- package/dist/src/transaction/commit-failure-class.d.ts.map +1 -0
- package/dist/src/transaction/commit-failure-class.js +96 -0
- package/dist/src/transaction/commit-failure-class.js.map +1 -0
- package/dist/src/transaction/coordinator.d.ts +224 -31
- package/dist/src/transaction/coordinator.d.ts.map +1 -1
- package/dist/src/transaction/coordinator.js +841 -362
- package/dist/src/transaction/coordinator.js.map +1 -1
- package/dist/src/transaction/entry-commit.d.ts +139 -0
- package/dist/src/transaction/entry-commit.d.ts.map +1 -0
- package/dist/src/transaction/entry-commit.js +199 -0
- package/dist/src/transaction/entry-commit.js.map +1 -0
- package/dist/src/transaction/index.d.ts +4 -1
- package/dist/src/transaction/index.d.ts.map +1 -1
- package/dist/src/transaction/index.js +1 -0
- package/dist/src/transaction/index.js.map +1 -1
- package/dist/src/transaction/transaction.d.ts +20 -0
- package/dist/src/transaction/transaction.d.ts.map +1 -1
- package/dist/src/transaction/validator.d.ts +7 -0
- package/dist/src/transaction/validator.d.ts.map +1 -1
- package/dist/src/transaction/validator.js +21 -12
- package/dist/src/transaction/validator.js.map +1 -1
- package/dist/src/transactor/change-notifier.d.ts +13 -4
- package/dist/src/transactor/change-notifier.d.ts.map +1 -1
- package/dist/src/transactor/change-notifier.js.map +1 -1
- package/dist/src/transactor/network-transactor.d.ts +58 -8
- package/dist/src/transactor/network-transactor.d.ts.map +1 -1
- package/dist/src/transactor/network-transactor.js +244 -50
- package/dist/src/transactor/network-transactor.js.map +1 -1
- package/dist/src/transactor/transactor-source.d.ts +22 -11
- package/dist/src/transactor/transactor-source.d.ts.map +1 -1
- package/dist/src/transactor/transactor-source.js +9 -13
- package/dist/src/transactor/transactor-source.js.map +1 -1
- package/dist/src/transactor/transactor.d.ts +14 -0
- package/dist/src/transactor/transactor.d.ts.map +1 -1
- package/dist/src/transform/digest.d.ts +20 -0
- package/dist/src/transform/digest.d.ts.map +1 -1
- package/dist/src/transform/digest.js +23 -3
- package/dist/src/transform/digest.js.map +1 -1
- package/dist/src/utility/visit-every.d.ts +14 -0
- package/dist/src/utility/visit-every.d.ts.map +1 -0
- package/dist/src/utility/visit-every.js +27 -0
- package/dist/src/utility/visit-every.js.map +1 -0
- package/package.json +1 -1
- package/src/blocks/helpers.ts +8 -1
- package/src/btree/btree.ts +266 -88
- package/src/btree/node-division.ts +155 -0
- package/src/chain/chain.ts +55 -6
- package/src/cluster/structs.ts +42 -7
- package/src/collection/action.ts +34 -0
- package/src/collection/collection.ts +1167 -540
- package/src/collection/head-commit.ts +148 -0
- package/src/collection/index.ts +2 -0
- package/src/collection/segments.ts +149 -0
- package/src/collection/struct.ts +201 -1
- package/src/collection/write-attempts.ts +506 -0
- package/src/collections/tree/struct.ts +97 -17
- package/src/collections/tree/tree.ts +129 -31
- package/src/index.ts +2 -0
- package/src/log/log.ts +7 -1
- package/src/network/block-size.ts +81 -0
- package/src/network/i-repo.ts +3 -0
- package/src/network/index.ts +5 -0
- package/src/network/promise-shortfall-error.ts +69 -0
- package/src/network/refuse-solo.ts +7 -0
- package/src/network/stale-failure.ts +27 -4
- package/src/network/struct.ts +169 -15
- package/src/network/transaction-size.ts +73 -0
- package/src/network/validity-rejected-error.ts +55 -0
- package/src/offline/entry.ts +127 -0
- package/src/offline/index.ts +4 -0
- package/src/offline/journal.ts +60 -0
- package/src/offline/queue.ts +1342 -0
- package/src/offline/reachability.ts +32 -0
- package/src/offline/status.ts +183 -0
- package/src/offline/wake.ts +67 -0
- package/src/reactivity/config.ts +8 -4
- package/src/reactivity/rotation.ts +9 -3
- package/src/testing/test-transactor.ts +65 -0
- package/src/transaction/commit-failure-class.ts +133 -0
- package/src/transaction/coordinator.ts +969 -393
- package/src/transaction/entry-commit.ts +285 -0
- package/src/transaction/index.ts +4 -0
- package/src/transaction/transaction.ts +21 -0
- package/src/transaction/validator.ts +22 -12
- package/src/transactor/change-notifier.ts +13 -4
- package/src/transactor/network-transactor.ts +252 -55
- package/src/transactor/transactor-source.ts +29 -13
- package/src/transactor/transactor.ts +16 -0
- package/src/transform/digest.ts +36 -3
- package/src/utility/visit-every.ts +25 -0
|
@@ -329,6 +329,24 @@ export declare function createActionsStatements(collections: CollectionActions[]
|
|
|
329
329
|
export type ActionsStatement = {
|
|
330
330
|
collections: CollectionActions[];
|
|
331
331
|
};
|
|
332
|
+
/**
|
|
333
|
+
* The structured class on a refusal that judges the transaction ITSELF wrong: the checker re-ran it,
|
|
334
|
+
* or checked what it claims about itself, and found it false. Such a refusal fails the same way on
|
|
335
|
+
* every retry and at every honest validator.
|
|
336
|
+
*
|
|
337
|
+
* Present only for that class. A refusal that is out of date (a stale read), expired, or that this
|
|
338
|
+
* node could not judge (an unknown engine, a schema it does not hold, an operations-hash format it
|
|
339
|
+
* does not produce, a checker that threw) carries none — so absent means "not known to be a validity
|
|
340
|
+
* judgement", which is also what an older build that never sets it means.
|
|
341
|
+
*
|
|
342
|
+
* It exists because the refusal's `reason` is free-form prose that must never become control flow: a
|
|
343
|
+
* cluster member signs this into its reject vote (`Signature`'s `validity`), and that signed marker is
|
|
344
|
+
* what lets a writer tell "refused for good" from "try again".
|
|
345
|
+
*/
|
|
346
|
+
export type ValidityRejection = {
|
|
347
|
+
/** The operations hash this node computed by re-executing the transaction, when it got that far. */
|
|
348
|
+
computedHash?: string;
|
|
349
|
+
};
|
|
332
350
|
/**
|
|
333
351
|
* Result of transaction validation.
|
|
334
352
|
*/
|
|
@@ -339,6 +357,8 @@ export type ValidationResult = {
|
|
|
339
357
|
reason?: string;
|
|
340
358
|
/** The operations hash computed during validation (for debugging) */
|
|
341
359
|
computedHash?: string;
|
|
360
|
+
/** Set only on a failure that judges the transaction itself wrong; see {@link ValidityRejection}. */
|
|
361
|
+
validity?: ValidityRejection;
|
|
342
362
|
};
|
|
343
363
|
/**
|
|
344
364
|
* Transaction validator interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../src/transaction/transaction.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAG7D;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B,0CAA0C;IAC1C,MAAM,EAAE,MAAM,CAAC;IAEf,0DAA0D;IAC1D,SAAS,EAAE,MAAM,CAAC;IAElB,+CAA+C;IAC/C,UAAU,EAAE,MAAM,CAAC;IAEnB,4DAA4D;IAC5D,QAAQ,EAAE,MAAM,CAAC;IAEjB,2DAA2D;IAC3D,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;;;OAQG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd,qFAAqF;IACrF,EAAE,EAAE,MAAM,CAAC;CACX,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG;IACzB,iDAAiD;IACjD,KAAK,EAAE,gBAAgB,CAAC;IAExB;;;;OAIG;IACH,UAAU,EAAE,MAAM,EAAE,CAAC;IAErB,2DAA2D;IAC3D,KAAK,EAAE,cAAc,EAAE,CAAC;IAExB;;OAEG;IACH,EAAE,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Promise<BlockActionState
|
|
|
32
32
|
*
|
|
33
33
|
* Validates transactions by re-executing them and comparing operations hash.
|
|
34
34
|
* Used by cluster participants when receiving PendRequests.
|
|
35
|
+
*
|
|
36
|
+
* Every refusal is classed, because a writer and the dispute path act on the class and must never
|
|
37
|
+
* read the prose to find it. Five refusals judge the transaction itself wrong and carry
|
|
38
|
+
* `validity` ({@link validityRefusal}): a tampered stamp, a missing or invalid client signature, a
|
|
39
|
+
* failed re-execution, and an operations-hash mismatch. The rest carry none: an expired stamp (a
|
|
40
|
+
* clock judgement), a stale read (out of date — a re-read can win), and an unknown engine, a schema
|
|
41
|
+
* mismatch or an operations-hash format this node does not produce (this node cannot judge).
|
|
35
42
|
*/
|
|
36
43
|
export declare class TransactionValidator implements ITransactionValidator {
|
|
37
44
|
private readonly engines;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validator.d.ts","sourceRoot":"","sources":["../../../src/transaction/validator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC7J,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAI7D;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAChC,sCAAsC;IACtC,MAAM,EAAE,kBAAkB,CAAC;IAC3B,kDAAkD;IAClD,aAAa,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;CACrC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,4BAA4B,GAAG,MAAM;IAChD,qDAAqD;IACrD,YAAY,CAAC,OAAO,EAAE,iBAAiB,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3E,mDAA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oBAAqB,YAAW,qBAAqB;IAEhE,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,2BAA2B;IAC5C,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IACpC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC;gBAHtB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,EACxC,2BAA2B,EAAE,4BAA4B,EACzD,kBAAkB,CAAC,EAAE,kBAAkB,YAAA,EACvC,qBAAqB,CAAC,EAAE,uBAAuB,YAAA;IAG3D,QAAQ,CAAC,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAuIrF,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;CAIlE"}
|
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
import { isTransactionExpired, clientSignaturePayload, computeStampId } from './transaction.js';
|
|
2
2
|
import { collectOperations, hashOperations, opsHashVersion, OPS_HASH_VERSION } from './operations-hash.js';
|
|
3
|
+
/**
|
|
4
|
+
* A refusal that judges the transaction itself wrong, marked so (see {@link ValidityRejection}).
|
|
5
|
+
* `computedHash` is this node's own re-execution result, present once re-execution produced one.
|
|
6
|
+
*/
|
|
7
|
+
function validityRefusal(reason, computedHash) {
|
|
8
|
+
return computedHash === undefined
|
|
9
|
+
? { valid: false, reason, validity: {} }
|
|
10
|
+
: { valid: false, reason, computedHash, validity: { computedHash } };
|
|
11
|
+
}
|
|
3
12
|
/**
|
|
4
13
|
* Transaction validator implementation.
|
|
5
14
|
*
|
|
6
15
|
* Validates transactions by re-executing them and comparing operations hash.
|
|
7
16
|
* Used by cluster participants when receiving PendRequests.
|
|
17
|
+
*
|
|
18
|
+
* Every refusal is classed, because a writer and the dispute path act on the class and must never
|
|
19
|
+
* read the prose to find it. Five refusals judge the transaction itself wrong and carry
|
|
20
|
+
* `validity` ({@link validityRefusal}): a tampered stamp, a missing or invalid client signature, a
|
|
21
|
+
* failed re-execution, and an operations-hash mismatch. The rest carry none: an expired stamp (a
|
|
22
|
+
* clock judgement), a stale read (out of date — a re-read can win), and an unknown engine, a schema
|
|
23
|
+
* mismatch or an operations-hash format this node does not produce (this node cannot judge).
|
|
8
24
|
*/
|
|
9
25
|
export class TransactionValidator {
|
|
10
26
|
engines;
|
|
@@ -25,7 +41,7 @@ export class TransactionValidator {
|
|
|
25
41
|
// a tampered stamp corrupts expiration and engine selection regardless of signatures.
|
|
26
42
|
const expectedId = await computeStampId(stamp);
|
|
27
43
|
if (expectedId !== stamp.id) {
|
|
28
|
-
return
|
|
44
|
+
return validityRefusal('Tampered transaction stamp');
|
|
29
45
|
}
|
|
30
46
|
// 0. Check expiration before any other work. Ordered BEFORE the signature check so
|
|
31
47
|
// an attacker cannot learn signature-validity for an already-expired transaction.
|
|
@@ -40,11 +56,11 @@ export class TransactionValidator {
|
|
|
40
56
|
// both pass — the p2p enforcement flag decides whether to inject the port at all.
|
|
41
57
|
if (this.verifyClientSignature) {
|
|
42
58
|
if (transaction.signature === undefined) {
|
|
43
|
-
return
|
|
59
|
+
return validityRefusal('Missing client signature');
|
|
44
60
|
}
|
|
45
61
|
const payload = clientSignaturePayload(stamp.id, transaction.statements, transaction.reads);
|
|
46
62
|
if (!this.verifyClientSignature(stamp.peerId, payload, transaction.signature)) {
|
|
47
|
-
return
|
|
63
|
+
return validityRefusal('Invalid client signature');
|
|
48
64
|
}
|
|
49
65
|
}
|
|
50
66
|
// 1. Verify engine exists
|
|
@@ -99,10 +115,7 @@ export class TransactionValidator {
|
|
|
99
115
|
// skipped by the empty-actions guard.
|
|
100
116
|
const result = await registration.engine.execute(transaction);
|
|
101
117
|
if (!result.success) {
|
|
102
|
-
return {
|
|
103
|
-
valid: false,
|
|
104
|
-
reason: `Re-execution failed: ${result.error}`
|
|
105
|
-
};
|
|
118
|
+
return validityRefusal(`Re-execution failed: ${result.error}`);
|
|
106
119
|
}
|
|
107
120
|
// 6. Apply actions to the isolated validation coordinator (builds transforms).
|
|
108
121
|
// Reached only for pure-translator engines that RETURNED actions; a side-effect
|
|
@@ -134,11 +147,7 @@ export class TransactionValidator {
|
|
|
134
147
|
computedHash
|
|
135
148
|
};
|
|
136
149
|
}
|
|
137
|
-
return
|
|
138
|
-
valid: false,
|
|
139
|
-
reason: `Operations hash mismatch`,
|
|
140
|
-
computedHash
|
|
141
|
-
};
|
|
150
|
+
return validityRefusal('Operations hash mismatch', computedHash);
|
|
142
151
|
}
|
|
143
152
|
return { valid: true, computedHash };
|
|
144
153
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validator.js","sourceRoot":"","sources":["../../../src/transaction/validator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAChG,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA+B3G
|
|
1
|
+
{"version":3,"file":"validator.js","sourceRoot":"","sources":["../../../src/transaction/validator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAChG,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA+B3G;;;GAGG;AACH,SAAS,eAAe,CAAC,MAAc,EAAE,YAAqB;IAC7D,OAAO,YAAY,KAAK,SAAS;QAChC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE;QACxC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,EAAE,YAAY,EAAE,EAAE,CAAC;AACvE,CAAC;AAED;;;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;wBACZ,MAAM,EAAE,qDAAqD,gBAAgB,YAAY,aAAa,IAAI,cAAc,EAAE;wBAC1H,YAAY;qBACZ,CAAC;gBACH,CAAC;gBACD,OAAO,eAAe,CAAC,0BAA0B,EAAE,YAAY,CAAC,CAAC;YAClE,CAAC;YAED,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;QACtC,CAAC;gBAAS,CAAC;YACV,qBAAqB,CAAC,OAAO,EAAE,CAAC;QACjC,CAAC;IACF,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,QAAgB;QACnC,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAChD,OAAO,YAAY,CAAC,CAAC,CAAC,MAAM,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IACtE,CAAC;CACD"}
|
|
@@ -63,10 +63,19 @@ export type CommitCert = {
|
|
|
63
63
|
};
|
|
64
64
|
export interface IBlockChangeNotifier {
|
|
65
65
|
/**
|
|
66
|
-
* Subscribe to commits that mutate the given collection. Returns an
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
66
|
+
* Subscribe to commits that mutate the given collection. Returns an idempotent unsubscribe.
|
|
67
|
+
* Listeners are invoked AFTER the commit's critical section (locks released), in commit order,
|
|
68
|
+
* never from inside it; a throwing listener must not break the commit or other listeners (log +
|
|
69
|
+
* continue).
|
|
70
|
+
*
|
|
71
|
+
* A listener may be invoked later than the call that landed the change: a transaction that
|
|
72
|
+
* writes several collections (a table and its indexes) commits each as its own request under one
|
|
73
|
+
* action id, and a node's storage holds one collection's event while another collection of the
|
|
74
|
+
* same action is still pending there, releasing it when that collection lands, is cancelled, or
|
|
75
|
+
* a bound elapses (`StorageRepo.emitCollectionChanges` in
|
|
76
|
+
* `packages/db-p2p/src/storage/storage-repo.ts`). So an event may arrive from a later call of
|
|
77
|
+
* the storage, or from a timer, and a held event can fire after the event of a commit that landed
|
|
78
|
+
* later. Every change still produces exactly one event.
|
|
70
79
|
*/
|
|
71
80
|
onCollectionChange(collectionId: CollectionId, listener: CollectionChangeListener): () => void;
|
|
72
81
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"change-notifier.d.ts","sourceRoot":"","sources":["../../../src/transactor/change-notifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,qEAAqE;AACrE,MAAM,MAAM,qBAAqB,GAAG;IACnC,mFAAmF;IACnF,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,4DAA4D;IAC5D,QAAQ,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAC;IACtC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;;;;;OAQG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAChC;;;;;OAKG;IACH,QAAQ,CAAC,mBAAmB,CAAC,EAAE,QAAQ,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;AAE9E;;;;;;;;;;GAUG;AACH,MAAM,MAAM,UAAU,GAAG;IACxB,2GAA2G;IAC3G,QAAQ,CAAC,YAAY,EAAE,UAAU,CAAC;IAClC,gHAAgH;IAChH,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,wFAAwF;IACxF,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB;;;;;;OAMG;IACH,QAAQ,CAAC,aAAa,EAAE,UAAU,CAAC;CACnC,CAAC;AAE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GAAG,MAAM,IAAI,CAAC;CAC/F;AAED,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,oBAAoB,CAE3E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACzC;kGAC8F;IAC9F,QAAQ,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAC;IACtC;sGACkG;IAClG,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;4FACwF;IACxF,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B;;0GAEsG;IACtG,QAAQ,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,CAAC,KAAK,EAAE,2BAA2B,KAAK,IAAI,CAAC;AAEnF;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACxC;;;;;OAKG;IACH,wBAAwB,CAAC,QAAQ,EAAE,uBAAuB,GAAG,MAAM,IAAI,CAAC;CACxE;AAED,wBAAgB,yBAAyB,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,wBAAwB,CAEnF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"change-notifier.js","sourceRoot":"","sources":["../../../src/transactor/change-notifier.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"change-notifier.js","sourceRoot":"","sources":["../../../src/transactor/change-notifier.ts"],"names":[],"mappings":"AAsFA,MAAM,UAAU,qBAAqB,CAAC,CAAU;IAC/C,OAAO,CAAC,CAAC,CAAC,IAAI,OAAQ,CAA0B,CAAC,kBAAkB,KAAK,UAAU,CAAC;AACpF,CAAC;AA6DD,MAAM,UAAU,yBAAyB,CAAC,CAAU;IACnD,OAAO,CAAC,CAAC,CAAC,IAAI,OAAQ,CAA8B,CAAC,wBAAwB,KAAK,UAAU,CAAC;AAC9F,CAAC"}
|
|
@@ -152,8 +152,50 @@ export declare class NetworkTransactor implements ITransactor, IBlockChangeNotif
|
|
|
152
152
|
/** One block's cohort answer: every member asked in parallel, a member that cannot be reached
|
|
153
153
|
* (or whose cohort cannot be resolved at all) counted as `unknown` rather than left out. */
|
|
154
154
|
private cohortLineage;
|
|
155
|
+
/**
|
|
156
|
+
* Which coordinator drives which blocks, keyed by peer id string. For each block, find its full
|
|
157
|
+
* cluster, then greedily assign blocks to the peer appearing in the most clusters
|
|
158
|
+
* ({@link bestCoveringPeer}), reducing round trips when blocks share cluster members; a block whose
|
|
159
|
+
* cluster could not be looked up, or that no member covers, goes to `findCoordinator`.
|
|
160
|
+
*/
|
|
161
|
+
private coordinatorCover;
|
|
162
|
+
/** One pend batch per coordinator of {@link coordinatorCover}, carrying that coordinator's share of `transforms`. */
|
|
155
163
|
private consolidateCoordinators;
|
|
156
164
|
pend(blockAction: PendRequest): Promise<PendResult>;
|
|
165
|
+
/**
|
|
166
|
+
* Pends every request as ONE request to the one coordinator covering all their blocks — one consensus
|
|
167
|
+
* record, answered together (`IRepo.pendMany`). Each request goes whole, `soleReservation` and bases
|
|
168
|
+
* exactly as given, with one expiration and the union of their blocks as the blocks that coordinator
|
|
169
|
+
* drives.
|
|
170
|
+
*
|
|
171
|
+
* Returns `undefined` before sending anything when they cannot go as one: their blocks need more than
|
|
172
|
+
* one coordinator by the cover {@link pend} computes ({@link coordinatorCover}), a lookup failed, that
|
|
173
|
+
* coordinator's repo takes no batch, or together they are over the per-transaction size limit (which
|
|
174
|
+
* binds one record, so each may still fit on its own). The caller then pends them its usual way, and
|
|
175
|
+
* each of those pends repeats the lookups and the size check for itself.
|
|
176
|
+
*
|
|
177
|
+
* Answered as {@link pend} answers, cancelling every block first on a failure: a RETURNED refusal is
|
|
178
|
+
* rebuilt by {@link refusalFrom}. A THROW returns `undefined` too: unlike a pend's batches, this one
|
|
179
|
+
* request cannot be re-batched onto other coordinators, so it is the caller's per-request pends —
|
|
180
|
+
* which {@link processBatches} retries elsewhere — that try again. A cancel that did not discharge is
|
|
181
|
+
* owed ({@link owedCancels}), and those pends, of the same action, supersede it on the blocks they
|
|
182
|
+
* write afresh.
|
|
183
|
+
*/
|
|
184
|
+
pendMany(requests: readonly PendRequest[]): Promise<PendResult | undefined>;
|
|
185
|
+
/**
|
|
186
|
+
* The one coordinator {@link coordinatorCover} assigns every block in `blockIds` to, or `undefined`
|
|
187
|
+
* when it assigns more than one, or a lookup failed (logged).
|
|
188
|
+
*/
|
|
189
|
+
private solePendCoordinator;
|
|
190
|
+
/**
|
|
191
|
+
* Discharges every block a batched pend named, its first round sent to the coordinator the pend went
|
|
192
|
+
* to. Awaited, and never thrown: as in {@link pend}'s failure path, a cancel that did not discharge is
|
|
193
|
+
* logged and owed, and must not replace the pend's own answer.
|
|
194
|
+
*/
|
|
195
|
+
private cancelBatchedPend;
|
|
196
|
+
/** Tells the key network which coordinator answered for each block, so later requests reach the same
|
|
197
|
+
* peer. A hint: a failure is logged, never thrown. */
|
|
198
|
+
private recordCoordinatorHints;
|
|
157
199
|
/**
|
|
158
200
|
* Discharges every pending record `actionRef` left behind, and THROWS if it could not.
|
|
159
201
|
*
|
|
@@ -215,6 +257,20 @@ export declare class NetworkTransactor implements ITransactor, IBlockChangeNotif
|
|
|
215
257
|
* deadline costs one more `timeoutMs` before the fallback starts.
|
|
216
258
|
*/
|
|
217
259
|
private commitInOneRound;
|
|
260
|
+
/**
|
|
261
|
+
* Commits every request as ONE request to the one coordinator covering all their blocks — one
|
|
262
|
+
* consensus record, answered together (`IRepo.commitMany`). Each request lists its tail first and its
|
|
263
|
+
* other blocks after, as {@link commitInOneRound} sends one action's, and is built where every commit
|
|
264
|
+
* request is ({@link repoCommitRequest}), so its digests name only its own blocks.
|
|
265
|
+
*
|
|
266
|
+
* Returns `undefined` when they cannot go as one — their blocks need more than one coordinator
|
|
267
|
+
* ({@link soleCommitCoordinator}, which prefers what {@link pendMany} cached), or that coordinator's
|
|
268
|
+
* repo takes no batch — and when the one request THREW: the caller's per-request commits then re-send
|
|
269
|
+
* everything, and whatever the thrown request landed is this action's own revision, which storage
|
|
270
|
+
* treats as already done (`isOwnRevision`), the reasoning {@link commitInOneRound}'s fallback rests on.
|
|
271
|
+
* A RETURNED answer is the batch's verdict.
|
|
272
|
+
*/
|
|
273
|
+
commitMany(requests: readonly CommitRequest[]): Promise<CommitResult | undefined>;
|
|
218
274
|
/**
|
|
219
275
|
* The one coordinator covering every block in `blockIds` — resolved as {@link commitBlocks}
|
|
220
276
|
* resolves them, preferring what the pend already resolved — or `undefined` when they need more
|
|
@@ -263,6 +319,7 @@ export declare class NetworkTransactor implements ITransactor, IBlockChangeNotif
|
|
|
263
319
|
* them as `torn` on the acknowledgement without re-deriving the set by a second rule.
|
|
264
320
|
*/
|
|
265
321
|
private cancelAbandonedSweepBlocks;
|
|
322
|
+
/** Commits `request`'s one block (the tail), returning a confirmed conflict and throwing a transient fault. */
|
|
266
323
|
private commitBlock;
|
|
267
324
|
/**
|
|
268
325
|
* The RETURNED `success:false` responses out of a set of commit batches, merged by
|
|
@@ -272,14 +329,7 @@ export declare class NetworkTransactor implements ITransactor, IBlockChangeNotif
|
|
|
272
329
|
* re-drives) from a transient fault (throw / tolerate).
|
|
273
330
|
*/
|
|
274
331
|
private staleFromBatches;
|
|
275
|
-
/**
|
|
276
|
-
* The one place a commit request to a coordinator is built — shared by {@link commitInOneRound}
|
|
277
|
-
* and {@link commitBlocks}. `blockDigests` arrives as the action's FULL declaration map and is
|
|
278
|
-
* narrowed to `blockIds` here, at send time, never up front: each request becomes its own cluster
|
|
279
|
-
* record, so shipping the whole map would make one cohort sign for blocks it is not responsible
|
|
280
|
-
* for; and `processBatches` re-batches failed blocks onto different coordinators, so only a
|
|
281
|
-
* send-time subset stays correct across retries.
|
|
282
|
-
*/
|
|
332
|
+
/** Sends `request`'s commit of `blockIds` to `peerId` — shared by {@link commitInOneRound} and {@link commitBlocks}. */
|
|
283
333
|
private sendCommit;
|
|
284
334
|
/** Attempts to commit a set of blocks, and handles failures and errors. */
|
|
285
335
|
private commitBlocks;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network-transactor.d.ts","sourceRoot":"","sources":["../../../src/transactor/network-transactor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"network-transactor.d.ts","sourceRoot":"","sources":["../../../src/transactor/network-transactor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAMlD,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,iBAAiB,EAAE,WAAW,EAA0D,WAAW,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAc,aAAa,EAAE,QAAQ,EAAqB,qBAAqB,EAAE,YAAY,EAA0H,MAAM,aAAa,CAAC;AAC9d,OAAO,KAAK,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAa3F,OAAO,EAAe,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAKtE,KAAK,qBAAqB,GAAG;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,UAAU,EAAE,WAAW,CAAC;IACxB,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,KAAK,CAAC;IACnC;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,oBAAoB,CAAC;IAC3C;;;;;;;;;OASG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;;OAQG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mFAAmF;IACnF,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CA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