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

Fix slash acks bug #708

Merged

Conversation

shaspitz
Copy link
Contributor

@shaspitz shaspitz commented Feb 4, 2023

Description

Supersedes #694. Please do not merge until #692 is merged!

Linked issues

Closes: #693

Type of change

  • Feature: Changes and/or adds code behavior, irrelevant to bug fixes
  • Fix: Changes and/or adds code behavior, specifically to fix a bug
  • Refactor: Changes existing code style, naming, structure, etc.
  • Testing: Adds testing
  • Docs: Adds documentation

Regression tests

TestRelayAndApplyDowntimePacket was refactored to make sure that the consumer's outstanding downtime flag is properly deleted

New behavior tests

TestHandleSlashPacket now has functionality for checking slash acks

@shaspitz shaspitz changed the base branch from main to 689-disable-slashing February 4, 2023 00:25
@shaspitz shaspitz added the type: bug Issues that need priority attention -- something isn't working label Feb 4, 2023
@shaspitz shaspitz marked this pull request as ready for review February 4, 2023 00:42
@sainoe sainoe merged commit 73fc228 into 689-disable-slashing Feb 6, 2023
@sainoe sainoe deleted the shawn/693-refactor-slash-acks-processing branch February 6, 2023 08:59
shaspitz added a commit that referenced this pull request Feb 6, 2023
* disable consumer initiating slashing; also jailing for double-signing on the consumers

* fix diff testing

* fix TestHandleSlashPacket

* fix relay tests

* set jailUntil again

* rm TestSlashUndelegation

* rm unused func

* change e2e test to check downtime

* comments

* split out TestRelayAndApplySlashPacket

* final fix in slashing.go

* fix TestHandleSlashPacket

* expectJailing bool

* fix throttle e2e tests

* doc diff test

* fix diff-test slashing

* upstream new traces

* update integration tests with new consumer initiated slash behaviour (#705)

* Update tests/difference/core/model/src/model.ts

* Update tests/difference/core/model/src/model.ts

* rm comment

* fix bug in diff-test model

* Fix slash acks bug (#708)

* refactor Slash processing on provider and consumer

* add unittest for slash acks correctness

* update using review comments

* fix and tests

* relay test

* smol

---------

Co-authored-by: Matija Salopek <[email protected]>
Co-authored-by: MSalopek <[email protected]>

* fix comment strings in integration tests

---------

Co-authored-by: mpoke <[email protected]>
Co-authored-by: Shawn Marshall-Spitzbart <[email protected]>
Co-authored-by: MSalopek <[email protected]>
Co-authored-by: Matija Salopek <[email protected]>
Co-authored-by: Jehan <[email protected]>
@shaspitz shaspitz mentioned this pull request Feb 6, 2023
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Issues that need priority attention -- something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SlashAck sent to consumer is wrong
3 participants