Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
58f59e3
Ensure we stop kmd in case of a failuire to stop algod (#2169)
tsachiherman May 20, 2021
364db6d
fix go vet error for string(int) conversion preventing running tests …
cce May 21, 2021
943b3ab
Refactor code generation verification (#2108)
tsachiherman May 21, 2021
93278a8
Increase ASA URL size (#2147)
jdtzmn May 21, 2021
2478653
testing: improve e2e protocol upgrade tests (#2176)
tsachiherman May 22, 2021
680bc9a
Fix rekey upgrade test (#2178)
tsachiherman May 25, 2021
28983d5
network: start network only after handlers registration is complete (…
tsachiherman May 25, 2021
15bfd9a
disable expect tests (#2187)
tsachiherman May 25, 2021
c8df55f
Teal4 math (#2139)
jannotti May 25, 2021
bfc5ef7
testing: fix TestRekeyUpgrade when round=0 (#2188)
tsachiherman May 25, 2021
52be0a4
Improve fresh node startup time (#2185)
tsachiherman May 26, 2021
ccbf24d
PeerSelector and Catchup service tests (#2184)
algonautshant May 26, 2021
0cf730b
Adding missing test for universalFetcher.go (#2175)
algonautshant May 26, 2021
4e763c8
testing: fix data race accessing messagesOfInterest during network sh…
winder May 26, 2021
3f393b3
Add mention of install_buildtools.sh to README (#2195)
cce May 26, 2021
3468d14
Remove buildnumber.dat and genesistimestamp.dat files.
Algo-devops-service May 26, 2021
3e33381
run some independent commands in parallel, total test 230s -> 170s (#…
brianolson May 26, 2021
98ac808
Update version.go
algobarb May 26, 2021
932c0ea
testing: e2e sub assets-app speedup (#2198)
brianolson May 26, 2021
2558483
Clean up `goal wallet new` output (#2183)
cce May 26, 2021
2de00f2
testing: fix bug in TestApplicationsUpgradeOverREST (#2196)
tsachiherman May 26, 2021
3fa882c
Merge pull request #2199 from Algo-devops-service/relstable2.6.0-remerge
algojohnlee May 27, 2021
814374b
debug tools: improve carpenter by adding timestamp (#2207)
tsachiherman May 27, 2021
2a5061e
Improve testing predicate to provide better info in case of a fail ca…
tsachiherman May 27, 2021
e63ebe6
Re-enable gofmt check during travis build (#2212)
cce May 27, 2021
0cbe9d4
A test recommendended by Pavel, an imporvment rec'd by Brian (#2216)
jannotti May 28, 2021
62b21a5
"Rent" larger program size (#2157)
shiqizng May 28, 2021
85a5bb9
Access values from a previous app call's scratch space (#2158)
jdtzmn May 28, 2021
b85ef51
Refresh wallet handle after waiting for series of rounds, as handle m…
tsachiherman May 29, 2021
2b00885
Fix proposal propagation (#2079)
May 29, 2021
23bfcd7
Correct path to genesis file in nightly perf testing (#2218)
algobarb May 30, 2021
3a4a37f
pool fees in a txgroup (#2173)
jannotti Jun 1, 2021
7e2f656
Fixing a bug in eval and TestOnSwitchToUnSupportedProtocol (#2220)
algonautshant Jun 3, 2021
401cae2
Extend catchpoint wait for round timeout from 10 to 60 milliseconds. …
egieseke Jun 3, 2021
32d861b
bandwidth stats for cluster tests (#2159)
brianolson Jun 3, 2021
8d908b0
Check setbyte length properly. (#2236)
jannotti Jun 4, 2021
0104285
Use minimal travis container since we install go ourselves. (#2232)
winder Jun 4, 2021
fcdf213
Modify build_release to match build_pr and remove ARM Deploy. (#2237)
onetechnical Jun 4, 2021
a1b3bc0
Fix rel nightly test by extending catchpoint round timeout (#2240)
egieseke Jun 4, 2021
11f45d4
Fix the two docker files - avoid make deps step, which is no longer n…
tsachiherman Jun 4, 2021
a1ba230
Use gotestsum instead of logfilter for test formatting. (#2161)
winder Jun 4, 2021
cc01fdd
Ensures that the catchup service have the network library load the DN…
tsachiherman Jun 6, 2021
42fc19d
Combine Clear and Approval Program size limits (#2225)
jannotti Jun 7, 2021
158a6ac
Remove ci-deps and update GOPROXY in Dockerfiles (#2247)
onetechnical Jun 7, 2021
89ee49a
codecov integration (#2228)
winder Jun 7, 2021
a0bc4c9
Disable compact certs and auction tests (#2254)
bricerisingalgorand Jun 8, 2021
4825902
If the branch is rel/nightly set channel to nightly (#2252)
onetechnical Jun 8, 2021
d3f49be
Optimize constant assembly (#2215)
jasonpaulos Jun 8, 2021
06faea5
combine app state key/value size limits (#2172)
jannotti Jun 9, 2021
a931531
Catchupaccessor coverage (#2235)
brianolson Jun 9, 2021
06201cd
Expose creatable IDs to TEAL code within the same group (#2243)
jdtzmn Jun 9, 2021
c7b017a
Allow AVM code to access a max number of foreign refs. (#2263)
jannotti Jun 9, 2021
f75b9dc
deprecate auction code (#2261)
winder Jun 9, 2021
cfdec27
Temporarily disabled TestBasicCatchpointCatchup and reset test timeou…
egieseke Jun 10, 2021
61dfa87
Add support for RHEL Centos 8 RPM (#2190)
egieseke Jun 10, 2021
6465943
Disable TestPeriodicSync test (#2269)
egieseke Jun 10, 2021
7529897
Fix incorrect `gaid` and `gaids` docs (#2275)
jdtzmn Jun 10, 2021
7ffc3eb
Regularize access to "foreign" references. (#2264)
jannotti Jun 10, 2021
c9171c6
fix random failure (#2280)
tsachiherman Jun 12, 2021
a9705a1
Make account endpoint produce deterministic output (#2276)
jasonpaulos Jun 14, 2021
ff9f69d
final v28 foundation spec (#2286)
jannotti Jun 15, 2021
02eacd1
report substring missing immediates properly (#2287)
jannotti Jun 15, 2021
1ca4ef8
Introduce V28 consensus version (#2255)
algorandskiy Jun 16, 2021
37b828a
Forgot to run .md generation (#2292)
jannotti Jun 16, 2021
0a3d9df
Allow fee to be below minfee, if given explicitly. (#2295)
jannotti Jun 16, 2021
5fb7ac8
Expose extra program pages to API (#2294)
jasonpaulos Jun 16, 2021
65aa0da
testing: fix random failure in TestAppEmptyAccountsLocal (#2302)
tsachiherman Jun 17, 2021
78a221c
Update the Version, BuildNumber, genesistimestamp.data
Algo-devops-service Jun 17, 2021
d57586a
Merge pull request #2304 from Algo-devops-service/relbeta2.7.0
algojohnlee Jun 17, 2021
855fac7
Merge pull request #2313 from algorandskiy/pavel/extra-pages-api
tsachiherman Jun 21, 2021
0b18c94
Bump buildnumber.dat
onetechnical Jun 21, 2021
dc829f6
Merge pull request #2314 from onetechnical/onetechnical/relbeta2.7.1
algojohnlee Jun 22, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@
*.out
*.prof
coverage.html
coverage.txt
cover.out
cpu.out
mem.out
mutex.out

# cadaver
*.cdv
*.cdv.archive

# swagger
swagger.json
swagger.json.validated
kmdSwaggerWrappers.go
bundledSpecInject.go

# Exclude GoLand files
.idea/

Expand Down
58 changes: 40 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
os: linux
dist: bionic
go_import_path: github.com/algorand/go-algorand
language: go
language: minimal

# Don't build tags
if: tag IS blank
Expand Down Expand Up @@ -32,6 +31,11 @@ jobs:
- travis_retry scripts/travis/build_test.sh

- stage: build_pr
os: linux
name: Ubuntu AMD64 CodeGen Verification
script:
- scripts/travis/codegen_verification.sh
- # same stage, parallel job
os: linux
name: Ubuntu AMD64 Build
script:
Expand Down Expand Up @@ -88,6 +92,11 @@ jobs:
- travis_retry $mingw64 scripts/travis/build_test.sh

- stage: build_release
os: linux
name: Ubuntu AMD64 CodeGen Verification
script:
- scripts/travis/codegen_verification.sh
- # same stage, parallel job
os: linux
name: Ubuntu AMD64 Build
script:
Expand All @@ -98,11 +107,17 @@ jobs:
script:
- travis_retry ./scripts/travis/integration_test.sh
- # same stage, parallel job
os: osx
osx_image: xcode11
name: MacOS AMD64 Build
name: External ARM64 Build
os: linux
env:
- BUILD_TYPE: "external_build"
- TARGET_PLATFORM: "linux-arm64"
addons:
apt:
packages:
- awscli
script:
- travis_retry scripts/travis/build_test.sh
- travis_retry scripts/travis/external_build.sh ./scripts/travis/build_test.sh
- # same stage, parallel job
name: External ARM64 Integration Test
os: linux
Expand All @@ -115,6 +130,18 @@ jobs:
- awscli
script:
- scripts/travis/external_build.sh ./scripts/travis/integration_test.sh
- # same stage, parallel job
os: osx
osx_image: xcode11
name: MacOS AMD64 Build
script:
- travis_retry scripts/travis/build_test.sh
- # same stage, parallel job
os: osx
osx_image: xcode11
name: MacOS AMD64 Integration Test
script:
- travis_retry ./scripts/travis/integration_test.sh
- # same stage, parallel job
os: windows
name: Windows x64 Build
Expand Down Expand Up @@ -148,18 +175,6 @@ jobs:
- awscli
script:
- scripts/travis/external_build.sh ./scripts/travis/deploy_packages.sh
- # same stage, parallel job
name: External ARM Deploy
os: linux
env:
- BUILD_TYPE: "external_build"
- TARGET_PLATFORM: "linux-arm"
addons:
apt:
packages:
- awscli
script:
- scripts/travis/external_build.sh ./scripts/travis/deploy_packages.sh

# Don't rebuild libsodium every time
cache:
Expand Down Expand Up @@ -202,6 +217,9 @@ before_cache:
esac
docker save -o $HOME/docker_cache/images.tar $(docker images -a -q)

after_success:
- scripts/travis/upload_coverage.sh || true

addons:
apt:
packages:
Expand All @@ -219,3 +237,7 @@ addons:
notifications:
slack:
secure: lBomhenfQvDzpUGxLadga188zavtGRr05GVWI6iI8ll/uwXewij8ginQ716Axg3pJvvRMNCuTNEmg0+fVlHf0JxTG3qWG35qOUexAHGcmimPD4ugmVkufua8Oc8Nl1LRSdWvbwIKvrAU1HDA37M5tCdEOm+Sf/OL72iVWbXhlHRvhdeiKHkbkcpI/15dOH4RpXuvPeYBrgcB2Ixs7gTSVyIAU458aT0JORu7expElQ+iBP9Kqze1V4dvjJyzHTgE01z2nyAm2Xpko447y//fYX2e20iDBE5S/GukaK/TeB3pD+FoC+Z2R7Gg1qA7a/gdGFbVgP12zWmzNaKVwY1YOvx8IIwP13XutioAE7bQbnHI1zGlQ+jxk3odWKZPhZSN/YvWD3i7g/xVksaTo++zwon2UlZ7x8LmKg1kOMeA3o2TUlzjQrwZZ4cB+4HqYHEqVdsSAadaMhKK82XE1OtGImdrIX1Y/02X2F/myJXwaE4Ap8smULHWGghCL/ALad+hdyE0K4/2SYDcoaOONgX9+VgaSEtYDO00Bt4/GMcuM+gwILsfCA9ZQuxCgIFEL1QWwDud8aGU1qF20yaimDlstlLnZXsv3Oli6r/CEEUVXltI5dkJyRd/jTlqWGjFGL8agGg34EPLP24Vn4h4QcIzoMfGWXkz2yrd6i0fvMAPXds=
env:
global:
secure: YMLx+QaBPgg97tVn2efZJSqwPRxybX9oR6Xe9oXUD4fEiVbOIv2BAsLP+MzSJGaFC+VXKha83kyDbAZnatDXTJYsBPOUgmIZDObQnktueR1v3TCKn3aw14G+/w6S4eQL+c7uW3idPE+KP3VWixjrBpWTHEfnZdnH9+qWeIWzy8A8UEAYPY/HXyDmwt5ceCJoITtdsuiuZNO2o7NGN8q+NP5A3ii8f5UyDa9/krxuA+x1e193wSGRdGcqxexM7zIq0uMhBF+2nOk4RAsDsqU33NpQw+dB1VJMta1XF+P6A7m16UKUjllTyOfUPGD068jKobVyWzbvZ79G2FZXGZ7HGE0711JZco3YenwtxXP8oGLgaIds6McoJnn3rbxe1i+PjRX09IXNQM/dNp53uxrtyi1y8ZEjzHjbb6z3rSOZrzaBhdVxBFR9Oc1Ek7i8MS1tlRlH58+U+Z1WPTvbcIQtFA5HmmTcDdBRkZtPC8bpVLHOZTGUcple9k39VtOGuSCvAAfHKENhieCaw/bBXX4bxAHAfiI0NEmdDrULDJLApWjtRCrUIqIqkdsJmtiZhE+iX1FKR9CP5lBXCAwDlPB3XOe0bSmiiGQ1/sf/1CovqOBg/vLwCpjQE0IZPofCiDZZdZbv4n4aCOjiAqhS8MjJ/LfLyUuAtPmQG5g47FzS1K4=

60 changes: 31 additions & 29 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ GOTAGSLIST := sqlite_unlock_notify sqlite_omit_load_extension
# e.g. make GOTAGSCUSTOM=msgtrace
GOTAGSLIST += ${GOTAGSCUSTOM}

# If available, use gotestsum instead of 'go test'.
ifeq (, $(shell which gotestsum))
export GOTESTCOMMAND=go test
else
export GOTESTCOMMAND=gotestsum --format pkgname --jsonfile testresults.json --
endif

ifeq ($(UNAME), Linux)
EXTLDFLAGS := -static-libstdc++ -static-libgcc
ifeq ($(ARCH), amd64)
Expand Down Expand Up @@ -68,7 +75,7 @@ GOLDFLAGS := $(GOLDFLAGS_BASE) \
UNIT_TEST_SOURCES := $(sort $(shell GOPATH=$(GOPATH) && GO111MODULE=off && go list ./... | grep -v /go-algorand/test/ ))
ALGOD_API_PACKAGES := $(sort $(shell GOPATH=$(GOPATH) && GO111MODULE=off && cd daemon/algod/api; go list ./... ))

MSGP_GENERATE := ./protocol ./crypto ./crypto/compactcert ./data/basics ./data/transactions ./data/committee ./data/bookkeeping ./data/hashable ./auction ./agreement ./rpcs ./node ./ledger ./ledger/ledgercore ./compactcert
MSGP_GENERATE := ./protocol ./crypto ./crypto/compactcert ./data/basics ./data/transactions ./data/committee ./data/bookkeeping ./data/hashable ./agreement ./rpcs ./node ./ledger ./ledger/ledgercore ./compactcert

default: build

Expand All @@ -81,9 +88,6 @@ fmt:
fix: build
$(GOPATH1)/bin/algofix */

fixcheck: build
$(GOPATH1)/bin/algofix -error */

lint: deps
$(GOPATH1)/bin/golint ./...

Expand Down Expand Up @@ -148,7 +152,7 @@ $(ALGOD_API_SWAGGER_SPEC): $(ALGOD_API_FILES) crypto/libs/$(OS_TYPE)/$(ARCH)/lib
PATH=$(GOPATH1)/bin:$$PATH \
go generate ./...

$(ALGOD_API_SWAGGER_INJECT): $(ALGOD_API_SWAGGER_SPEC) $(ALGOD_API_SWAGGER_SPEC).validated
$(ALGOD_API_SWAGGER_INJECT): deps $(ALGOD_API_SWAGGER_SPEC) $(ALGOD_API_SWAGGER_SPEC).validated
./daemon/algod/api/server/lib/bundle_swagger_json.sh

# Regenerate kmd swagger spec files
Expand All @@ -175,35 +179,45 @@ $(KMD_API_SWAGGER_SPEC): $(KMD_API_FILES) crypto/libs/$(OS_TYPE)/$(ARCH)/lib/lib
touch $@; \
fi

$(KMD_API_SWAGGER_INJECT): $(KMD_API_SWAGGER_SPEC) $(KMD_API_SWAGGER_SPEC).validated
$(KMD_API_SWAGGER_INJECT): deps $(KMD_API_SWAGGER_SPEC) $(KMD_API_SWAGGER_SPEC).validated
./daemon/kmd/lib/kmdapi/bundle_swagger_json.sh

# generated files we should make sure we clean
GENERATED_FILES := \
$(ALGOD_API_SWAGGER_INJECT) \
$(KMD_API_SWAGGER_INJECT) \
$(ALGOD_API_SWAGGER_SPEC) $(ALGOD_API_SWAGGER_SPEC).validated \
$(KMD_API_SWAGGER_SPEC) $(KMD_API_SWAGGER_SPEC).validated

rebuild_swagger: deps
rm -f $(GENERATED_FILES)
# we need to invoke the make here since we want to ensure that the deletion and re-creating are sequential
make $(KMD_API_SWAGGER_INJECT) $(ALGOD_API_SWAGGER_INJECT)

# develop

build: buildsrc gen
build: buildsrc

# We're making an empty file in the go-cache dir to
# get around a bug in go build where it will fail
# to cache binaries from time to time on empty NFS
# dirs
buildsrc: check-go-version crypto/libs/$(OS_TYPE)/$(ARCH)/lib/libsodium.a node_exporter NONGO_BIN deps $(ALGOD_API_SWAGGER_INJECT) $(KMD_API_SWAGGER_INJECT)
buildsrc: check-go-version crypto/libs/$(OS_TYPE)/$(ARCH)/lib/libsodium.a node_exporter NONGO_BIN
mkdir -p tmp/go-cache && \
touch tmp/go-cache/file.txt && \
GOCACHE=$(SRCPATH)/tmp/go-cache go install $(GOTRIMPATH) $(GOTAGS) $(GOBUILDMODE) -ldflags="$(GOLDFLAGS)" ./...

check-go-version:
./scripts/check_golang_version.sh build

SOURCES_RACE := github.com/algorand/go-algorand/cmd/kmd

## Build binaries with the race detector enabled in them.
## This allows us to run e2e tests with race detection.
## We overwrite bin-race/kmd with a non -race version due to
## the incredible performance impact of -race on Scrypt.
build-race: build
@mkdir -p $(GOPATH1)/bin-race
GOBIN=$(GOPATH1)/bin-race go install $(GOTRIMPATH) $(GOTAGS) -race -ldflags="$(GOLDFLAGS)" ./...
GOBIN=$(GOPATH1)/bin-race go install $(GOTRIMPATH) $(GOTAGS) -ldflags="$(GOLDFLAGS)" $(SOURCES_RACE)
cp $(GOPATH1)/bin/kmd $(GOPATH1)/bin-race

NONGO_BIN_FILES=$(GOPATH1)/bin/find-nodes.sh $(GOPATH1)/bin/update.sh $(GOPATH1)/bin/COPYING $(GOPATH1)/bin/ddconfig.sh

Expand All @@ -221,45 +235,33 @@ $(GOPATH1)/bin/%:
cp -f $< $@

test: build
go test $(GOTAGS) -race $(UNIT_TEST_SOURCES) -timeout 3600s | logfilter
$(GOTESTCOMMAND) $(GOTAGS) -race $(UNIT_TEST_SOURCES) -timeout 1h -coverprofile=coverage.txt -covermode=atomic

fulltest: build-race
for PACKAGE_DIRECTORY in $(UNIT_TEST_SOURCES) ; do \
go test $(GOTAGS) -timeout 2500s -race $$PACKAGE_DIRECTORY | logfilter; \
done

shorttest: build-race $(addprefix short_test_target_, $(UNIT_TEST_SOURCES))
$(GOTESTCOMMAND) $(GOTAGS) -race $(UNIT_TEST_SOURCES) -timeout 1h -coverprofile=coverage.txt -covermode=atomic

$(addprefix short_test_target_, $(UNIT_TEST_SOURCES)): build
@go test $(GOTAGS) -short -timeout 2500s -race $(subst short_test_target_,,$@) | logfilter
shorttest: build-race
$(GOTESTCOMMAND) $(GOTAGS) -short -race $(UNIT_TEST_SOURCES) -timeout 1h -coverprofile=coverage.txt -covermode=atomic

integration: build-race
./test/scripts/run_integration_tests.sh

testall: fulltest integration

# generated files we should make sure we clean
GENERATED_FILES := daemon/algod/api/bundledSpecInject.go \
daemon/algod/api/lib/bundledSpecInject.go \
daemon/kmd/lib/kmdapi/bundledSpecInject.go \
$(ALGOD_API_SWAGGER_SPEC) $(ALGOD_API_SWAGGER_SPEC).validated \
$(KMD_API_SWAGGER_SPEC) $(KMD_API_SWAGGER_SPEC).validated

clean:
go clean -i ./...
rm -f $(GOPATH1)/bin/node_exporter
rm -f $(GENERATED_FILES)
cd crypto/libsodium-fork && \
test ! -e Makefile || make clean
rm -rf crypto/lib
rm -rf crypto/libs
rm -rf crypto/copies
rm -rf ./gen/devnet ./gen/mainnetnet ./gen/testnet

# clean without crypto
cleango:
go clean -i ./...
rm -f $(GOPATH1)/bin/node_exporter
rm -f $(GENERATED_FILES)

# assign the phony target node_exporter the dependency of the actual executable.
node_exporter: $(GOPATH1)/bin/node_exporter
Expand Down Expand Up @@ -312,7 +314,7 @@ dump: $(addprefix gen/,$(addsuffix /genesis.dump, $(NETWORKS)))
install: build
scripts/dev_install.sh -p $(GOPATH1)/bin

.PHONY: default fmt vet lint check_shell sanity cover prof deps build test fulltest shorttest clean cleango deploy node_exporter install %gen gen NONGO_BIN check-go-version
.PHONY: default fmt vet lint check_shell sanity cover prof deps build test fulltest shorttest clean cleango deploy node_exporter install %gen gen NONGO_BIN check-go-version rebuild_swagger

###### TARGETS FOR CICD PROCESS ######
include ./scripts/release/mule/Makefile.mule
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Initial environment setup:
git clone https://github.com/algorand/go-algorand
cd go-algorand
./scripts/configure_dev.sh
./scripts/buildtools/install_buildtools.sh
```

At this point you are ready to build go-algorand. We use `make` and have a
Expand Down Expand Up @@ -164,8 +165,6 @@ The following packages allow developers to interface with the Algorand system:
- `libgoal` exports a Go interface useful for developers of Algorand clients.
- `debug` holds secondary commands which assist developers during debugging.

The `auction` package implements the Algorand auctions.

The following packages contain tools to help Algorand developers deploy networks
of their own:

Expand Down
35 changes: 24 additions & 11 deletions agreement/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,22 +554,35 @@ func (p *player) handleMessageEvent(r routerHandle, e messageEvent) (actions []a
return append(actions, ignoreAction(e, ef.(payloadProcessedEvent).Err))
case payloadPipelined:
ep := ef.(payloadProcessedEvent)

up := e.Input.UnauthenticatedProposal
uv := ef.(payloadProcessedEvent).Vote.u()

// relay proposal if it has been pipelined
ra := relayAction(e, protocol.ProposalPayloadTag, compoundMessage{Proposal: up, Vote: uv})

if ep.Round == p.Round {
return append(actions, verifyPayloadAction(e, ep.Round, ep.Period, ep.Pinned))
vpa := verifyPayloadAction(e, ep.Round, ep.Period, ep.Pinned)
return append(actions, vpa, ra)
}
}

var uv unauthenticatedVote
switch ef.t() {
case payloadPipelined, payloadAccepted:
uv = ef.(payloadProcessedEvent).Vote.u()
case proposalCommittable:
uv = ef.(committableEvent).Vote.u()
actions = append(actions, ra)
}
up := e.Input.UnauthenticatedProposal

a := relayAction(e, protocol.ProposalPayloadTag, compoundMessage{Proposal: up, Vote: uv})
actions = append(actions, a)
// relay as the proposer
if e.Input.MessageHandle == nil {
var uv unauthenticatedVote
switch ef.t() {
case payloadPipelined, payloadAccepted:
uv = ef.(payloadProcessedEvent).Vote.u()
case proposalCommittable:
uv = ef.(committableEvent).Vote.u()
}
up := e.Input.UnauthenticatedProposal

a := relayAction(e, protocol.ProposalPayloadTag, compoundMessage{Proposal: up, Vote: uv})
actions = append(actions, a)
}

// If the payload is valid, check it against any received cert threshold.
// Of course, this should only trigger for payloadVerified case.
Expand Down
Loading