Skip to content

Commit

Permalink
handle plutus correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Cmdv committed Feb 1, 2024
1 parent f74ad71 commit 66a50cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cardano-db-sync/src/Cardano/DbSync/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ plutusWhitelistCheckTxOut :: SyncEnv -> [Generic.TxOut] -> Bool
plutusWhitelistCheckTxOut syncEnv txOuts = do
let iopts = soptInsertOptions $ envOptions syncEnv
case ioPlutusExtra iopts of
PlutusEnable -> True
PlutusDisable -> False
PlutusWhitelistScripts whitelist -> do
-- we map over our txOuts and check if txOutAddress OR txOutScript are in the whitelist
let whitelistCheck =
Expand All @@ -117,4 +119,3 @@ plutusWhitelistCheckTxOut syncEnv txOuts = do
)
<$> txOuts
any isJust whitelistCheck
_ -> False

0 comments on commit 66a50cf

Please sign in to comment.