From 8a2779c8beaecdb5c382e05ba37355eba128b12a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mi=C5=82kowski?= Date: Mon, 20 Mar 2023 17:23:20 +0100 Subject: [PATCH] add dataapi database url --- cmd/dreamboat/main.go | 6 ++++++ datastore/datastore_test.go | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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()