mirror of
https://github.com/Xahau/xahaud.git
synced 2026-08-23 16:30:52 +00:00
test: document consensus entropy fixture opt-in
This commit is contained in:
@@ -83,9 +83,15 @@ supported_amendments()
|
||||
"Unknown feature: " + s + " in supportedAmendments.");
|
||||
}
|
||||
//@@start rng-test-environment-gating
|
||||
// TODO: ConsensusEntropy injects a pseudo-tx every ledger which
|
||||
// breaks existing test transaction count assumptions. Exclude from
|
||||
// default test set until dedicated tests are written.
|
||||
// ConsensusEntropy is a supported amendment, but it is intentionally
|
||||
// excluded from the default jtx fixture set.
|
||||
//
|
||||
// Enabling it changes every closed ledger by injecting a deterministic
|
||||
// ttCONSENSUS_ENTROPY pseudo-transaction. Many legacy Env tests make
|
||||
// exact transaction-count / metadata-shape assertions and are not
|
||||
// trying to exercise ledger-wide entropy materialization. Keep those
|
||||
// default fixtures stable; tests that cover entropy opt in explicitly
|
||||
// with `supported_amendments() | featureConsensusEntropy`.
|
||||
return FeatureBitset(feats) - featureConsensusEntropy;
|
||||
//@@end rng-test-environment-gating
|
||||
}();
|
||||
|
||||
Reference in New Issue
Block a user