File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -305,6 +305,13 @@ func testQuery(f *globalFlags) {
305305 }
306306 }
307307 }
308+ case "proposed-protocol-params-updates" :
309+ proposedUpdates , err := o .LocalStateQuery ().Client .GetProposedProtocolParamsUpdates ()
310+ if err != nil {
311+ fmt .Printf ("ERROR: failure querying proposed protocol params updates: %s\n " , err )
312+ os .Exit (1 )
313+ }
314+ fmt .Printf ("proposed-protocol-params-updates: %v\n " , * proposedUpdates )
308315 default :
309316 fmt .Printf ("ERROR: unknown query: %s\n " , queryFlags .flagset .Args ()[0 ])
310317 os .Exit (1 )
Original file line number Diff line number Diff line change @@ -110,6 +110,9 @@ func Blake2b224Hash(data []byte) Blake2b224 {
110110 return Blake2b224 (tmpHash .Sum (nil ))
111111}
112112
113+ // GenesisHash is a type alias for the Blake2b-224 hash used for genesis keys
114+ type GenesisHash = Blake2b224
115+
113116type Blake2b160 [Blake2b160Size ]byte
114117
115118func NewBlake2b160 (data []byte ) Blake2b160 {
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import (
2121
2222 "github.com/blinklabs-io/gouroboros/cbor"
2323 "github.com/blinklabs-io/gouroboros/ledger"
24+ "github.com/blinklabs-io/gouroboros/ledger/common"
2425)
2526
2627// Query types
@@ -521,8 +522,7 @@ type CurrentProtocolParamsResult interface {
521522 any
522523}
523524
524- // TODO (#861)
525- type ProposedProtocolParamsUpdatesResult any
525+ type ProposedProtocolParamsUpdatesResult map [common.GenesisHash ]common.ProtocolParameterUpdate
526526
527527type StakeDistributionResult struct {
528528 cbor.StructAsArray
You can’t perform that action at this time.
0 commit comments