Skip to content

Conversation

@fanquake
Copy link
Member

Rebased/nits fixed version of #13250.

Setting the send flag to false can be replaced by simply returning.

@practicalswift
Copy link
Contributor

Concept ACK

Copy link
Contributor

@promag promag left a comment

Choose a reason for hiding this comment

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

Concept ACK, simplification is correct. Not sure about the new test.

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove, it's unnecessary.

Copy link
Contributor

Choose a reason for hiding this comment

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

Specify:

from test_framework.mininode import (CInv, P2PInterface, msg_getdata)

@sipa
Copy link
Member

sipa commented Jul 17, 2018

utACK 4677dc25d4fa3183e745d2b2f995809845148cc8. Didn't review the test.

@fanquake fanquake force-pushed the pstratem_rebased_processgetblockdata branch from 4677dc2 to 093ea05 Compare July 17, 2018 06:48
@laanwj
Copy link
Member

laanwj commented Jul 18, 2018

I think it is somewhat subjective whether an early return is preferable to a status variable.

ACK on the test in any case.

Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't seem like this subclass is necessary. Any reason you can't just use P2PInterface on line 23 below?

Copy link
Member

Choose a reason for hiding this comment

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

Agree. (Sorry, my previous comment didn't apply, thus deleted)

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks @jamesob. Test has been updated.

@fanquake fanquake force-pushed the pstratem_rebased_processgetblockdata branch from 093ea05 to 077df8e Compare July 19, 2018 02:06
@DrahtBot
Copy link
Contributor

DrahtBot commented Aug 10, 2018

No more conflicts as of last run.

Copy link
Member

@sipa sipa left a comment

Choose a reason for hiding this comment

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

Concept ACK

Copy link
Member

Choose a reason for hiding this comment

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

What is this testing? I don't see any assertions.

Copy link
Member

Choose a reason for hiding this comment

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

I think an earlier version of the code would crash when receiving such an inv. But yeah, somewhat agree that a new test file with all the overhead is a bit too much for testing so little

Setting the send flag to false can be replaced by simply returning.
@fanquake fanquake force-pushed the pstratem_rebased_processgetblockdata branch from 077df8e to 0cf546f Compare August 13, 2018 02:26
@fanquake
Copy link
Member Author

I've just dropped the test entirely here.

@jb55
Copy link
Contributor

jb55 commented Sep 6, 2018 via email

@fanquake fanquake closed this Oct 9, 2018
@fanquake fanquake deleted the pstratem_rebased_processgetblockdata branch October 9, 2018 05:41
Copy link

@trongham trongham left a comment

Choose a reason for hiding this comment

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

Reviee

maflcko pushed a commit that referenced this pull request Mar 19, 2021
…ata, remove send bool

fa81773 style-only: Remove whitespace (MarcoFalke)
fae77b9 net: Simplify ProcessGetBlockData execution by removing send flag. (Patrick Strateman)
fae7c04 log: Clarify that block request below NODE_NETWORK_LIMITED_MIN_BLOCKS disconnects (MarcoFalke)

Pull request description:

  * Clarify that "ignoring" really means "disconnect" in the log
  * Revive a refactor I took from #13670

ACKs for top commit:
  jnewbery:
    utACK fa81773
  sipa:
    utACK fa81773

Tree-SHA512: 0a4fcb979cb82c4e26012881eeaf903c38dfbb85d461476c01e35294760744746a79c48ffad827fe31c1b830f40c6e4240529c71e375146e4d0313c3b7d784ca
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.