chore: some more nitpicks
Signed-off-by: jeluard <[email protected]>
Signed-off-by: jeluard <[email protected]>
Signed-off-by: jeluard <[email protected]>
Signed-off-by: jeluard <[email protected]>
The design is trying to: - avoid re-doing work / traverse every structure only once - limit cloning of the largest elements (outputs, values, datums, redeemers, scripts) - be non-intrusive (built on top of the existing validation context) - remain simple to use (piggybacking on Rust's idioms) So far I've only mapped the inputs, outputs and datums back into a (new definition of) TxInfo. The strategy has been to hook onto the validation context and build the TxInfo while validating; yet, while avoiding to 'pollute' the validation logic. That allows for minimal changes in the rules, while ensuring that the context now also builds a phase-2 script context along the way. I am using Arc for the large types with shared ownership. I've tried different approaches but I settled on Rc / Arc ... Anything involving a lifetime is unsuitable because we have nowhere to store the original owned version where references would point to. Ideally, we would store that in the volatile state, but that means the volatile state would have to be self-referencing and that requires some unstable and unsafe rust features. So, to be avoided if possible. I am a bit less convinced about the last bits. In the sense that we're talking about 16KB of data anyway... so kind of feels overkill here when we could just clone the relevant bits for the script context. But it's also not _too bad_, so maybe worth keeping? Note also that I got rid of the 'volatile cache' because it was 'getting in the way' and was not really proven useful (maybe even harmful...). We should micro-benchmark this before re-introducing any sort of cache here. Signed-off-by: KtorZ <[email protected]>
* Added mempool to config file. * Reran simulations * Regenerated figures
Signed-off-by: jeluard <[email protected]>
- Add SetCertificate method handling all Cardano certificate types - Switch interface from slot to ocommon.Point for consistency - Add comprehensive test suite with 19 test cases - Remove deprecated certificate setter methods - Include certificate mapping model and migration updates Signed-off-by: GitHub Copilot <[email protected]> Signed-off-by: Chris Gianelloni <[email protected]>
Signed-off-by: jeluard <[email protected]>
Signed-off-by: jeluard <[email protected]>
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.1.0 to 4.1.1. - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](https://github.com/nodeca/js-yaml/compare/4.1.0...4.1.1) --- updated-dependencies: - dependency-name: js-yaml dependency-version: 4.1.1 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: jeluard <[email protected]>
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.14.0 to 4.1.1. - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](https://github.com/nodeca/js-yaml/compare/3.14.0...4.1.1) --- updated-dependencies: - dependency-name: js-yaml dependency-version: 4.1.1 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: jeluard <[email protected]>