Skip to content

Commit

Permalink
add dataapi database url
Browse files Browse the repository at this point in the history
  • Loading branch information
lukanus committed Mar 20, 2023
1 parent 8536841 commit 8a2779c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions cmd/dreamboat/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,12 @@ var flags = []cli.Flag{
Value: "",
EnvVars: []string{"RELAY_VALIDATOR_DATABASE_URL"},
},
&cli.StringFlag{
Name: "relay-dataapi-database-url",
Usage: "address of postgress database for dataapi, if empty - default, badger will be used",
Value: "",
EnvVars: []string{"RELAY_DATAAPI_DATABASE_URL"},
},
&cli.BoolFlag{
Name: "relay-fast-boot",
Usage: "speed up booting up of relay, adding temporary inconsistency on the builder_blocks_received endpoint",
Expand Down
2 changes: 1 addition & 1 deletion datastore/datastore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func randomPayload() *types.ExecutionPayload {
}
}

func randomBlockBidAndTrace() *structs.BlockBidAndTrace {
func randomBlockBidAndTrace() structs.BlockBidAndTrace {

sk, _, _ := bls.GenerateNewKeypair()

Expand Down

0 comments on commit 8a2779c

Please sign in to comment.