Skip to content

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Sep 28, 2020

Couldn't find a test for this and it seems something we should test, so I wrote one.

@fanquake fanquake added the Tests label Sep 28, 2020
Copy link
Contributor

@vasild vasild left a comment

Choose a reason for hiding this comment

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

ACK faa94cb

@DrahtBot
Copy link
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@practicalswift
Copy link
Contributor

ACK faa94cb: patch looks correct

@fanquake fanquake merged commit 7ea6499 into bitcoin:master Sep 29, 2020
@maflcko maflcko deleted the 2009-testInvalidTraffic branch September 29, 2020 08:11
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Sep 29, 2020
…ed for

faa94cb test: Check that invalid peer traffic is accounted for (MarcoFalke)
fae243f test: Remove confusing cast to same type (int to int) (MarcoFalke)

Pull request description:

  Couldn't find a test for this and it seems something we should test, so I wrote one.

ACKs for top commit:
  vasild:
    ACK faa94cb
  practicalswift:
    ACK faa94cb: patch looks correct

Tree-SHA512: efcdd35960045cdfbd14480e16e0d1d09e81eb01670ac541ac2b105e1a63818a157c95853270242234a224880873e79957832bf4231374d7fe81de30f35e3abf
Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Oct 15, 2021
Summary:
> Couldn't find a test for this and it seems something we should test, so I wrote one.

Commits:
> test: Remove confusing cast to same type (int to int)

> test: Check that invalid peer traffic is accounted for

This is a backport of [[bitcoin/bitcoin#20028 | core#20028]]

Backport notes:
 - we ban for a bad checksum (see D2289), so the change in `test_checksum` is not applicable
 - the change in indentation for `self.nodes[0].disconnect_p2ps()` on line 144 was supposed to be done in D9530. It does not affect the behavior, it just moves a cleanup disconnection outside the assertion scope

Test Plan: `test/functional/test_runner.py p2p_invalid_messages`

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10348
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants