Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Reject transactions with extra signatures #18306

Merged
merged 6 commits into from
Jul 1, 2021

Conversation

jstarry
Copy link
Contributor

@jstarry jstarry commented Jun 29, 2021

Problem

Transactions with extra signatures can be replayed

Summary of Changes

  • Reject transactions with extra signatures during replay
  • Return simulation error if transaction has extra signatures and sig verify is enabled

Fixes #18303

@codecov
Copy link

codecov bot commented Jun 29, 2021

Codecov Report

❗ No coverage uploaded for pull request base (master@0592442). Click here to learn what that means.
The diff coverage is 87.4%.

@@            Coverage Diff            @@
##             master   #18306   +/-   ##
=========================================
  Coverage          ?    82.3%           
=========================================
  Files             ?      435           
  Lines             ?   121464           
  Branches          ?        0           
=========================================
  Hits              ?   100033           
  Misses            ?    21431           
  Partials          ?        0           

@jstarry jstarry force-pushed the prohibit-extra-sigs branch from 02297cc to b497181 Compare June 30, 2021 22:03
t-nelson
t-nelson previously approved these changes Jun 30, 2021
Copy link
Contributor

@t-nelson t-nelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@jstarry jstarry added v1.7 automerge Merge this Pull Request automatically once CI passes labels Jul 1, 2021
@mergify
Copy link
Contributor

mergify bot commented Jul 1, 2021

automerge label removed due to a CI failure

@mergify mergify bot removed the automerge Merge this Pull Request automatically once CI passes label Jul 1, 2021
@jstarry jstarry added the automerge Merge this Pull Request automatically once CI passes label Jul 1, 2021
@mergify mergify bot dismissed t-nelson’s stale review July 1, 2021 00:37

Pull request has been modified.

@mergify mergify bot removed the automerge Merge this Pull Request automatically once CI passes label Jul 1, 2021
@mergify
Copy link
Contributor

mergify bot commented Jul 1, 2021

automerge label removed due to a CI failure

@jstarry jstarry added the automerge Merge this Pull Request automatically once CI passes label Jul 1, 2021
@mergify mergify bot removed the automerge Merge this Pull Request automatically once CI passes label Jul 1, 2021
@mergify
Copy link
Contributor

mergify bot commented Jul 1, 2021

automerge label removed due to a CI failure

@jstarry jstarry force-pushed the prohibit-extra-sigs branch from 9e1e32f to d2531d2 Compare July 1, 2021 16:11
@jstarry jstarry added the automerge Merge this Pull Request automatically once CI passes label Jul 1, 2021
@mergify mergify bot merged commit d5961e9 into solana-labs:master Jul 1, 2021
mergify bot pushed a commit that referenced this pull request Jul 1, 2021
* Reject transactions with extra signatures

* fix tests

* fix check

* fix check

* tx method

* fix checks

(cherry picked from commit d5961e9)
@jstarry jstarry deleted the prohibit-extra-sigs branch July 1, 2021 18:58
mergify bot added a commit that referenced this pull request Jul 1, 2021
* Reject transactions with extra signatures

* fix tests

* fix check

* fix check

* tx method

* fix checks

(cherry picked from commit d5961e9)

Co-authored-by: Justin Starry <[email protected]>
@brooksprumo brooksprumo mentioned this pull request Aug 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replayed transactions may contain extra signatures which are free but still verified
2 participants