include_lmdb_stat_tool (#1206)

This commit is contained in:
Alex Sharov 2020-10-08 14:11:36 +07:00 committed by GitHub
parent 9ff9a1a486
commit 79815e4298
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -19,7 +19,7 @@ ifeq ($(OS),Linux)
PROTOC_OS = linux PROTOC_OS = linux
endif endif
all: tg hack tester rpctest state restapi pics rpcdaemon integration all: tg hack tester rpctest state restapi pics rpcdaemon integration lmdb-tools
docker: docker:
docker build -t turbo-geth:latest . docker build -t turbo-geth:latest .
@ -99,6 +99,12 @@ headers:
@echo "Done building." @echo "Done building."
@echo "Run \"$(GOBIN)/integration\" to run headers download PoC." @echo "Run \"$(GOBIN)/integration\" to run headers download PoC."
lmdb-tools:
$(GOBUILD) -o $(GOBIN)/lmdb_stat github.com/ledgerwatch/lmdb-go/cmd/lmdb_stat
$(GOBUILD) -o $(GOBIN)/lmdb_copy github.com/ledgerwatch/lmdb-go/cmd/lmdb_copy
@echo "Done building."
@echo "Run \"$(GOBIN)/lmdb_stat -h\" to get info about lmdb file."
test: semantics/z3/build/libz3.a test: semantics/z3/build/libz3.a
$(GOTEST) $(GOTEST)

View File

@ -17,6 +17,8 @@ package main
import ( import (
_ "github.com/fjl/gencodec" _ "github.com/fjl/gencodec"
_ "github.com/kevinburke/go-bindata" _ "github.com/kevinburke/go-bindata"
_ "github.com/ledgerwatch/lmdb-go/cmd/lmdb_copy"
_ "github.com/ledgerwatch/lmdb-go/cmd/lmdb_stat"
_ "github.com/ugorji/go/codec/codecgen" _ "github.com/ugorji/go/codec/codecgen"
_ "golang.org/x/tools/cmd/stringer" _ "golang.org/x/tools/cmd/stringer"
_ "google.golang.org/grpc/cmd/protoc-gen-go-grpc" _ "google.golang.org/grpc/cmd/protoc-gen-go-grpc"