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
2 changes: 1 addition & 1 deletion internal/api/chainsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ func configureChainSyncRoutes(apiGroup *gin.RouterGroup) {
}

type requestChainSyncSync struct {
Slot uint64 `form:"slot"`
Hash string `form:"hash"`
Slot uint64 `form:"slot"`
Tip bool `form:"tip"`
}

Expand Down
4 changes: 2 additions & 2 deletions internal/api/localstatequery.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ func configureLocalStateQueryRoutes(apiGroup *gin.RouterGroup) {
}

type responseLocalStateQueryCurrentEra struct {
Id uint8 `json:"id"`
Name string `json:"name"`
Id uint8 `json:"id"`
}

// handleLocalStateQueryCurrentEra godoc
Expand Down Expand Up @@ -149,10 +149,10 @@ func handleLocalStateQuerySystemStart(c *gin.Context) {

type responseLocalStateQueryTip struct {
Era string `json:"era"`
Hash string `json:"hash"`
EpochNo int `json:"epoch_no"`
BlockNo int64 `json:"block_no"`
Slot uint64 `json:"slot_no"`
Hash string `json:"hash"`
}

// handleLocalStateQueryTip godoc
Expand Down
8 changes: 4 additions & 4 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ type Config struct {
}

type LoggingConfig struct {
Healthchecks bool `yaml:"healthchecks" envconfig:"LOGGING_HEALTHCHECKS"`
Level string `yaml:"level" envconfig:"LOGGING_LEVEL"`
Healthchecks bool `yaml:"healthchecks" envconfig:"LOGGING_HEALTHCHECKS"`
}

type ApiConfig struct {
Expand All @@ -55,13 +55,13 @@ type MetricsConfig struct {

type NodeConfig struct {
Network string `yaml:"network" envconfig:"CARDANO_NETWORK"`
NetworkMagic uint32 `yaml:"networkMagic" envconfig:"CARDANO_NODE_NETWORK_MAGIC"`
Address string `yaml:"address" envconfig:"CARDANO_NODE_SOCKET_TCP_HOST"`
SocketPath string `yaml:"socketPath" envconfig:"CARDANO_NODE_SOCKET_PATH"`
Port uint `yaml:"port" envconfig:"CARDANO_NODE_SOCKET_TCP_PORT"`
QueryTimeout uint `yaml:"queryTimeout" envconfig:"CARDANO_NODE_SOCKET_QUERY_TIMEOUT"`
SkipCheck bool `yaml:"skipCheck" envconfig:"CARDANO_NODE_SKIP_CHECK"`
SocketPath string `yaml:"socketPath" envconfig:"CARDANO_NODE_SOCKET_PATH"`
Timeout uint `yaml:"timeout" envconfig:"CARDANO_NODE_SOCKET_TIMEOUT"`
NetworkMagic uint32 `yaml:"networkMagic" envconfig:"CARDANO_NODE_NETWORK_MAGIC"`
SkipCheck bool `yaml:"skipCheck" envconfig:"CARDANO_NODE_SKIP_CHECK"`
}

type UtxorpcConfig struct {
Expand Down