Skip to content

Commit af327e0

Browse files
authored
feat(ledger): consume deposit for stake vote registration delegation cert (#1004)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 45259de commit af327e0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ledger/common/certs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ type StakeVoteRegistrationDelegationCertificate struct {
786786
cbor.DecodeStoreCbor
787787
CertType uint
788788
StakeCredential Credential
789-
PoolKeyHash []byte
789+
PoolKeyHash PoolKeyHash
790790
Drep Drep
791791
Amount int64
792792
}

ledger/conway/rules.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ func UtxoValidateValueNotConservedUtxo(
287287
producedValue += uint64(tmpPparams.KeyDeposit)
288288
case *common.StakeRegistrationDelegationCertificate:
289289
producedValue += uint64(tmpPparams.KeyDeposit)
290+
case *common.StakeVoteRegistrationDelegationCertificate:
291+
producedValue += uint64(tmpPparams.KeyDeposit)
290292
}
291293
}
292294
for _, proposal := range tx.ProposalProcedures() {

0 commit comments

Comments
 (0)