Various fixes (#2564)
:construction_worker_man: - Fix head getting permanently stuck when
CommitFinalized or DecommitFinalized bumps the snapshot version while a
ReqSn echo is still in-flight — only blocks re-request when AckSns are
actively collecting (isCollectingAcks), not during RequestedSnapshot.
:construction_worker_man: - Fix deposit activated while a snapshot is
in-flight being silently dropped — the next chained snapshot picks it up
via selectNextDeposit, and DepositActivated now sets currentDepositTxId
if unset.
:construction_worker_man: - Fix deposits from other heads being selected
for ReqSn in ReqTx, OnDecrementTx, and rollback repost handlers —
depositsForHead is now applied consistently in all head-level handlers.
:construction_worker_man: - Guard deposit aggregate cases by headId to
prevent one head's deposits from corrupting another head's state when
multiple heads share the same network.
:construction_worker_man: - Fix Plutus script evaluation on
mainnet/testnet: L2 ledger Globals now uses era-aware EpochInfo (queried
from chain) instead of fixedEpochInfo, ensuring correct POSIXTime values
in Plutus ScriptContext for time-sensitive scripts.
:construction_worker_man: - Fix Preproduction node not syncing due to
missing peer-snapshot.json bootstrap and stale config paths.
:construction_worker_man: - Remove the hard-coded 100 ADA commit limit
on mainnet.
:construction_worker_man: - Remove the GET /head-initialization
endpoint.
---
<!-- Consider each and tick it off one way or the other -->
* [x] CHANGELOG updated or not needed
* [x] Documentation updated or not needed
* [x] Haddocks updated or not needed
* [x] No new TODOs introduced or explained herafter