File tree Expand file tree Collapse file tree 7 files changed +8
-8
lines changed Expand file tree Collapse file tree 7 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -64,13 +64,13 @@ func (ls MockLedgerState) StakeRegistration(
6464}
6565
6666func (ls MockLedgerState ) PoolCurrentState (
67- poolKeyHash [] byte ,
67+ poolKeyHash common. PoolKeyHash ,
6868) (* common.PoolRegistrationCertificate , * uint64 , error ) {
6969 for _ , cert := range ls .MockPoolRegistration {
7070 if string (
7171 common .Blake2b224 (cert .Operator ).Bytes (),
7272 ) == string (
73- poolKeyHash ,
73+ common . Blake2b224 ( poolKeyHash ). Bytes () ,
7474 ) {
7575 // pretend latest registration is current; no retirement support in mock
7676 c := cert
Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ func UtxoValidateValueNotConservedUtxo(
289289 for _ , cert := range tx .Certificates () {
290290 switch tmpCert := cert .(type ) {
291291 case * common.PoolRegistrationCertificate :
292- reg , _ , err := ls .PoolCurrentState (common .Blake2b224 (tmpCert .Operator ). Bytes () )
292+ reg , _ , err := ls .PoolCurrentState (common .Blake2b224 (tmpCert .Operator ))
293293 if err != nil {
294294 return err
295295 }
Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ func UtxoValidateValueNotConservedUtxo(
275275 for _ , cert := range tx .Certificates () {
276276 switch tmpCert := cert .(type ) {
277277 case * common.PoolRegistrationCertificate :
278- reg , _ , err := ls .PoolCurrentState (common .Blake2b224 (tmpCert .Operator ). Bytes () )
278+ reg , _ , err := ls .PoolCurrentState (common .Blake2b224 (tmpCert .Operator ))
279279 if err != nil {
280280 return err
281281 }
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ type PoolState interface {
3535 // PoolCurrentState returns the latest active registration certificate for the given pool key hash.
3636 // It also returns the epoch of a pending retirement certificate, if one exists.
3737 // If the pool is not registered, the registration certificate will be nil.
38- PoolCurrentState ([] byte ) (* PoolRegistrationCertificate , * uint64 , error )
38+ PoolCurrentState (PoolKeyHash ) (* PoolRegistrationCertificate , * uint64 , error )
3939}
4040
4141// LedgerState defines the interface for querying the ledger
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ func UtxoValidateValueNotConservedUtxo(
272272 for _ , cert := range tx .Certificates () {
273273 switch tmpCert := cert .(type ) {
274274 case * common.PoolRegistrationCertificate :
275- reg , _ , err := ls .PoolCurrentState (common .Blake2b224 (tmpCert .Operator ). Bytes () )
275+ reg , _ , err := ls .PoolCurrentState (common .Blake2b224 (tmpCert .Operator ))
276276 if err != nil {
277277 return err
278278 }
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ func UtxoValidateValueNotConservedUtxo(
175175 for _ , cert := range tx .Certificates () {
176176 switch tmpCert := cert .(type ) {
177177 case * common.PoolRegistrationCertificate :
178- reg , _ , err := ls .PoolCurrentState (common .Blake2b224 (tmpCert .Operator ). Bytes () )
178+ reg , _ , err := ls .PoolCurrentState (common .Blake2b224 (tmpCert .Operator ))
179179 if err != nil {
180180 return err
181181 }
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ func UtxoValidateValueNotConservedUtxo(
196196 for _ , cert := range tx .Certificates () {
197197 switch tmpCert := cert .(type ) {
198198 case * common.PoolRegistrationCertificate :
199- reg , _ , err := ls .PoolCurrentState (common .Blake2b224 (tmpCert .Operator ). Bytes () )
199+ reg , _ , err := ls .PoolCurrentState (common .Blake2b224 (tmpCert .Operator ))
200200 if err != nil {
201201 return err
202202 }
You can’t perform that action at this time.
0 commit comments