@@ -543,7 +543,7 @@ insertCertificate syncEnv isMember blkId txId epochNo slotNo redeemers (Generic.
543
543
liftIO $
544
544
logWarning tracer " insertCertificate: Unhandled DCertGenesis certificate"
545
545
Right (ConwayTxCertDeleg deleg) ->
546
- when (ioShelley iopts) $ insertConwayDelegCert syncEnv txId idx mRedeemerId epochNo slotNo deleg
546
+ insertConwayDelegCert syncEnv txId idx mRedeemerId epochNo slotNo deleg
547
547
Right (ConwayTxCertPool pool) ->
548
548
when (ioShelley iopts) $ insertPoolCert tracer cache isMember network epochNo blkId txId idx pool
549
549
Right (ConwayTxCertGov c) ->
@@ -687,20 +687,28 @@ insertConwayDelegCert ::
687
687
ExceptT SyncNodeError (ReaderT SqlBackend m ) ()
688
688
insertConwayDelegCert syncEnv txId idx mRedeemerId epochNo slotNo dCert =
689
689
case dCert of
690
- ConwayRegCert cred _dep -> insertStakeRegistration epochNo txId idx $ Generic. annotateStakingCred network cred
691
- ConwayUnRegCert cred _dep -> insertStakeDeregistration cache network epochNo txId idx mRedeemerId cred
690
+ ConwayRegCert cred _dep ->
691
+ when (ioShelley iopts) $
692
+ insertStakeRegistration epochNo txId idx $ Generic. annotateStakingCred network cred
693
+ ConwayUnRegCert cred _dep ->
694
+ when (ioShelley iopts) $
695
+ insertStakeDeregistration cache network epochNo txId idx mRedeemerId cred
692
696
ConwayDelegCert cred delegatee -> insertDeleg cred delegatee
693
697
ConwayRegDelegCert cred delegatee _dep -> do
694
- insertStakeRegistration epochNo txId idx $ Generic. annotateStakingCred network cred
698
+ when (ioShelley iopts) $
699
+ insertStakeRegistration epochNo txId idx $ Generic. annotateStakingCred network cred
695
700
insertDeleg cred delegatee
696
701
where
697
702
insertDeleg cred = \ case
698
- DelegStake poolkh -> insertDelegation trce cache network epochNo slotNo txId idx mRedeemerId cred poolkh
703
+ DelegStake poolkh ->
704
+ when (ioShelley iopts) $
705
+ insertDelegation trce cache network epochNo slotNo txId idx mRedeemerId cred poolkh
699
706
DelegVote drep ->
700
707
when (ioGov iopts) $
701
708
insertDelegationVote cache network txId idx cred drep
702
709
DelegStakeVote poolkh drep -> do
703
- insertDelegation trce cache network epochNo slotNo txId idx mRedeemerId cred poolkh
710
+ when (ioShelley iopts) $
711
+ insertDelegation trce cache network epochNo slotNo txId idx mRedeemerId cred poolkh
704
712
when (ioGov iopts) $
705
713
insertDelegationVote cache network txId idx cred drep
706
714
0 commit comments