@@ -61,6 +61,10 @@ EXTLDFLAGS := -static -static-libstdc++ -static-libgcc
6161export GOBUILDMODE := -buildmode=exe
6262endif
6363
64+ ifeq ($(SHORT_PART_PERIOD ) , 1)
65+ export SHORT_PART_PERIOD_FLAG := -s
66+ endif
67+
6468GOTAGS := --tags "$(GOTAGSLIST ) "
6569GOTRIMPATH := $(shell GOPATH=$(GOPATH ) && go help build | grep -q .-trimpath && echo -trimpath)
6670
@@ -76,7 +80,7 @@ GOLDFLAGS := $(GOLDFLAGS_BASE) \
7680UNIT_TEST_SOURCES := $(sort $(shell GOPATH=$(GOPATH ) && GO111MODULE=off && go list ./... | grep -v /go-algorand/test/ ) )
7781ALGOD_API_PACKAGES := $(sort $(shell GOPATH=$(GOPATH ) && GO111MODULE=off && cd daemon/algod/api; go list ./... ) )
7882
79- MSGP_GENERATE := ./protocol ./protocol/test ./crypto ./crypto/compactcert ./data/basics ./data/transactions ./data/committee ./data/bookkeeping ./data/hashable ./agreement ./rpcs ./node ./ledger ./ledger/ledgercore ./compactcert ./data/account
83+ MSGP_GENERATE := ./protocol ./protocol/test ./crypto ./crypto/merklearray ./crypto/merklesignature ./crypto/ compactcert ./data/basics ./data/transactions ./data/committee ./data/bookkeeping ./data/hashable ./agreement ./rpcs ./node ./ledger ./ledger/ledgercore ./compactcert ./data/account
8084
8185default : build
8286
@@ -290,7 +294,7 @@ gen/%/genesis.dump: gen/%/genesis.json
290294 ./scripts/dump_genesis.sh $< > $@
291295
292296gen/% /genesis.json : gen/% .json gen/generate.go buildsrc
293- $(GOPATH1 ) /bin/genesis -q -n $(shell basename $(shell dirname $@ ) ) -c $< -d $(subst .json,,$< )
297+ $(GOPATH1 ) /bin/genesis -q $( SHORT_PART_PERIOD_FLAG ) -n $(shell basename $(shell dirname $@ ) ) -c $< -d $(subst .json,,$< )
294298
295299gen : $(addsuffix gen, $(NETWORKS ) ) mainnetgen
296300
@@ -303,6 +307,9 @@ gen/mainnet/genesis.dump: gen/mainnet/genesis.json
303307
304308mainnetgen : gen/mainnet/genesis.dump
305309
310+ # The mainnet genesis.json file generated by this target does not have timestamp value so the hash is different from the deployed mainnet,
311+ # use a real genesis.json file from installer/genesis/mainnet/genesis.json if needed.
312+ # This target is preserved as part of the history on how mainnet genesis.json was generated from the CSV file.
306313gen/mainnet/genesis.json : gen/pregen/mainnet/genesis.csv buildsrc
307314 mkdir -p gen/mainnet
308315 cat gen/pregen/mainnet/genesis.csv | $(GOPATH1 ) /bin/incorporate -m gen/pregen/mainnet/metadata.json > gen/mainnet/genesis.json
0 commit comments