Skip to content

Commit 80ae952

Browse files
committed
fix(deps): upgrade github.com/blinklabs-io/gouroboros to v0.140.0
Signed-off-by: Chris Gianelloni <wolf31o2@blinklabs.io>
1 parent f666199 commit 80ae952

File tree

7 files changed

+11
-9
lines changed

7 files changed

+11
-9
lines changed

database/plugin/blob/aws/database.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ func New(
6666
const prefix = "s3://"
6767
if !strings.HasPrefix(strings.ToLower(dataDir), prefix) {
6868
cancel()
69-
return nil, errors.New("s3 blob: expected dataDir='s3://<bucket>[/prefix]'")
69+
return nil, errors.New(
70+
"s3 blob: expected dataDir='s3://<bucket>[/prefix]'",
71+
)
7072
}
7173

7274
path := strings.TrimPrefix(strings.ToLower(dataDir), prefix)

database/plugin/metadata/sqlite/account.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,11 @@ func (d *MetadataStoreSqlite) SetStakeRegistrationDelegation(
268268
pkh := cert.PoolKeyHash
269269
tmpItem := models.StakeRegistrationDelegation{
270270
StakingKey: stakeKey,
271-
PoolKeyHash: pkh,
271+
PoolKeyHash: pkh[:],
272272
AddedSlot: slot,
273273
DepositAmount: deposit,
274274
}
275-
if err := d.SetAccount(stakeKey, pkh, nil, slot, true, txn); err != nil {
275+
if err := d.SetAccount(stakeKey, pkh[:], nil, slot, true, txn); err != nil {
276276
return err
277277
}
278278
if txn != nil {

database/plugin/metadata/sqlite/certs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (d *MetadataStoreSqlite) GetStakeRegistrations(
4545
var tmpCert lcommon.StakeRegistrationCertificate
4646
for _, cert := range certs {
4747
tmpCert = lcommon.StakeRegistrationCertificate{
48-
CertType: lcommon.CertificateTypeStakeRegistration,
48+
CertType: uint(lcommon.CertificateTypeStakeRegistration),
4949
StakeCredential: lcommon.Credential{
5050
// TODO: determine correct type
5151
// CredType: lcommon.CredentialTypeAddrKeyHash,

database/plugin/metadata/sqlite/pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (d *MetadataStoreSqlite) GetPoolRegistrations(
8181
for _, cert := range certs {
8282
tmpMargin = lcommon.GenesisRat{Rat: cert.Margin.Rat}
8383
tmpCert = lcommon.PoolRegistrationCertificate{
84-
CertType: lcommon.CertificateTypePoolRegistration,
84+
CertType: uint(lcommon.CertificateTypePoolRegistration),
8585
Operator: lcommon.PoolKeyHash(
8686
lcommon.NewBlake2b224(cert.PoolKeyHash),
8787
),

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
connectrpc.com/grpcreflect v1.3.0
1212
github.com/aws/aws-sdk-go-v2/config v1.31.11
1313
github.com/aws/aws-sdk-go-v2/service/s3 v1.88.3
14-
github.com/blinklabs-io/gouroboros v0.139.0
14+
github.com/blinklabs-io/gouroboros v0.140.0
1515
github.com/blinklabs-io/ouroboros-mock v0.3.9
1616
github.com/blinklabs-io/plutigo v0.0.13
1717
github.com/btcsuite/btcd/btcutil v1.1.6

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ github.com/bits-and-blooms/bitset v1.20.0 h1:2F+rfL86jE2d/bmw7OhqUg2Sj/1rURkBn3M
122122
github.com/bits-and-blooms/bitset v1.20.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8=
123123
github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ=
124124
github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk=
125-
github.com/blinklabs-io/gouroboros v0.139.0 h1:ctoHFEuXhJlMcUC1fe5x6IX1tqZnS/BAaBDeHiXskeU=
126-
github.com/blinklabs-io/gouroboros v0.139.0/go.mod h1:FxKQNNNRQN5F/Cl4pnW7SHhpPo7fD57mTPGo4N9ulnY=
125+
github.com/blinklabs-io/gouroboros v0.140.0 h1:dFK2iunkTflCI2hlDSGZJJ7JerYhpdE41HnBUVvjj9E=
126+
github.com/blinklabs-io/gouroboros v0.140.0/go.mod h1:FxKQNNNRQN5F/Cl4pnW7SHhpPo7fD57mTPGo4N9ulnY=
127127
github.com/blinklabs-io/ouroboros-mock v0.3.9 h1:UnciDccJ5tZCR1xI0BcxGZcYjJ/PS5MpnjiiGtrZ680=
128128
github.com/blinklabs-io/ouroboros-mock v0.3.9/go.mod h1:uTkE8/LAYL7yQSntH48Pudf5Xn+jaBWMj+9udbzYXhI=
129129
github.com/blinklabs-io/plutigo v0.0.13 h1:JztPigFmknQmQ3Ti1+mdTY96ihOUDh6wJ3pPnN2YYBU=

ledger/view.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func (lv *LedgerView) PoolCurrentState(
101101
}
102102
reg := pool.Registration[latestIdx]
103103
tmp := lcommon.PoolRegistrationCertificate{
104-
CertType: lcommon.CertificateTypePoolRegistration,
104+
CertType: uint(lcommon.CertificateTypePoolRegistration),
105105
Operator: lcommon.PoolKeyHash(
106106
lcommon.NewBlake2b224(pool.PoolKeyHash),
107107
),

0 commit comments

Comments
 (0)