Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions database/plugin/metadata/sqlite/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (

"github.com/blinklabs-io/dingo/database/plugin/metadata/sqlite/models"
"github.com/blinklabs-io/dingo/database/types"
"github.com/blinklabs-io/gouroboros/cbor"
lcommon "github.com/blinklabs-io/gouroboros/ledger/common"
"gorm.io/gorm"
"gorm.io/gorm/clause"
Expand Down Expand Up @@ -76,10 +75,10 @@ func (d *MetadataStoreSqlite) GetPoolRegistrations(
}
var addrKeyHash lcommon.AddrKeyHash
var tmpCert lcommon.PoolRegistrationCertificate
var tmpMargin cbor.Rat
var tmpMargin lcommon.GenesisRat
var tmpRelay lcommon.PoolRelay
for _, cert := range certs {
tmpMargin = cbor.Rat{Rat: cert.Margin.Rat}
tmpMargin = lcommon.GenesisRat{Rat: cert.Margin.Rat}
tmpCert = lcommon.PoolRegistrationCertificate{
CertType: lcommon.CertificateTypePoolRegistration,
Operator: lcommon.PoolKeyHash(
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
connectrpc.com/connect v1.18.1
connectrpc.com/grpchealth v1.4.0
connectrpc.com/grpcreflect v1.3.0
github.com/blinklabs-io/gouroboros v0.130.1
github.com/blinklabs-io/gouroboros v0.131.0
github.com/blinklabs-io/ouroboros-mock v0.3.8
github.com/dgraph-io/badger/v4 v4.8.0
github.com/glebarez/sqlite v1.11.0
Expand Down Expand Up @@ -38,7 +38,7 @@ require (
github.com/ClickHouse/clickhouse-go/v2 v2.30.0 // indirect
github.com/andybalholm/brotli v1.1.1 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/blinklabs-io/plutigo v0.0.3 // indirect
github.com/blinklabs-io/plutigo v0.0.4 // indirect
github.com/btcsuite/btcd/btcutil v1.1.6 // indirect
github.com/cenkalti/backoff/v5 v5.0.2 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ github.com/andybalholm/brotli v1.1.1 h1:PR2pgnyFznKEugtsUo0xLdDop5SKXd5Qf5ysW+7X
github.com/andybalholm/brotli v1.1.1/go.mod h1:05ib4cKhjx3OQYUY22hTVd34Bc8upXjOLL2rKwwZBoA=
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
github.com/blinklabs-io/gouroboros v0.130.1 h1:OrNxV1z/YIqAYBkAJZcVi2lDg16rZ3RJCk9YxsJvp6M=
github.com/blinklabs-io/gouroboros v0.130.1/go.mod h1:+tBHYgbI9TsFs31WQrLXItWLVQhcahXS5YzthS0bwfQ=
github.com/blinklabs-io/gouroboros v0.131.0 h1:dFP4ST3CwhWbxOHwxrISEEkA7MFMFEUct0JGaZLDhm0=
github.com/blinklabs-io/gouroboros v0.131.0/go.mod h1:5xRJwdcmSrPGOetX2+AkPuk3DxNUoqHPzTbYa2XKPCE=
github.com/blinklabs-io/ouroboros-mock v0.3.8 h1:+DAt2rx0ouZUxee5DBMgZq3I1+ZdxFSHG9g3tYl/FKU=
github.com/blinklabs-io/ouroboros-mock v0.3.8/go.mod h1:UwQIf4KqZwO13P9d90fbi3UL/X7JaJfeEbqk+bEeFQA=
github.com/blinklabs-io/plutigo v0.0.3 h1:t5ujYD+1uCFy/JPu04dZEyN5Wfzhp4KsOTQabkRSPng=
github.com/blinklabs-io/plutigo v0.0.3/go.mod h1:49P8jixVWblHzdYdiFmnPPCTDd8SxZ6IvlfRBQRIldQ=
github.com/blinklabs-io/plutigo v0.0.4 h1:YhSt25yTqzfyUAzO0G/UihB16/lZNsvS6J7THO0f3ss=
github.com/blinklabs-io/plutigo v0.0.4/go.mod h1:sXfzbcwvVS8AbyNNVnhyyIT18f88IZMqg5cwOBmiafU=
github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ=
github.com/btcsuite/btcd v0.22.0-beta.0.20220111032746-97732e52810c/go.mod h1:tjmYdS6MLJ5/s0Fj4DbLgSbDHbEqLJrtnHecBFkdz5M=
github.com/btcsuite/btcd v0.23.5-0.20231215221805-96c9fd8078fd/go.mod h1:nm3Bko6zh6bWP60UxwoT5LzdGJsQJaPo6HjduXq9p6A=
Expand Down
Loading