Skip to content

build(deps): Bump async from 2.6.3 to 2.6.4 in /docs - #8357

Merged
tychoish merged 1 commit into
masterfrom
dependabot/npm_and_yarn/docs/async-2.6.4
Apr 16, 2022
Merged

tychoish merged 1 commit into
masterfrom
dependabot/npm_and_yarn/docs/async-2.6.4

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Apr 15, 2022

Copy link
Copy Markdown
Contributor

Bumps async from 2.6.3 to 2.6.4.

Changelog

Sourced from async's changelog.

v2.6.4

  • Fix potential prototype pollution exploit (#1828)
Commits
Maintainer changes

This version was pushed to npm by hargasinski, a new releaser for async since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

@dependabot dependabot Bot added javascript Pull requests that update Javascript code T:dependencies Pull requests that update a dependency file labels Apr 15, 2022
@tychoish
tychoish merged commit 851c0dc into master Apr 16, 2022
@tychoish
tychoish deleted the dependabot/npm_and_yarn/docs/async-2.6.4 branch April 16, 2022 00:48
thanethomson pushed a commit that referenced this pull request Apr 16, 2022
thanethomson added a commit that referenced this pull request Apr 19, 2022
* Refactor so building and linting works

This is the first step towards implementing vote extensions: generating
the relevant proto stubs and getting the build and linter to pass.

Signed-off-by: Thane Thomson <[email protected]>

* Fix typo

Signed-off-by: Thane Thomson <[email protected]>

* Better describe method given vote extensions

Signed-off-by: Thane Thomson <[email protected]>

* Fix types tests

Signed-off-by: Thane Thomson <[email protected]>

* Move CanonicalVoteExtension to canonical types proto defs

Signed-off-by: Thane Thomson <[email protected]>

* Regenerate protos including latest PBTS synchrony params update

Signed-off-by: Thane Thomson <[email protected]>

* Inject vote extensions into proposal

Signed-off-by: Thane Thomson <[email protected]>

* Thread vote extensions through code and fix tests

Signed-off-by: Thane Thomson <[email protected]>

* Remove extraneous empty value initialization

Signed-off-by: Thane Thomson <[email protected]>

* Fix lint

Signed-off-by: Thane Thomson <[email protected]>

* Fix missing VerifyVoteExtension request data

Signed-off-by: Thane Thomson <[email protected]>

* Explicitly ensure length > 0 to sign vote extension

Signed-off-by: Thane Thomson <[email protected]>

* Explicitly ensure length > 0 to sign vote extension

Signed-off-by: Thane Thomson <[email protected]>

* Remove extraneous comment

Signed-off-by: Thane Thomson <[email protected]>

* Update privval/file.go

Co-authored-by: M. J. Fromberger <[email protected]>

* Update types/vote_test.go

Co-authored-by: M. J. Fromberger <[email protected]>

* Format

Signed-off-by: Thane Thomson <[email protected]>

* Fix ABCI proto generation scripts for Linux

Signed-off-by: Thane Thomson <[email protected]>

* Sync intermediate and goal protos

Signed-off-by: Thane Thomson <[email protected]>

* Update internal/consensus/common_test.go

Co-authored-by: Sergio Mena <[email protected]>

* Use dummy value with clearer meaning

Signed-off-by: Thane Thomson <[email protected]>

* Rewrite loop for clarity

Signed-off-by: Thane Thomson <[email protected]>

* Panic on ABCI++ method call failure

Signed-off-by: Thane Thomson <[email protected]>

* Add strong correctness guarantees when constructing extended commit info for ABCI++

Signed-off-by: Thane Thomson <[email protected]>

* Add strong guarantee in extendedCommitInfo that the number of votes corresponds

Signed-off-by: Thane Thomson <[email protected]>

* Make extendedCommitInfo function more robust

At first extendedCommitInfo expected votes to be in the same order as
their corresponding validators in the supplied CommitInfo struct, but
this proved to be rather difficult since when a validator set's loaded
from state it's first sorted by voting power and then by address.

Instead of sorting the votes in the same way, this approach simply maps
votes to their corresponding validator's address prior to constructing
the extended commit info. This way it's easy to look up the
corresponding vote and we don't need to care about vote order.

Signed-off-by: Thane Thomson <[email protected]>

* Remove extraneous validator address assignment

Signed-off-by: Thane Thomson <[email protected]>

* Sign over canonical vote extension

Signed-off-by: Thane Thomson <[email protected]>

* Validate vote extension signature against canonical vote extension

Signed-off-by: Thane Thomson <[email protected]>

* Update privval tests for more meaningful dummy value

Signed-off-by: Thane Thomson <[email protected]>

* Add vote extension capability to E2E test app

Signed-off-by: Thane Thomson <[email protected]>

* Disable lint for weak RNG usage for test app

Signed-off-by: Thane Thomson <[email protected]>

* Use parseVoteExtension instead of custom parsing in PrepareProposal

Signed-off-by: Thane Thomson <[email protected]>

* Only include extension if we have received txs

It's unclear at this point why this is necessary to ensure that the
application's local app_hash matches that committed in the previous
block.

Signed-off-by: Thane Thomson <[email protected]>

* Require app_hash from app to match that from last block

Signed-off-by: Thane Thomson <[email protected]>

* Add contrived (possibly flaky) test to check that vote extensions code works

Signed-off-by: Thane Thomson <[email protected]>

* Remove workaround for problem now solved by #8229

Signed-off-by: Thane Thomson <[email protected]>

* add tests for vote extension cases

* Fix spelling mistake to appease linter

Signed-off-by: Thane Thomson <[email protected]>

* Collapse redundant if statement

Signed-off-by: Thane Thomson <[email protected]>

* Formatting

Signed-off-by: Thane Thomson <[email protected]>

* Always expect an extension signature, regardless of whether an extension is present

Signed-off-by: Thane Thomson <[email protected]>

* Votes constructed from commits cannot include extensions or signatures

Signed-off-by: Thane Thomson <[email protected]>

* Pass through vote extension in test helpers

Signed-off-by: Thane Thomson <[email protected]>

* Temporarily disable vote extension signature requirement

Signed-off-by: Thane Thomson <[email protected]>

* Expand on vote equality test errors for clarity

Signed-off-by: Thane Thomson <[email protected]>

* Expand on vote matching error messages in testing

Signed-off-by: Thane Thomson <[email protected]>

* Allow for selective subscription by vote type

This is an attempt to fix the intermittently failing
`TestPrepareProposalReceivesVoteExtensions` test in the internal
consensus package.

Occasionally we get prevote messages via the subscription channel, and
we're not interested in those. This change allows us to specify what
types of votes we're interested in (i.e. precommits) and discard the
rest.

Signed-off-by: Thane Thomson <[email protected]>

* Read lock consensus state mutex in test helper to avoid data race

Signed-off-by: Thane Thomson <[email protected]>

* Revert BlockIDFlag parameter in node test

Signed-off-by: Thane Thomson <[email protected]>

* Perform additional check in ProcessProposal for special txs generated by vote extensions

Signed-off-by: Thane Thomson <[email protected]>

* e2e: check that our added tx does not cause all txs to exceed req.MaxTxBytes

Signed-off-by: Thane Thomson <[email protected]>

* Only set vote extension signatures when signing is successful

Signed-off-by: Thane Thomson <[email protected]>

* Remove channel capacity constraint in test helper to avoid missing messages

Signed-off-by: Thane Thomson <[email protected]>

* Add TODO to always require extension signatures in vote validation

Signed-off-by: Thane Thomson <[email protected]>

* e2e: reject vote extensions if the request height does not match what we expect

Signed-off-by: Thane Thomson <[email protected]>

* types: remove extraneous call to voteWithoutExtension in test

Signed-off-by: Thane Thomson <[email protected]>

* Remove unnecessary address parameter from CanonicalVoteExtension

Signed-off-by: Thane Thomson <[email protected]>

* privval: change test vote type to precommit since we use an extension

Signed-off-by: Thane Thomson <[email protected]>

* privval: update signing logic to cater for vote extensions

Signed-off-by: Thane Thomson <[email protected]>

* proto: update field descriptions for vote message

Signed-off-by: Thane Thomson <[email protected]>

* proto: update field description for vote extension sig in vote message

Signed-off-by: Thane Thomson <[email protected]>

* proto/types: use fixed-length 64-bit integers for rounds in CanonicalVoteExtension

Signed-off-by: Thane Thomson <[email protected]>

* consensus: fix flaky TestPrepareProposalReceivesVoteExtensions

Signed-off-by: Thane Thomson <[email protected]>

* consensus: remove previously added test helper functionality

Signed-off-by: Thane Thomson <[email protected]>

* e2e: add error logs when we get an unexpected height in ExtendVote or VerifyVoteExtension requests

Signed-off-by: Thane Thomson <[email protected]>

* node_test: get validator addresses from privvals

Signed-off-by: Thane Thomson <[email protected]>

* privval/file_test: optimize filepv creation in tests

Signed-off-by: Thane Thomson <[email protected]>

* privval: add test to check that vote extensions are always signed

Signed-off-by: Thane Thomson <[email protected]>

* Add a script to check documentation for ToC entries. (#8356)

This script verifies that each document in the docs and architecture directory
has a corresponding table-of-contents entry in its README file.  It can be run
manually from the command line.

- Hook up this script to run in CI (optional workflow).
- Update ADR ToC to include missing entries this script found.

* build(deps): Bump async from 2.6.3 to 2.6.4 in /docs (#8357)

Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](caolan/async@v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* privval/file_test: reset vote ext sig before signing

Signed-off-by: Thane Thomson <[email protected]>

Co-authored-by: M. J. Fromberger <[email protected]>
Co-authored-by: Sergio Mena <[email protected]>
Co-authored-by: William Banfield <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
sergio-mena added a commit that referenced this pull request Nov 12, 2022
* Refactor so building and linting works

This is the first step towards implementing vote extensions: generating
the relevant proto stubs and getting the build and linter to pass.

Signed-off-by: Thane Thomson <[email protected]>

* Fix typo

Signed-off-by: Thane Thomson <[email protected]>

* Better describe method given vote extensions

Signed-off-by: Thane Thomson <[email protected]>

* Fix types tests

Signed-off-by: Thane Thomson <[email protected]>

* Move CanonicalVoteExtension to canonical types proto defs

Signed-off-by: Thane Thomson <[email protected]>

* Regenerate protos including latest PBTS synchrony params update

Signed-off-by: Thane Thomson <[email protected]>

* Inject vote extensions into proposal

Signed-off-by: Thane Thomson <[email protected]>

* Thread vote extensions through code and fix tests

Signed-off-by: Thane Thomson <[email protected]>

* Remove extraneous empty value initialization

Signed-off-by: Thane Thomson <[email protected]>

* Fix lint

Signed-off-by: Thane Thomson <[email protected]>

* Fix missing VerifyVoteExtension request data

Signed-off-by: Thane Thomson <[email protected]>

* Explicitly ensure length > 0 to sign vote extension

Signed-off-by: Thane Thomson <[email protected]>

* Explicitly ensure length > 0 to sign vote extension

Signed-off-by: Thane Thomson <[email protected]>

* Remove extraneous comment

Signed-off-by: Thane Thomson <[email protected]>

* Update privval/file.go

Co-authored-by: M. J. Fromberger <[email protected]>

* Update types/vote_test.go

Co-authored-by: M. J. Fromberger <[email protected]>

* Format

Signed-off-by: Thane Thomson <[email protected]>

* Fix ABCI proto generation scripts for Linux

Signed-off-by: Thane Thomson <[email protected]>

* Sync intermediate and goal protos

Signed-off-by: Thane Thomson <[email protected]>

* Update internal/consensus/common_test.go

Co-authored-by: Sergio Mena <[email protected]>

* Use dummy value with clearer meaning

Signed-off-by: Thane Thomson <[email protected]>

* Rewrite loop for clarity

Signed-off-by: Thane Thomson <[email protected]>

* Panic on ABCI++ method call failure

Signed-off-by: Thane Thomson <[email protected]>

* Add strong correctness guarantees when constructing extended commit info for ABCI++

Signed-off-by: Thane Thomson <[email protected]>

* Add strong guarantee in extendedCommitInfo that the number of votes corresponds

Signed-off-by: Thane Thomson <[email protected]>

* Make extendedCommitInfo function more robust

At first extendedCommitInfo expected votes to be in the same order as
their corresponding validators in the supplied CommitInfo struct, but
this proved to be rather difficult since when a validator set's loaded
from state it's first sorted by voting power and then by address.

Instead of sorting the votes in the same way, this approach simply maps
votes to their corresponding validator's address prior to constructing
the extended commit info. This way it's easy to look up the
corresponding vote and we don't need to care about vote order.

Signed-off-by: Thane Thomson <[email protected]>

* Remove extraneous validator address assignment

Signed-off-by: Thane Thomson <[email protected]>

* Sign over canonical vote extension

Signed-off-by: Thane Thomson <[email protected]>

* Validate vote extension signature against canonical vote extension

Signed-off-by: Thane Thomson <[email protected]>

* Update privval tests for more meaningful dummy value

Signed-off-by: Thane Thomson <[email protected]>

* Add vote extension capability to E2E test app

Signed-off-by: Thane Thomson <[email protected]>

* Disable lint for weak RNG usage for test app

Signed-off-by: Thane Thomson <[email protected]>

* Use parseVoteExtension instead of custom parsing in PrepareProposal

Signed-off-by: Thane Thomson <[email protected]>

* Only include extension if we have received txs

It's unclear at this point why this is necessary to ensure that the
application's local app_hash matches that committed in the previous
block.

Signed-off-by: Thane Thomson <[email protected]>

* Require app_hash from app to match that from last block

Signed-off-by: Thane Thomson <[email protected]>

* Add contrived (possibly flaky) test to check that vote extensions code works

Signed-off-by: Thane Thomson <[email protected]>

* Remove workaround for problem now solved by #8229

Signed-off-by: Thane Thomson <[email protected]>

* add tests for vote extension cases

* Fix spelling mistake to appease linter

Signed-off-by: Thane Thomson <[email protected]>

* Collapse redundant if statement

Signed-off-by: Thane Thomson <[email protected]>

* Formatting

Signed-off-by: Thane Thomson <[email protected]>

* Always expect an extension signature, regardless of whether an extension is present

Signed-off-by: Thane Thomson <[email protected]>

* Votes constructed from commits cannot include extensions or signatures

Signed-off-by: Thane Thomson <[email protected]>

* Pass through vote extension in test helpers

Signed-off-by: Thane Thomson <[email protected]>

* Temporarily disable vote extension signature requirement

Signed-off-by: Thane Thomson <[email protected]>

* Expand on vote equality test errors for clarity

Signed-off-by: Thane Thomson <[email protected]>

* Expand on vote matching error messages in testing

Signed-off-by: Thane Thomson <[email protected]>

* Allow for selective subscription by vote type

This is an attempt to fix the intermittently failing
`TestPrepareProposalReceivesVoteExtensions` test in the internal
consensus package.

Occasionally we get prevote messages via the subscription channel, and
we're not interested in those. This change allows us to specify what
types of votes we're interested in (i.e. precommits) and discard the
rest.

Signed-off-by: Thane Thomson <[email protected]>

* Read lock consensus state mutex in test helper to avoid data race

Signed-off-by: Thane Thomson <[email protected]>

* Revert BlockIDFlag parameter in node test

Signed-off-by: Thane Thomson <[email protected]>

* Perform additional check in ProcessProposal for special txs generated by vote extensions

Signed-off-by: Thane Thomson <[email protected]>

* e2e: check that our added tx does not cause all txs to exceed req.MaxTxBytes

Signed-off-by: Thane Thomson <[email protected]>

* Only set vote extension signatures when signing is successful

Signed-off-by: Thane Thomson <[email protected]>

* Remove channel capacity constraint in test helper to avoid missing messages

Signed-off-by: Thane Thomson <[email protected]>

* Add TODO to always require extension signatures in vote validation

Signed-off-by: Thane Thomson <[email protected]>

* e2e: reject vote extensions if the request height does not match what we expect

Signed-off-by: Thane Thomson <[email protected]>

* types: remove extraneous call to voteWithoutExtension in test

Signed-off-by: Thane Thomson <[email protected]>

* Remove unnecessary address parameter from CanonicalVoteExtension

Signed-off-by: Thane Thomson <[email protected]>

* privval: change test vote type to precommit since we use an extension

Signed-off-by: Thane Thomson <[email protected]>

* privval: update signing logic to cater for vote extensions

Signed-off-by: Thane Thomson <[email protected]>

* proto: update field descriptions for vote message

Signed-off-by: Thane Thomson <[email protected]>

* proto: update field description for vote extension sig in vote message

Signed-off-by: Thane Thomson <[email protected]>

* proto/types: use fixed-length 64-bit integers for rounds in CanonicalVoteExtension

Signed-off-by: Thane Thomson <[email protected]>

* consensus: fix flaky TestPrepareProposalReceivesVoteExtensions

Signed-off-by: Thane Thomson <[email protected]>

* consensus: remove previously added test helper functionality

Signed-off-by: Thane Thomson <[email protected]>

* e2e: add error logs when we get an unexpected height in ExtendVote or VerifyVoteExtension requests

Signed-off-by: Thane Thomson <[email protected]>

* node_test: get validator addresses from privvals

Signed-off-by: Thane Thomson <[email protected]>

* privval/file_test: optimize filepv creation in tests

Signed-off-by: Thane Thomson <[email protected]>

* privval: add test to check that vote extensions are always signed

Signed-off-by: Thane Thomson <[email protected]>

* Add a script to check documentation for ToC entries. (#8356)

This script verifies that each document in the docs and architecture directory
has a corresponding table-of-contents entry in its README file.  It can be run
manually from the command line.

- Hook up this script to run in CI (optional workflow).
- Update ADR ToC to include missing entries this script found.

* build(deps): Bump async from 2.6.3 to 2.6.4 in /docs (#8357)

Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](caolan/async@v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* privval/file_test: reset vote ext sig before signing

Signed-off-by: Thane Thomson <[email protected]>

Co-authored-by: M. J. Fromberger <[email protected]>
Co-authored-by: Sergio Mena <[email protected]>
Co-authored-by: William Banfield <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
sergio-mena added a commit that referenced this pull request Nov 28, 2022
…ons (#8141)

* Refactor so building and linting works

This is the first step towards implementing vote extensions: generating
the relevant proto stubs and getting the build and linter to pass.

Signed-off-by: Thane Thomson <[email protected]>

* Fix typo

Signed-off-by: Thane Thomson <[email protected]>

* Better describe method given vote extensions

Signed-off-by: Thane Thomson <[email protected]>

* Fix types tests

Signed-off-by: Thane Thomson <[email protected]>

* Move CanonicalVoteExtension to canonical types proto defs

Signed-off-by: Thane Thomson <[email protected]>

* Regenerate protos including latest PBTS synchrony params update

Signed-off-by: Thane Thomson <[email protected]>

* Inject vote extensions into proposal

Signed-off-by: Thane Thomson <[email protected]>

* Thread vote extensions through code and fix tests

Signed-off-by: Thane Thomson <[email protected]>

* Remove extraneous empty value initialization

Signed-off-by: Thane Thomson <[email protected]>

* Fix lint

Signed-off-by: Thane Thomson <[email protected]>

* Fix missing VerifyVoteExtension request data

Signed-off-by: Thane Thomson <[email protected]>

* Explicitly ensure length > 0 to sign vote extension

Signed-off-by: Thane Thomson <[email protected]>

* Explicitly ensure length > 0 to sign vote extension

Signed-off-by: Thane Thomson <[email protected]>

* Remove extraneous comment

Signed-off-by: Thane Thomson <[email protected]>

* Update privval/file.go

Co-authored-by: M. J. Fromberger <[email protected]>

* Update types/vote_test.go

Co-authored-by: M. J. Fromberger <[email protected]>

* Format

Signed-off-by: Thane Thomson <[email protected]>

* Fix ABCI proto generation scripts for Linux

Signed-off-by: Thane Thomson <[email protected]>

* Sync intermediate and goal protos

Signed-off-by: Thane Thomson <[email protected]>

* Update internal/consensus/common_test.go

Co-authored-by: Sergio Mena <[email protected]>

* Use dummy value with clearer meaning

Signed-off-by: Thane Thomson <[email protected]>

* Rewrite loop for clarity

Signed-off-by: Thane Thomson <[email protected]>

* Panic on ABCI++ method call failure

Signed-off-by: Thane Thomson <[email protected]>

* Add strong correctness guarantees when constructing extended commit info for ABCI++

Signed-off-by: Thane Thomson <[email protected]>

* Add strong guarantee in extendedCommitInfo that the number of votes corresponds

Signed-off-by: Thane Thomson <[email protected]>

* Make extendedCommitInfo function more robust

At first extendedCommitInfo expected votes to be in the same order as
their corresponding validators in the supplied CommitInfo struct, but
this proved to be rather difficult since when a validator set's loaded
from state it's first sorted by voting power and then by address.

Instead of sorting the votes in the same way, this approach simply maps
votes to their corresponding validator's address prior to constructing
the extended commit info. This way it's easy to look up the
corresponding vote and we don't need to care about vote order.

Signed-off-by: Thane Thomson <[email protected]>

* Remove extraneous validator address assignment

Signed-off-by: Thane Thomson <[email protected]>

* Sign over canonical vote extension

Signed-off-by: Thane Thomson <[email protected]>

* Validate vote extension signature against canonical vote extension

Signed-off-by: Thane Thomson <[email protected]>

* Update privval tests for more meaningful dummy value

Signed-off-by: Thane Thomson <[email protected]>

* Add vote extension capability to E2E test app

Signed-off-by: Thane Thomson <[email protected]>

* Disable lint for weak RNG usage for test app

Signed-off-by: Thane Thomson <[email protected]>

* Use parseVoteExtension instead of custom parsing in PrepareProposal

Signed-off-by: Thane Thomson <[email protected]>

* Only include extension if we have received txs

It's unclear at this point why this is necessary to ensure that the
application's local app_hash matches that committed in the previous
block.

Signed-off-by: Thane Thomson <[email protected]>

* Require app_hash from app to match that from last block

Signed-off-by: Thane Thomson <[email protected]>

* Add contrived (possibly flaky) test to check that vote extensions code works

Signed-off-by: Thane Thomson <[email protected]>

* Remove workaround for problem now solved by #8229

Signed-off-by: Thane Thomson <[email protected]>

* add tests for vote extension cases

* Fix spelling mistake to appease linter

Signed-off-by: Thane Thomson <[email protected]>

* Collapse redundant if statement

Signed-off-by: Thane Thomson <[email protected]>

* Formatting

Signed-off-by: Thane Thomson <[email protected]>

* Always expect an extension signature, regardless of whether an extension is present

Signed-off-by: Thane Thomson <[email protected]>

* Votes constructed from commits cannot include extensions or signatures

Signed-off-by: Thane Thomson <[email protected]>

* Pass through vote extension in test helpers

Signed-off-by: Thane Thomson <[email protected]>

* Temporarily disable vote extension signature requirement

Signed-off-by: Thane Thomson <[email protected]>

* Expand on vote equality test errors for clarity

Signed-off-by: Thane Thomson <[email protected]>

* Expand on vote matching error messages in testing

Signed-off-by: Thane Thomson <[email protected]>

* Allow for selective subscription by vote type

This is an attempt to fix the intermittently failing
`TestPrepareProposalReceivesVoteExtensions` test in the internal
consensus package.

Occasionally we get prevote messages via the subscription channel, and
we're not interested in those. This change allows us to specify what
types of votes we're interested in (i.e. precommits) and discard the
rest.

Signed-off-by: Thane Thomson <[email protected]>

* Read lock consensus state mutex in test helper to avoid data race

Signed-off-by: Thane Thomson <[email protected]>

* Revert BlockIDFlag parameter in node test

Signed-off-by: Thane Thomson <[email protected]>

* Perform additional check in ProcessProposal for special txs generated by vote extensions

Signed-off-by: Thane Thomson <[email protected]>

* e2e: check that our added tx does not cause all txs to exceed req.MaxTxBytes

Signed-off-by: Thane Thomson <[email protected]>

* Only set vote extension signatures when signing is successful

Signed-off-by: Thane Thomson <[email protected]>

* Remove channel capacity constraint in test helper to avoid missing messages

Signed-off-by: Thane Thomson <[email protected]>

* Add TODO to always require extension signatures in vote validation

Signed-off-by: Thane Thomson <[email protected]>

* e2e: reject vote extensions if the request height does not match what we expect

Signed-off-by: Thane Thomson <[email protected]>

* types: remove extraneous call to voteWithoutExtension in test

Signed-off-by: Thane Thomson <[email protected]>

* Remove unnecessary address parameter from CanonicalVoteExtension

Signed-off-by: Thane Thomson <[email protected]>

* privval: change test vote type to precommit since we use an extension

Signed-off-by: Thane Thomson <[email protected]>

* privval: update signing logic to cater for vote extensions

Signed-off-by: Thane Thomson <[email protected]>

* proto: update field descriptions for vote message

Signed-off-by: Thane Thomson <[email protected]>

* proto: update field description for vote extension sig in vote message

Signed-off-by: Thane Thomson <[email protected]>

* proto/types: use fixed-length 64-bit integers for rounds in CanonicalVoteExtension

Signed-off-by: Thane Thomson <[email protected]>

* consensus: fix flaky TestPrepareProposalReceivesVoteExtensions

Signed-off-by: Thane Thomson <[email protected]>

* consensus: remove previously added test helper functionality

Signed-off-by: Thane Thomson <[email protected]>

* e2e: add error logs when we get an unexpected height in ExtendVote or VerifyVoteExtension requests

Signed-off-by: Thane Thomson <[email protected]>

* node_test: get validator addresses from privvals

Signed-off-by: Thane Thomson <[email protected]>

* privval/file_test: optimize filepv creation in tests

Signed-off-by: Thane Thomson <[email protected]>

* privval: add test to check that vote extensions are always signed

Signed-off-by: Thane Thomson <[email protected]>

* Add a script to check documentation for ToC entries. (#8356)

This script verifies that each document in the docs and architecture directory
has a corresponding table-of-contents entry in its README file.  It can be run
manually from the command line.

- Hook up this script to run in CI (optional workflow).
- Update ADR ToC to include missing entries this script found.

* build(deps): Bump async from 2.6.3 to 2.6.4 in /docs (#8357)

Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](caolan/async@v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* privval/file_test: reset vote ext sig before signing

Signed-off-by: Thane Thomson <[email protected]>

Co-authored-by: M. J. Fromberger <[email protected]>
Co-authored-by: Sergio Mena <[email protected]>
Co-authored-by: William Banfield <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
sergio-mena added a commit that referenced this pull request Nov 30, 2022
…ons (#8141)

* Refactor so building and linting works

This is the first step towards implementing vote extensions: generating
the relevant proto stubs and getting the build and linter to pass.

Signed-off-by: Thane Thomson <[email protected]>

* Fix typo

Signed-off-by: Thane Thomson <[email protected]>

* Better describe method given vote extensions

Signed-off-by: Thane Thomson <[email protected]>

* Fix types tests

Signed-off-by: Thane Thomson <[email protected]>

* Move CanonicalVoteExtension to canonical types proto defs

Signed-off-by: Thane Thomson <[email protected]>

* Regenerate protos including latest PBTS synchrony params update

Signed-off-by: Thane Thomson <[email protected]>

* Inject vote extensions into proposal

Signed-off-by: Thane Thomson <[email protected]>

* Thread vote extensions through code and fix tests

Signed-off-by: Thane Thomson <[email protected]>

* Remove extraneous empty value initialization

Signed-off-by: Thane Thomson <[email protected]>

* Fix lint

Signed-off-by: Thane Thomson <[email protected]>

* Fix missing VerifyVoteExtension request data

Signed-off-by: Thane Thomson <[email protected]>

* Explicitly ensure length > 0 to sign vote extension

Signed-off-by: Thane Thomson <[email protected]>

* Explicitly ensure length > 0 to sign vote extension

Signed-off-by: Thane Thomson <[email protected]>

* Remove extraneous comment

Signed-off-by: Thane Thomson <[email protected]>

* Update privval/file.go

Co-authored-by: M. J. Fromberger <[email protected]>

* Update types/vote_test.go

Co-authored-by: M. J. Fromberger <[email protected]>

* Format

Signed-off-by: Thane Thomson <[email protected]>

* Fix ABCI proto generation scripts for Linux

Signed-off-by: Thane Thomson <[email protected]>

* Sync intermediate and goal protos

Signed-off-by: Thane Thomson <[email protected]>

* Update internal/consensus/common_test.go

Co-authored-by: Sergio Mena <[email protected]>

* Use dummy value with clearer meaning

Signed-off-by: Thane Thomson <[email protected]>

* Rewrite loop for clarity

Signed-off-by: Thane Thomson <[email protected]>

* Panic on ABCI++ method call failure

Signed-off-by: Thane Thomson <[email protected]>

* Add strong correctness guarantees when constructing extended commit info for ABCI++

Signed-off-by: Thane Thomson <[email protected]>

* Add strong guarantee in extendedCommitInfo that the number of votes corresponds

Signed-off-by: Thane Thomson <[email protected]>

* Make extendedCommitInfo function more robust

At first extendedCommitInfo expected votes to be in the same order as
their corresponding validators in the supplied CommitInfo struct, but
this proved to be rather difficult since when a validator set's loaded
from state it's first sorted by voting power and then by address.

Instead of sorting the votes in the same way, this approach simply maps
votes to their corresponding validator's address prior to constructing
the extended commit info. This way it's easy to look up the
corresponding vote and we don't need to care about vote order.

Signed-off-by: Thane Thomson <[email protected]>

* Remove extraneous validator address assignment

Signed-off-by: Thane Thomson <[email protected]>

* Sign over canonical vote extension

Signed-off-by: Thane Thomson <[email protected]>

* Validate vote extension signature against canonical vote extension

Signed-off-by: Thane Thomson <[email protected]>

* Update privval tests for more meaningful dummy value

Signed-off-by: Thane Thomson <[email protected]>

* Add vote extension capability to E2E test app

Signed-off-by: Thane Thomson <[email protected]>

* Disable lint for weak RNG usage for test app

Signed-off-by: Thane Thomson <[email protected]>

* Use parseVoteExtension instead of custom parsing in PrepareProposal

Signed-off-by: Thane Thomson <[email protected]>

* Only include extension if we have received txs

It's unclear at this point why this is necessary to ensure that the
application's local app_hash matches that committed in the previous
block.

Signed-off-by: Thane Thomson <[email protected]>

* Require app_hash from app to match that from last block

Signed-off-by: Thane Thomson <[email protected]>

* Add contrived (possibly flaky) test to check that vote extensions code works

Signed-off-by: Thane Thomson <[email protected]>

* Remove workaround for problem now solved by #8229

Signed-off-by: Thane Thomson <[email protected]>

* add tests for vote extension cases

* Fix spelling mistake to appease linter

Signed-off-by: Thane Thomson <[email protected]>

* Collapse redundant if statement

Signed-off-by: Thane Thomson <[email protected]>

* Formatting

Signed-off-by: Thane Thomson <[email protected]>

* Always expect an extension signature, regardless of whether an extension is present

Signed-off-by: Thane Thomson <[email protected]>

* Votes constructed from commits cannot include extensions or signatures

Signed-off-by: Thane Thomson <[email protected]>

* Pass through vote extension in test helpers

Signed-off-by: Thane Thomson <[email protected]>

* Temporarily disable vote extension signature requirement

Signed-off-by: Thane Thomson <[email protected]>

* Expand on vote equality test errors for clarity

Signed-off-by: Thane Thomson <[email protected]>

* Expand on vote matching error messages in testing

Signed-off-by: Thane Thomson <[email protected]>

* Allow for selective subscription by vote type

This is an attempt to fix the intermittently failing
`TestPrepareProposalReceivesVoteExtensions` test in the internal
consensus package.

Occasionally we get prevote messages via the subscription channel, and
we're not interested in those. This change allows us to specify what
types of votes we're interested in (i.e. precommits) and discard the
rest.

Signed-off-by: Thane Thomson <[email protected]>

* Read lock consensus state mutex in test helper to avoid data race

Signed-off-by: Thane Thomson <[email protected]>

* Revert BlockIDFlag parameter in node test

Signed-off-by: Thane Thomson <[email protected]>

* Perform additional check in ProcessProposal for special txs generated by vote extensions

Signed-off-by: Thane Thomson <[email protected]>

* e2e: check that our added tx does not cause all txs to exceed req.MaxTxBytes

Signed-off-by: Thane Thomson <[email protected]>

* Only set vote extension signatures when signing is successful

Signed-off-by: Thane Thomson <[email protected]>

* Remove channel capacity constraint in test helper to avoid missing messages

Signed-off-by: Thane Thomson <[email protected]>

* Add TODO to always require extension signatures in vote validation

Signed-off-by: Thane Thomson <[email protected]>

* e2e: reject vote extensions if the request height does not match what we expect

Signed-off-by: Thane Thomson <[email protected]>

* types: remove extraneous call to voteWithoutExtension in test

Signed-off-by: Thane Thomson <[email protected]>

* Remove unnecessary address parameter from CanonicalVoteExtension

Signed-off-by: Thane Thomson <[email protected]>

* privval: change test vote type to precommit since we use an extension

Signed-off-by: Thane Thomson <[email protected]>

* privval: update signing logic to cater for vote extensions

Signed-off-by: Thane Thomson <[email protected]>

* proto: update field descriptions for vote message

Signed-off-by: Thane Thomson <[email protected]>

* proto: update field description for vote extension sig in vote message

Signed-off-by: Thane Thomson <[email protected]>

* proto/types: use fixed-length 64-bit integers for rounds in CanonicalVoteExtension

Signed-off-by: Thane Thomson <[email protected]>

* consensus: fix flaky TestPrepareProposalReceivesVoteExtensions

Signed-off-by: Thane Thomson <[email protected]>

* consensus: remove previously added test helper functionality

Signed-off-by: Thane Thomson <[email protected]>

* e2e: add error logs when we get an unexpected height in ExtendVote or VerifyVoteExtension requests

Signed-off-by: Thane Thomson <[email protected]>

* node_test: get validator addresses from privvals

Signed-off-by: Thane Thomson <[email protected]>

* privval/file_test: optimize filepv creation in tests

Signed-off-by: Thane Thomson <[email protected]>

* privval: add test to check that vote extensions are always signed

Signed-off-by: Thane Thomson <[email protected]>

* Add a script to check documentation for ToC entries. (#8356)

This script verifies that each document in the docs and architecture directory
has a corresponding table-of-contents entry in its README file.  It can be run
manually from the command line.

- Hook up this script to run in CI (optional workflow).
- Update ADR ToC to include missing entries this script found.

* build(deps): Bump async from 2.6.3 to 2.6.4 in /docs (#8357)

Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](caolan/async@v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* privval/file_test: reset vote ext sig before signing

Signed-off-by: Thane Thomson <[email protected]>

Co-authored-by: M. J. Fromberger <[email protected]>
Co-authored-by: Sergio Mena <[email protected]>
Co-authored-by: William Banfield <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
sergio-mena added a commit that referenced this pull request Dec 6, 2022
* [cherry-picked] abci: Vote Extension 1 (#6646)

* add proto, add boilerplates

* add canonical

* fix tests

* add vote signing test

* Update internal/consensus/msgs_test.go

* modify state execution in progress

* add extension signing

* VoteExtension -> ExtendVote

* apply review

* update data structures

* Add comments

* Apply suggestions from code review

Co-authored-by: Aleksandr Bezobchuk <[email protected]>

* *Signed -> *ToSign

* add Vote to RequestExtendVote

* apply reviews

* Apply suggestions from code review

Co-authored-by: Dev Ojha <[email protected]>
Co-authored-by: Aleksandr Bezobchuk <[email protected]>

* fix typo, modify proto

Co-authored-by: Aleksandr Bezobchuk <[email protected]>
Co-authored-by: Dev Ojha <[email protected]>

* [cherry-picked] ABCI Vote Extension 2 (#6885)

* add proto, add boilerplates

* add canonical

* fix tests

* add vote signing test

* Update internal/consensus/msgs_test.go

* modify state execution in progress

* add extension signing

* add extension signing

* VoteExtension -> ExtendVote

* modify state execution in progress

* add extension signing

* verify in progress

* modify CommitSig

* fix test

* apply review

* update data structures

* Apply suggestions from code review

* Add comments

* fix test

* VoteExtensionSigned => VoteExtensionToSigned

* Apply suggestions from code review

Co-authored-by: Aleksandr Bezobchuk <[email protected]>

* *Signed -> *ToSign

* add Vote to RequestExtendVote

* add example VoteExtension

* apply reviews

* fix vote

* Apply suggestions from code review

Co-authored-by: Dev Ojha <[email protected]>
Co-authored-by: Aleksandr Bezobchuk <[email protected]>

* fix typo, modify proto

* add abcipp_kvstore.go

* add extension test

* fix test

* fix test

* fix test

* fit lint

* uncomment test

* refactor test in progress

* gofmt

* apply review

* fix lint

Co-authored-by: Aleksandr Bezobchuk <[email protected]>
Co-authored-by: Dev Ojha <[email protected]>

* [cheryy-picked] abci: PrepareProposal-VoteExtension integration [2nd try] (#7821)

* PrepareProposal-VoteExtension integration (#6915)

* make proto-gen

* Fix protobuf crash in e2e nightly tests

* Update types/vote.go

Co-authored-by: M. J. Fromberger <[email protected]>

* Addressed @creachadair's comments

Co-authored-by: mconcat <[email protected]>
Co-authored-by: M. J. Fromberger <[email protected]>

* [cherry-picked] Vote extensions: new design (#8031)

* Changed the spec text to agreed VoteExtension solution

* Revert "Removed protobufs related to vote extensions"

This reverts commit 4566f1e.

* Changes to ABCI protocol buffers

* Update spec/core/data_structures.md

Co-authored-by: M. J. Fromberger <[email protected]>

* Update spec/core/data_structures.md

Co-authored-by: M. J. Fromberger <[email protected]>

* Fix dangling link in ABCI++ readme

* Addressed comments

Co-authored-by: M. J. Fromberger <[email protected]>

* [cherry-picked] abci++: Sync implementation and spec for vote extensions (#8141)

* Refactor so building and linting works

This is the first step towards implementing vote extensions: generating
the relevant proto stubs and getting the build and linter to pass.

Signed-off-by: Thane Thomson <[email protected]>

* Fix typo

Signed-off-by: Thane Thomson <[email protected]>

* Better describe method given vote extensions

Signed-off-by: Thane Thomson <[email protected]>

* Fix types tests

Signed-off-by: Thane Thomson <[email protected]>

* Move CanonicalVoteExtension to canonical types proto defs

Signed-off-by: Thane Thomson <[email protected]>

* Regenerate protos including latest PBTS synchrony params update

Signed-off-by: Thane Thomson <[email protected]>

* Inject vote extensions into proposal

Signed-off-by: Thane Thomson <[email protected]>

* Thread vote extensions through code and fix tests

Signed-off-by: Thane Thomson <[email protected]>

* Remove extraneous empty value initialization

Signed-off-by: Thane Thomson <[email protected]>

* Fix lint

Signed-off-by: Thane Thomson <[email protected]>

* Fix missing VerifyVoteExtension request data

Signed-off-by: Thane Thomson <[email protected]>

* Explicitly ensure length > 0 to sign vote extension

Signed-off-by: Thane Thomson <[email protected]>

* Explicitly ensure length > 0 to sign vote extension

Signed-off-by: Thane Thomson <[email protected]>

* Remove extraneous comment

Signed-off-by: Thane Thomson <[email protected]>

* Update privval/file.go

Co-authored-by: M. J. Fromberger <[email protected]>

* Update types/vote_test.go

Co-authored-by: M. J. Fromberger <[email protected]>

* Format

Signed-off-by: Thane Thomson <[email protected]>

* Fix ABCI proto generation scripts for Linux

Signed-off-by: Thane Thomson <[email protected]>

* Sync intermediate and goal protos

Signed-off-by: Thane Thomson <[email protected]>

* Update internal/consensus/common_test.go

Co-authored-by: Sergio Mena <[email protected]>

* Use dummy value with clearer meaning

Signed-off-by: Thane Thomson <[email protected]>

* Rewrite loop for clarity

Signed-off-by: Thane Thomson <[email protected]>

* Panic on ABCI++ method call failure

Signed-off-by: Thane Thomson <[email protected]>

* Add strong correctness guarantees when constructing extended commit info for ABCI++

Signed-off-by: Thane Thomson <[email protected]>

* Add strong guarantee in extendedCommitInfo that the number of votes corresponds

Signed-off-by: Thane Thomson <[email protected]>

* Make extendedCommitInfo function more robust

At first extendedCommitInfo expected votes to be in the same order as
their corresponding validators in the supplied CommitInfo struct, but
this proved to be rather difficult since when a validator set's loaded
from state it's first sorted by voting power and then by address.

Instead of sorting the votes in the same way, this approach simply maps
votes to their corresponding validator's address prior to constructing
the extended commit info. This way it's easy to look up the
corresponding vote and we don't need to care about vote order.

Signed-off-by: Thane Thomson <[email protected]>

* Remove extraneous validator address assignment

Signed-off-by: Thane Thomson <[email protected]>

* Sign over canonical vote extension

Signed-off-by: Thane Thomson <[email protected]>

* Validate vote extension signature against canonical vote extension

Signed-off-by: Thane Thomson <[email protected]>

* Update privval tests for more meaningful dummy value

Signed-off-by: Thane Thomson <[email protected]>

* Add vote extension capability to E2E test app

Signed-off-by: Thane Thomson <[email protected]>

* Disable lint for weak RNG usage for test app

Signed-off-by: Thane Thomson <[email protected]>

* Use parseVoteExtension instead of custom parsing in PrepareProposal

Signed-off-by: Thane Thomson <[email protected]>

* Only include extension if we have received txs

It's unclear at this point why this is necessary to ensure that the
application's local app_hash matches that committed in the previous
block.

Signed-off-by: Thane Thomson <[email protected]>

* Require app_hash from app to match that from last block

Signed-off-by: Thane Thomson <[email protected]>

* Add contrived (possibly flaky) test to check that vote extensions code works

Signed-off-by: Thane Thomson <[email protected]>

* Remove workaround for problem now solved by #8229

Signed-off-by: Thane Thomson <[email protected]>

* add tests for vote extension cases

* Fix spelling mistake to appease linter

Signed-off-by: Thane Thomson <[email protected]>

* Collapse redundant if statement

Signed-off-by: Thane Thomson <[email protected]>

* Formatting

Signed-off-by: Thane Thomson <[email protected]>

* Always expect an extension signature, regardless of whether an extension is present

Signed-off-by: Thane Thomson <[email protected]>

* Votes constructed from commits cannot include extensions or signatures

Signed-off-by: Thane Thomson <[email protected]>

* Pass through vote extension in test helpers

Signed-off-by: Thane Thomson <[email protected]>

* Temporarily disable vote extension signature requirement

Signed-off-by: Thane Thomson <[email protected]>

* Expand on vote equality test errors for clarity

Signed-off-by: Thane Thomson <[email protected]>

* Expand on vote matching error messages in testing

Signed-off-by: Thane Thomson <[email protected]>

* Allow for selective subscription by vote type

This is an attempt to fix the intermittently failing
`TestPrepareProposalReceivesVoteExtensions` test in the internal
consensus package.

Occasionally we get prevote messages via the subscription channel, and
we're not interested in those. This change allows us to specify what
types of votes we're interested in (i.e. precommits) and discard the
rest.

Signed-off-by: Thane Thomson <[email protected]>

* Read lock consensus state mutex in test helper to avoid data race

Signed-off-by: Thane Thomson <[email protected]>

* Revert BlockIDFlag parameter in node test

Signed-off-by: Thane Thomson <[email protected]>

* Perform additional check in ProcessProposal for special txs generated by vote extensions

Signed-off-by: Thane Thomson <[email protected]>

* e2e: check that our added tx does not cause all txs to exceed req.MaxTxBytes

Signed-off-by: Thane Thomson <[email protected]>

* Only set vote extension signatures when signing is successful

Signed-off-by: Thane Thomson <[email protected]>

* Remove channel capacity constraint in test helper to avoid missing messages

Signed-off-by: Thane Thomson <[email protected]>

* Add TODO to always require extension signatures in vote validation

Signed-off-by: Thane Thomson <[email protected]>

* e2e: reject vote extensions if the request height does not match what we expect

Signed-off-by: Thane Thomson <[email protected]>

* types: remove extraneous call to voteWithoutExtension in test

Signed-off-by: Thane Thomson <[email protected]>

* Remove unnecessary address parameter from CanonicalVoteExtension

Signed-off-by: Thane Thomson <[email protected]>

* privval: change test vote type to precommit since we use an extension

Signed-off-by: Thane Thomson <[email protected]>

* privval: update signing logic to cater for vote extensions

Signed-off-by: Thane Thomson <[email protected]>

* proto: update field descriptions for vote message

Signed-off-by: Thane Thomson <[email protected]>

* proto: update field description for vote extension sig in vote message

Signed-off-by: Thane Thomson <[email protected]>

* proto/types: use fixed-length 64-bit integers for rounds in CanonicalVoteExtension

Signed-off-by: Thane Thomson <[email protected]>

* consensus: fix flaky TestPrepareProposalReceivesVoteExtensions

Signed-off-by: Thane Thomson <[email protected]>

* consensus: remove previously added test helper functionality

Signed-off-by: Thane Thomson <[email protected]>

* e2e: add error logs when we get an unexpected height in ExtendVote or VerifyVoteExtension requests

Signed-off-by: Thane Thomson <[email protected]>

* node_test: get validator addresses from privvals

Signed-off-by: Thane Thomson <[email protected]>

* privval/file_test: optimize filepv creation in tests

Signed-off-by: Thane Thomson <[email protected]>

* privval: add test to check that vote extensions are always signed

Signed-off-by: Thane Thomson <[email protected]>

* Add a script to check documentation for ToC entries. (#8356)

This script verifies that each document in the docs and architecture directory
has a corresponding table-of-contents entry in its README file.  It can be run
manually from the command line.

- Hook up this script to run in CI (optional workflow).
- Update ADR ToC to include missing entries this script found.

* build(deps): Bump async from 2.6.3 to 2.6.4 in /docs (#8357)

Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](caolan/async@v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* privval/file_test: reset vote ext sig before signing

Signed-off-by: Thane Thomson <[email protected]>

Co-authored-by: M. J. Fromberger <[email protected]>
Co-authored-by: Sergio Mena <[email protected]>
Co-authored-by: William Banfield <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix cherry-picks

* make proto-gen

* make mockery

* fix build

* All units tests passing

* linter error

* Update consensus/state_test.go

Co-authored-by: William Banfield <[email protected]>

* Addressed @williambanfield's comments

* Go, not C!

Co-authored-by: mconcat <[email protected]>
Co-authored-by: Aleksandr Bezobchuk <[email protected]>
Co-authored-by: Dev Ojha <[email protected]>
Co-authored-by: M. J. Fromberger <[email protected]>
Co-authored-by: Thane Thomson <[email protected]>
Co-authored-by: William Banfield <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: William Banfield <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

javascript Pull requests that update Javascript code T:dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants