diff --git a/cmd/dreamboat/main.go b/cmd/dreamboat/main.go index b1bfcdeb..964a77a8 100644 --- a/cmd/dreamboat/main.go +++ b/cmd/dreamboat/main.go @@ -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", diff --git a/datastore/datastore_test.go b/datastore/datastore_test.go index e820db04..91350ef5 100644 --- a/datastore/datastore_test.go +++ b/datastore/datastore_test.go @@ -87,7 +87,7 @@ func randomPayload() *types.ExecutionPayload { } } -func randomBlockBidAndTrace() *structs.BlockBidAndTrace { +func randomBlockBidAndTrace() structs.BlockBidAndTrace { sk, _, _ := bls.GenerateNewKeypair()