-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (34 loc) · 1.02 KB
/
Makefile
File metadata and controls
38 lines (34 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
VERSION := $(shell git describe --tags --always --dirty="-dev" --match "v*.*.*" || echo "development" )
VERSION := $(VERSION:v%=%)
.PHONY: build
build:
@CGO_ENABLED=0 SOURCE_DATE_EPOCH=0 go build \
-trimpath \
-ldflags "-s -w -X main.version=${VERSION} -buildid=" \
-o ./bin/bproxy \
github.com/flashbots/bproxy/cmd
.PHONY: snapshot
snapshot:
@goreleaser release --snapshot --clean
.PHONY: help
help:
@go run github.com/flashbots/bproxy/cmd serve --help
.PHONY: serve
serve:
@go run github.com/flashbots/bproxy/cmd \
--log-level info \
serve \
--authrpc-backend http://127.0.0.1:8651 \
--authrpc-enabled \
--authrpc-listen-address 127.0.0.1:18651 \
--authrpc-log-requests \
--authrpc-log-responses \
--flashblocks-backend ws://127.0.0.1:1111 \
--flashblocks-enabled \
--flashblocks-listen-address 127.0.0.1:11111 \
--flashblocks-log-messages \
--rpc-backend http://127.0.0.1:8645 \
--rpc-enabled \
--rpc-listen-address 127.0.0.1:18645 \
--rpc-log-requests \
--rpc-log-responses