IntersectMBO / cardano-node-emulator

Apache License 2.0
3 stars 4 forks source link

Emulator does not account for registration deposits when balancing transactions #18

Open fallen-icarus opened 7 months ago

fallen-icarus commented 7 months ago

When submitting an unbalanced transaction body using submitTxConfirmed, the resulting transaction does not account for delegation registration deposits. When submitting a transaction with a single registration certificate, the relevant prettyprinted logs are:

[WARNING] TxnValidation d481bd17ea46a66d02a1996e836ed9b183100b44fc0ae7ce7ccc294c5bf268e7
          Validation failed in phase 1: CardanoLedgerValidationError "ApplyTxError [UtxowFailure (UtxoFailure (AlonzoInBabbageUtxoPredFailure (ValueNotConservedUTxO (MaryValue (Coin 100000000000000) (MultiAsset 
(fromList []))) (MaryValue (Coin 100000002000000) (MultiAsset (fromList []))))))]"

The unbalanced ADA is exactly 2 ADA which is the required deposit fee. I need this registration to be successful so that I can test staking validators.

sjoerdvisscher commented 7 months ago

Thanks for the report. Not supporting staking is a known limitation of the emulator at the moment.