Skip to content
This repository was archived by the owner on Apr 17, 2019. It is now read-only.

Ordering Service: on request proposal strategy - #2215

Open
muratovv wants to merge 23 commits into
developfrom
feature/os_on_request_proposal_strategy
Open

Ordering Service: on request proposal strategy#2215
muratovv wants to merge 23 commits into
developfrom
feature/os_on_request_proposal_strategy

Conversation

@muratovv

@muratovv muratovv commented Apr 7, 2019

Copy link
Copy Markdown
Contributor

Description of the Change

The initial intention of the PR is to introduce a strategy for preventing the creation of proposals in OS. But this pr contains dependent changes for the proper working of the strategy.

Benefits

Add round optimization for faster collaboration. Also, Closer to release state.

Possible Drawbacks

A lot of different features which introduce in one PR

List of features

  • Creation strategy interface in OS
  • Strategy which prevents the creation of proposals
  • OS\OG transport contains peer key in net interaction
  • Supermajority has a new method
  • Small changes in validation/answer

Alternate Designs [optional]

The transport layer is not backward compatible - introduces peer key of the sending side. There is an alternative with meta information in the request.

Drawback

The PR doesn't work because it is blocked by hyperledger-iroha/iroha#2066.

muratovv added 10 commits April 4, 2019 15:13
Signed-off-by: Fedor Muratov <muratovfyodor@yandex.ru>
Signed-off-by: Fedor Muratov <muratovfyodor@yandex.ru>
Signed-off-by: Fedor Muratov <muratovfyodor@yandex.ru>
Signed-off-by: Fedor Muratov <muratovfyodor@yandex.ru>
Signed-off-by: Fedor Muratov <muratovfyodor@yandex.ru>
Signed-off-by: Fedor Muratov <muratovfyodor@yandex.ru>
Signed-off-by: Fedor Muratov <muratovfyodor@yandex.ru>
Signed-off-by: Fedor Muratov <muratovfyodor@yandex.ru>
Signed-off-by: Fedor Muratov <muratovfyodor@yandex.ru>
Signed-off-by: Fedor Muratov <muratovfyodor@yandex.ru>
@muratovv
muratovv requested review from igor-egorov and lebdron April 7, 2019 19:48
*/

#ifndef IROHA_KICK_OUT_PROPOSAL_CREATION_STRATEGY_HPP
#define IROHA_KICK_OUT_PROPOSAL_CREATION_STRATEGY_HPP

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

IROHA_SUPER_KICK_OUT_MEGA_PROPOSAL_ULTRA_CREATION_STRATEGY_9000_HPP
:D

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Could you suggest a more appropriate name?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No, It was not an issue

@igor-egorov igor-egorov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. Summon @MBoldyrev

shared_model::validation::Answer answer;
answer.addReason(std::move(reason));
if (answer.hasErrors()) {
log_->error("Peer key struct isn't parsed, {}", answer.reason());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
log_->error("Peer key struct isn't parsed, {}", answer.reason());
log_->error("Peer key struct was not parsed, {}", answer.reason());

@lebdron lebdron changed the title Feature/os on request proposal strategy Ordering Service: on request proposal strategy Apr 10, 2019

/**
* Separate action required because CollectionType is non-copyable
* Separate action required because CollectionType is non-copy1able

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Separate action required because CollectionType is non-copy1able
* Separate action required because CollectionType is non-copyable

looks like a typo

lebdron added 11 commits April 12, 2019 10:43
Signed-off-by: Andrei Lebedev <lebdron@gmail.com>
Signed-off-by: Andrei Lebedev <lebdron@gmail.com>
Signed-off-by: Andrei Lebedev <lebdron@gmail.com>
Signed-off-by: Andrei Lebedev <lebdron@gmail.com>
Signed-off-by: Andrei Lebedev <lebdron@gmail.com>
Signed-off-by: Andrei Lebedev <lebdron@gmail.com>
Signed-off-by: Andrei Lebedev <lebdron@gmail.com>
Signed-off-by: Andrei Lebedev <lebdron@gmail.com>
Signed-off-by: Andrei Lebedev <lebdron@gmail.com>
Signed-off-by: Andrei Lebedev <lebdron@gmail.com>
Signed-off-by: Andrei Lebedev <lebdron@gmail.com>
@lebdron
lebdron requested review from MBoldyrev and removed request for lebdron April 12, 2019 17:47
Signed-off-by: Andrei Lebedev <lebdron@gmail.com>
Signed-off-by: Andrei Lebedev <lebdron@gmail.com>
@lebdron
lebdron marked this pull request as ready for review April 14, 2019 17:17
@lebdron
lebdron requested a review from igor-egorov April 15, 2019 08:13
agreed, all, detail::kSupermajorityCheckerKfPlus1Bft);
}

bool SupermajorityCheckerBft::hasMajority(PeersNumberType voted,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Discussed offline: need to rename the method

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants