Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
7 changes: 7 additions & 0 deletions cmd/gouroboros/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,13 @@ func testQuery(f *globalFlags) {
}
}
}
case "proposed-protocol-params-updates":
proposedUpdates, err := o.LocalStateQuery().Client.GetProposedProtocolParamsUpdates()
if err != nil {
fmt.Printf("ERROR: failure querying proposed protocol params updates: %s\n", err)
os.Exit(1)
}
fmt.Printf("proposed-protocol-params-updates: %v\n", *proposedUpdates)
default:
fmt.Printf("ERROR: unknown query: %s\n", queryFlags.flagset.Args()[0])
os.Exit(1)
Expand Down
7 changes: 5 additions & 2 deletions protocol/localstatequery/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ import (

"github.com/blinklabs-io/gouroboros/cbor"
"github.com/blinklabs-io/gouroboros/ledger"
"github.com/blinklabs-io/gouroboros/ledger/common"
)

// GenesisHash is a type alias for the Blake2b-224 hash used for genesis keys
type GenesisHash = ledger.Blake2b224

// Query types
const (
QueryTypeBlock = 0
Expand Down Expand Up @@ -521,8 +525,7 @@ type CurrentProtocolParamsResult interface {
any
}

// TODO (#861)
type ProposedProtocolParamsUpdatesResult any
type ProposedProtocolParamsUpdatesResult map[GenesisHash]common.ProtocolParameterUpdate

type StakeDistributionResult struct {
cbor.StructAsArray
Expand Down
Loading