Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Extend stale tip test #18470

Closed
wants to merge 1 commit into from
Closed

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Mar 30, 2020

  • Extend test with ASSERT_DEBUG_LOG
  • Extend test with case where a block is in flight from a node that is
    about to be evicted

@maflcko maflcko added the P2P label Mar 30, 2020
@DrahtBot
Copy link
Contributor

DrahtBot commented Mar 30, 2020

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

Reviews

See the guideline for information on the review process.

Type Reviewers
Concept ACK jonatack, fanquake, practicalswift
Stale ACK fridokus

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #27385 (net, refactor: extract Network and BIP155Network logic to node/network by jonatack)
  • #27213 (p2p: Diversify automatic outbound connections with respect to networks by amitiuttarwar)
  • #25908 (p2p: remove adjusted time by fanquake)
  • #25572 (refactor: Introduce EvictionManager and use it for the inbound eviction logic by dergoegge)
  • #25268 (refactor: Introduce EvictionManager by dergoegge)
  • #23352 (test: Extend stale_tip_peer_management test by MarcoFalke)
  • #17860 (fuzz: BIP 42, BIP 30, CVE-2018-17144 by MarcoFalke)

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.

Coverage

Coverage Change (pull 18470, 3336348) Reference (master, 5f9cd62)
Lines +0.0553 % 90.2454 %
Functions +0.2530 % 85.9695 %
Branches -0.0140 % 51.7670 %

Updated at: 2020-03-30T13:59:49.217418.

@fridokus
Copy link
Contributor

ACK faaba84
Ran functional tests on Ubuntu 16 and glanced through the code.

@fridokus
Copy link
Contributor

ACK fadb1ac
Ran functional tests.

@maflcko maflcko force-pushed the 2003-testEviction branch 2 times, most recently from fa76ba8 to fa579ee Compare April 8, 2020 17:43
This was referenced Apr 9, 2020
@jonatack
Copy link
Member

jonatack commented May 5, 2020

Concept ACK to be notified on rebase.

Copy link
Member

@fanquake fanquake 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

faa01d6 and faee067 look good.

As for fa579ee; +1 for moving to std::chrono. However there seems to be some unrelated changes bundled into this commit. Didn't look at the test changes too hard.

@@ -758,6 +758,7 @@ void UpdateLastBlockAnnounceTime(NodeId node, int64_t time_in_seconds)
LOCK(cs_main);
CNodeState *state = State(node);
if (state) state->m_last_block_announcement = time_in_seconds;
if (state) state->fHaveWitness = true;
Copy link
Member

Choose a reason for hiding this comment

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

This seems unrelated to std::chrono:: / time refactoring.

src/net_processing.cpp Outdated Show resolved Hide resolved
@fanquake
Copy link
Member

fanquake commented Jun 9, 2021

@MarcoFalke could you rebase this (if there isn't any other PR that should be reviewed first), and comment in regards to: #18470 (comment).

@maflcko maflcko force-pushed the 2003-testEviction branch 2 times, most recently from fa70eae to fa9a78c Compare June 9, 2021 19:18
fanquake added a commit to bitcoin-core/gui that referenced this pull request Jun 11, 2021
…n denialofservice_tests

fa72fce test: Use ConnmanTestMsg from test lib in denialofservice_tests (MarcoFalke)

Pull request description:

  This allows to remove code.

  Also, required for bitcoin/bitcoin#18470

ACKs for top commit:
  mjdietzx:
    crACK fa72fce 👍👍
  fanquake:
    ACK fa72fce

Tree-SHA512: 12aa68cde697c0f7c25d60bb0c02783e5462eb3ba39947b0d94a7798bc278e7d5f092f3ab2a3d0547947c3502cde7c4a599419055a57f78ef1f70f9f637e14c7
@maflcko maflcko force-pushed the 2003-testEviction branch from fa9a78c to 90b5776 Compare June 11, 2021 06:25
@achow101
Copy link
Member

Are you still working on this?

* Extend test with ASSERT_DEBUG_LOG
* Extend test with case where a block is in flight from a node that is
  about to be evicted
@DrahtBot
Copy link
Contributor

DrahtBot commented May 6, 2023

🐙 This pull request conflicts with the target branch and needs rebase.

@DrahtBot
Copy link
Contributor

DrahtBot commented Aug 4, 2023

There hasn't been much activity lately and the patch still needs rebase. What is the status here?

  • Is it still relevant? ➡️ Please solve the conflicts to make it ready for review and to ensure the CI passes.
  • Is it no longer relevant? ➡️ Please close.
  • Did the author lose interest or time to work on this? ➡️ Please close it and mark it 'Up for grabs' with the label, so that it can be picked up in the future.

Copy link
Member

@furszy furszy left a comment

Choose a reason for hiding this comment

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

This test extension could play well with #28170. Are you planning to rebase it? Happy to review it.

@achow101
Copy link
Member

Closing as up for grabs due to lack of activity.

@achow101 achow101 closed this Sep 23, 2023
@maflcko maflcko deleted the 2003-testEviction branch February 6, 2024 10:43
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this pull request Feb 19, 2024
…ofservice_tests

fa72fce test: Use ConnmanTestMsg from test lib in denialofservice_tests (MarcoFalke)

Pull request description:

  This allows to remove code.

  Also, required for bitcoin#18470

ACKs for top commit:
  mjdietzx:
    crACK fa72fce 👍👍
  fanquake:
    ACK fa72fce

Tree-SHA512: 12aa68cde697c0f7c25d60bb0c02783e5462eb3ba39947b0d94a7798bc278e7d5f092f3ab2a3d0547947c3502cde7c4a599419055a57f78ef1f70f9f637e14c7
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this pull request Feb 21, 2024
…ofservice_tests

fa72fce test: Use ConnmanTestMsg from test lib in denialofservice_tests (MarcoFalke)

Pull request description:

  This allows to remove code.

  Also, required for bitcoin#18470

ACKs for top commit:
  mjdietzx:
    crACK fa72fce 👍👍
  fanquake:
    ACK fa72fce

Tree-SHA512: 12aa68cde697c0f7c25d60bb0c02783e5462eb3ba39947b0d94a7798bc278e7d5f092f3ab2a3d0547947c3502cde7c4a599419055a57f78ef1f70f9f637e14c7
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this pull request Feb 21, 2024
…ofservice_tests

fa72fce test: Use ConnmanTestMsg from test lib in denialofservice_tests (MarcoFalke)

Pull request description:

  This allows to remove code.

  Also, required for bitcoin#18470

ACKs for top commit:
  mjdietzx:
    crACK fa72fce 👍👍
  fanquake:
    ACK fa72fce

Tree-SHA512: 12aa68cde697c0f7c25d60bb0c02783e5462eb3ba39947b0d94a7798bc278e7d5f092f3ab2a3d0547947c3502cde7c4a599419055a57f78ef1f70f9f637e14c7
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this pull request Feb 24, 2024
…ofservice_tests

fa72fce test: Use ConnmanTestMsg from test lib in denialofservice_tests (MarcoFalke)

Pull request description:

  This allows to remove code.

  Also, required for bitcoin#18470

ACKs for top commit:
  mjdietzx:
    crACK fa72fce 👍👍
  fanquake:
    ACK fa72fce

Tree-SHA512: 12aa68cde697c0f7c25d60bb0c02783e5462eb3ba39947b0d94a7798bc278e7d5f092f3ab2a3d0547947c3502cde7c4a599419055a57f78ef1f70f9f637e14c7
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this pull request Feb 25, 2024
…ofservice_tests

fa72fce test: Use ConnmanTestMsg from test lib in denialofservice_tests (MarcoFalke)

Pull request description:

  This allows to remove code.

  Also, required for bitcoin#18470

ACKs for top commit:
  mjdietzx:
    crACK fa72fce 👍👍
  fanquake:
    ACK fa72fce

Tree-SHA512: 12aa68cde697c0f7c25d60bb0c02783e5462eb3ba39947b0d94a7798bc278e7d5f092f3ab2a3d0547947c3502cde7c4a599419055a57f78ef1f70f9f637e14c7
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this pull request Feb 25, 2024
…ofservice_tests

fa72fce test: Use ConnmanTestMsg from test lib in denialofservice_tests (MarcoFalke)

Pull request description:

  This allows to remove code.

  Also, required for bitcoin#18470

ACKs for top commit:
  mjdietzx:
    crACK fa72fce 👍👍
  fanquake:
    ACK fa72fce

Tree-SHA512: 12aa68cde697c0f7c25d60bb0c02783e5462eb3ba39947b0d94a7798bc278e7d5f092f3ab2a3d0547947c3502cde7c4a599419055a57f78ef1f70f9f637e14c7
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this pull request Feb 28, 2024
…ofservice_tests

fa72fce test: Use ConnmanTestMsg from test lib in denialofservice_tests (MarcoFalke)

Pull request description:

  This allows to remove code.

  Also, required for bitcoin#18470

ACKs for top commit:
  mjdietzx:
    crACK fa72fce 👍👍
  fanquake:
    ACK fa72fce

Tree-SHA512: 12aa68cde697c0f7c25d60bb0c02783e5462eb3ba39947b0d94a7798bc278e7d5f092f3ab2a3d0547947c3502cde7c4a599419055a57f78ef1f70f9f637e14c7
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this pull request Feb 28, 2024
…ofservice_tests

fa72fce test: Use ConnmanTestMsg from test lib in denialofservice_tests (MarcoFalke)

Pull request description:

  This allows to remove code.

  Also, required for bitcoin#18470

ACKs for top commit:
  mjdietzx:
    crACK fa72fce 👍👍
  fanquake:
    ACK fa72fce

Tree-SHA512: 12aa68cde697c0f7c25d60bb0c02783e5462eb3ba39947b0d94a7798bc278e7d5f092f3ab2a3d0547947c3502cde7c4a599419055a57f78ef1f70f9f637e14c7
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this pull request Feb 29, 2024
…ofservice_tests

fa72fce test: Use ConnmanTestMsg from test lib in denialofservice_tests (MarcoFalke)

Pull request description:

  This allows to remove code.

  Also, required for bitcoin#18470

ACKs for top commit:
  mjdietzx:
    crACK fa72fce 👍👍
  fanquake:
    ACK fa72fce

Tree-SHA512: 12aa68cde697c0f7c25d60bb0c02783e5462eb3ba39947b0d94a7798bc278e7d5f092f3ab2a3d0547947c3502cde7c4a599419055a57f78ef1f70f9f637e14c7
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this pull request Feb 29, 2024
…ofservice_tests

fa72fce test: Use ConnmanTestMsg from test lib in denialofservice_tests (MarcoFalke)

Pull request description:

  This allows to remove code.

  Also, required for bitcoin#18470

ACKs for top commit:
  mjdietzx:
    crACK fa72fce 👍👍
  fanquake:
    ACK fa72fce

Tree-SHA512: 12aa68cde697c0f7c25d60bb0c02783e5462eb3ba39947b0d94a7798bc278e7d5f092f3ab2a3d0547947c3502cde7c4a599419055a57f78ef1f70f9f637e14c7
PastaPastaPasta pushed a commit to vijaydasmp/dash that referenced this pull request Mar 4, 2024
…ofservice_tests

fa72fce test: Use ConnmanTestMsg from test lib in denialofservice_tests (MarcoFalke)

Pull request description:

  This allows to remove code.

  Also, required for bitcoin#18470

ACKs for top commit:
  mjdietzx:
    crACK fa72fce 👍👍
  fanquake:
    ACK fa72fce

Tree-SHA512: 12aa68cde697c0f7c25d60bb0c02783e5462eb3ba39947b0d94a7798bc278e7d5f092f3ab2a3d0547947c3502cde7c4a599419055a57f78ef1f70f9f637e14c7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants