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

RCHAIN-4103: Set fault tolerance as 1 for VALID old blocks [v0.9.23LTS] #2932

Closed
wants to merge 1 commit into from

Conversation

nzpr
Copy link
Collaborator

@nzpr nzpr commented May 11, 2020

Overview

Don't calculate fault tolerance for old blocks, temporary fix.

JIRA ticket:

https://rchain.atlassian.net/browse/RCHAIN-4103

Please make sure that this PR:

Bors cheat-sheet:

  • bors r+ runs integration tests and merges the PR (if it's approved),
  • bors try runs integration tests for the PR,
  • bors delegate+ enables non-maintainer PR authors to run the above.

@nzpr nzpr requested review from tgrospic and zsluedem May 11, 2020 18:15
Copy link
Collaborator

@tgrospic tgrospic left a comment

Choose a reason for hiding this comment

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

@nzpr please create ticket to create complete solution and also the same PR for dev branch.

1f.pure[F],
SafetyOracle[F]
.normalizedFaultTolerance(dag, block.blockHash)
) // TODO: Warn about parent block finalization
Copy link
Collaborator

Choose a reason for hiding this comment

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

@nzpr, @zsluedem do you know what this comment means?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I cannot imagine what this might mean

Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't know, either.

normalizedFaultTolerance <- SafetyOracle[F]
.normalizedFaultTolerance(dag, block.blockHash) // TODO: Warn about parent block finalization
// TODO this is temporary solution to not calculate fault tolerance for old blocks which is costly
oldBlock = dag.latestBlockNumber.map(_ - block.body.state.blockNumber).map(_ > 100)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Actually I don't like the hardcoded value here. Butnvm, let's fix it first

@nzpr
Copy link
Collaborator Author

nzpr commented May 13, 2020

bors r+

bors bot added a commit that referenced this pull request May 13, 2020
2932: Set fault tolearnce as 1 for old blocks r=nzpr a=nzpr

Don't calculate fault tolerance for old blocks, temporary fix.


### Please make sure that this PR:
- [x] is at most 200 lines of code (excluding tests),
- [x] meets [RChain development coding standards](https://rchain.atlassian.net/wiki/spaces/DOC/pages/28082177/Coding+Standards),
- [x] includes tests for all added features,
- [x] has a reviewer assigned,
- [x] has [all commits signed](https://rchain.atlassian.net/wiki/spaces/DOC/pages/498630673/How+to+sign+commits+to+rchain+rchain).

### [Bors](https://bors.tech/) cheat-sheet:

- `bors r+` runs integration tests and merges the PR (if it's approved),
- `bors try` runs integration tests for the PR,
- `bors delegate+` enables non-maintainer PR authors to run the above.


Co-authored-by: nutzipper <1746367+nzpr@users.noreply.github.com>
@bors
Copy link
Contributor

bors bot commented May 13, 2020

Build failed:

@nzpr
Copy link
Collaborator Author

nzpr commented May 20, 2020

bors r+

bors bot added a commit that referenced this pull request May 20, 2020
2932: Set fault tolearnce as 1 for old blocks r=nzpr a=nzpr

Don't calculate fault tolerance for old blocks, temporary fix.


### Please make sure that this PR:
- [x] is at most 200 lines of code (excluding tests),
- [x] meets [RChain development coding standards](https://rchain.atlassian.net/wiki/spaces/DOC/pages/28082177/Coding+Standards),
- [x] includes tests for all added features,
- [x] has a reviewer assigned,
- [x] has [all commits signed](https://rchain.atlassian.net/wiki/spaces/DOC/pages/498630673/How+to+sign+commits+to+rchain+rchain).

### [Bors](https://bors.tech/) cheat-sheet:

- `bors r+` runs integration tests and merges the PR (if it's approved),
- `bors try` runs integration tests for the PR,
- `bors delegate+` enables non-maintainer PR authors to run the above.


Co-authored-by: nutzipper <1746367+nzpr@users.noreply.github.com>
@bors
Copy link
Contributor

bors bot commented May 20, 2020

Timed out.

@9rb 9rb changed the title Set fault tolearnce as 1 for old blocks Set fault tolerance as 1 for VALID old blocks Jun 3, 2020
@tgrospic tgrospic changed the title Set fault tolerance as 1 for VALID old blocks RCHAIN-4103: Set fault tolerance as 1 for VALID old blocks Jun 3, 2020
@tgrospic tgrospic added the feature-branch Development parallel to dev branch label Jun 3, 2020
@tgrospic tgrospic changed the title RCHAIN-4103: Set fault tolerance as 1 for VALID old blocks RCHAIN-4103: Set fault tolerance as 1 for VALID old blocks [v0.9.23LTS] Jun 5, 2020
@nzpr nzpr closed this Jun 10, 2020
@nzpr
Copy link
Collaborator Author

nzpr commented Jun 10, 2020

Closed as superseded by #2947

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-branch Development parallel to dev branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants