File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ require (
88 connectrpc.com/connect v1.18.1
99 connectrpc.com/grpchealth v1.4.0
1010 connectrpc.com/grpcreflect v1.3.0
11- github.com/blinklabs-io/gouroboros v0.124 .0
11+ github.com/blinklabs-io/gouroboros v0.125 .0
1212 github.com/blinklabs-io/ouroboros-mock v0.3.8
1313 github.com/dgraph-io/badger/v4 v4.7.0
1414 github.com/glebarez/sqlite v1.11.0
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ github.com/andybalholm/brotli v1.1.0 h1:eLKJA0d02Lf0mVpIDgYnqXcUn0GqVmEFny3VuID1
1515github.com/andybalholm/brotli v1.1.0 /go.mod h1:sms7XGricyQI9K10gOSf56VKKWS4oLer58Q+mhRPtnY =
1616github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM =
1717github.com/beorn7/perks v1.0.1 /go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw =
18- github.com/blinklabs-io/gouroboros v0.124 .0 h1:k6C5Dd73PtCpUq50TA1o24MHfHXtoKu7hGTrFv1BEUY =
19- github.com/blinklabs-io/gouroboros v0.124 .0 /go.mod h1:LUGnvJ1iOmpCihNxT9fyZFf6KD5E45sV8ZqEUgljzDw =
18+ github.com/blinklabs-io/gouroboros v0.125 .0 h1:hx2xFSnjR5FgrZUBi8fVcR1umRM07L8Q8vJRUgTRKBI =
19+ github.com/blinklabs-io/gouroboros v0.125 .0 /go.mod h1:LUGnvJ1iOmpCihNxT9fyZFf6KD5E45sV8ZqEUgljzDw =
2020github.com/blinklabs-io/ouroboros-mock v0.3.8 h1:+DAt2rx0ouZUxee5DBMgZq3I1+ZdxFSHG9g3tYl/FKU =
2121github.com/blinklabs-io/ouroboros-mock v0.3.8 /go.mod h1:UwQIf4KqZwO13P9d90fbi3UL/X7JaJfeEbqk+bEeFQA =
2222github.com/btcsuite/btcd v0.20.1-beta /go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ =
Original file line number Diff line number Diff line change @@ -207,11 +207,16 @@ func (ls *LedgerState) createGenesisBlock() error {
207207 err := txn .Do (func (txn * database.Txn ) error {
208208 // Record genesis UTxOs
209209 byronGenesis := ls .config .CardanoNodeConfig .ByronGenesis ()
210- genesisUtxos , err := byronGenesis .GenesisUtxos ()
210+ byronGenesisUtxos , err := byronGenesis .GenesisUtxos ()
211211 if err != nil {
212- return fmt .Errorf ("failed to generate genesis UTxOs: %w" , err )
212+ return fmt .Errorf ("generate Byron genesis UTxOs: %w" , err )
213213 }
214- for _ , utxo := range genesisUtxos {
214+ shelleyGenesis := ls .config .CardanoNodeConfig .ShelleyGenesis ()
215+ shelleyGenesisUtxos , err := shelleyGenesis .GenesisUtxos ()
216+ if err != nil {
217+ return fmt .Errorf ("generate Shelley genesis UTxOs: %w" , err )
218+ }
219+ for _ , utxo := range slices .Concat (byronGenesisUtxos , shelleyGenesisUtxos ) {
215220 outAddr := utxo .Output .Address ()
216221 outputCbor , err := cbor .Encode (utxo .Output )
217222 if err != nil {
You can’t perform that action at this time.
0 commit comments