fix(ledger): use v1/v2 script contexts
Signed-off-by: Chris Gianelloni <[email protected]>
Signed-off-by: Chris Gianelloni <[email protected]>
Signed-off-by: Chris Gianelloni <[email protected]>
- Update collectP2ScriptsWithContext to take both utxoSpendâ‚€ (initial snapshot) and utxoRefView (for reference lookups), preparing for batch-aware collection and single phase-2 eval. - Use txInfoForPurpose to construct validation context (TxLevel-indexed) instead of Conway's language-indexed txInfo. Dijkstra txInfo is indexed by TxLevel, not by Plutus language.
WIP. Starting to remove owners from the StakePoolSnapShot Reward computation is done Fix and Improve Arbitrary for SnapShot Move Stake definition to Stake module
Ensure original `ByteString` can be garbage collected as soon as the hash is computed
`BinaryData` never requests the memoized Hash, so there is no need to retain the `ByteString`, it is better to use the already available `ShortByteString`
Upon decoding of a type it is quite possible to have a much larger lazy `ByteString` that is being supplied to the decoder, eg. decodign Tx in a Block. In order to ensure that that lazy buffer is not retained in memory we need to make a full copy of the slice, but only during decoding, not during construction, cause otherwise every lens update would incur significant overhead due to redundant serialization
Signed-off-by: Chris Gianelloni <[email protected]>
Signed-off-by: Chris Gianelloni <[email protected]>
Signed-off-by: Chris Gianelloni <[email protected]>
WIP. Starting to remove owners from the StakePoolSnapShot Reward computation is done Fix and Improve Arbitrary for SnapShot Move Stake definition to Stake module