Skip to content

Ledger state validation (MS5.5) #379

@buddhisthead

Description

@buddhisthead

Description

"Expose any errors detected by ledger state modules as validation errors"

Intersect Milestone

MS5.5

Acceptance Criteria

  • "Verify no ledger errors in existing mainnet blocks"

This is an extension of #376 really, since correct derivation of the SPDD requires that we understand everything we are given.

  • "Verify signalled failures in constructed bad Tx"

We need a mechanism to construct and inject bad Tx (see also other test requirements) - to do this for every possible error will be hard; hopefully a sample to show the mechanism will be acceptable initially.

Expected Deliverables

  • "Upgrades to ledger state derivation modules (see MS1) to report errors"

Essentially every error!() in the ledger state modules needs to be converted into a ValidationStatus in a BlockValidation message and published on a cardano.validation.xxx topic, where xxx is the module.

  • "Test reports"

Report showing that mainnet runs without any errors and a sample of bad transactions generate the correct validation failure (Consensus will report it)

Sub-issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions