Skip to content

Commit

Permalink
Remove unused function canApply
Browse files Browse the repository at this point in the history
  • Loading branch information
locallycompact committed Dec 8, 2024
1 parent 77b0e2f commit 38c804c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions hydra-node/src/Hydra/Ledger.hs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ newtype Ledger tx = Ledger
-- necessarily the same as the given UTxO after some transactions
}

canApply :: Ledger tx -> ChainSlot -> UTxOType tx -> tx -> ValidationResult
canApply ledger slot utxo tx =
either (Invalid . snd) (const Valid) $ applyTransactions ledger slot utxo (pure tx)

-- | Collect applicable transactions and resulting UTxO. In contrast to
-- 'applyTransactions', this functions continues on validation errors.
collectTransactions :: Ledger tx -> ChainSlot -> UTxOType tx -> [tx] -> ([tx], UTxOType tx)
Expand Down

0 comments on commit 38c804c

Please sign in to comment.