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

add-ledgerId field in validator #461

Merged
merged 3 commits into from
Nov 27, 2017
Merged

add-ledgerId field in validator #461

merged 3 commits into from
Nov 27, 2017

Conversation

lovesh
Copy link
Contributor

@lovesh lovesh commented Nov 27, 2017

Signed-off-by: Lovesh [email protected]

Lovesh added 2 commits November 27, 2017 21:36
Signed-off-by: Lovesh <[email protected]>
@@ -55,6 +56,7 @@ class ClientNYMOperation(MessageValidator):
class ClientGetTxnOperation(MessageValidator):
schema = (
(TXN_TYPE, ConstantField(GET_TXN)),
(f.LEDGER_ID.nm, LedgerIdField()),
Copy link
Contributor

Choose a reason for hiding this comment

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

Adding a new field breaks backward compatibility, isn't it?

Copy link
Contributor

Choose a reason for hiding this comment

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

Please make it optional

@@ -9,24 +11,48 @@
op_get_txn = ClientGetTxnOperation()


def test_small_seq_no_fails():
def test_no_ledgerId_fails():
Copy link
Contributor

Choose a reason for hiding this comment

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

It should be test_no_ledgerId_succeeds

@ashcherbakov ashcherbakov merged commit aeb0efd into master Nov 27, 2017
@lovesh lovesh deleted the ledgerId-field branch November 28, 2017 05:13
lampkin-diet pushed a commit to lampkin-diet/indy-plenum that referenced this pull request Nov 28, 2017
* add-ledgerId field in validator

Signed-off-by: Lovesh <[email protected]>

* uncommenting

Signed-off-by: Lovesh <[email protected]>

* making ledger id optional

Signed-off-by: Lovesh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants