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

Txn format refactoring #683

Merged
merged 58 commits into from
May 29, 2018
Merged

Txn format refactoring #683

merged 58 commits into from
May 29, 2018

Conversation

ashcherbakov
Copy link
Contributor

@ashcherbakov ashcherbakov commented May 18, 2018

  • re-factored txns to the new format separating data and metadata (request format is not changed)
  • use utility methods to access txn fields
  • use utility methods to create txns

ashcherbakov and others added 30 commits April 25, 2018 10:34
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
…er/indy-plenum into txn-refactoring

Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>

# Conflicts:
#	plenum/server/domain_req_handler.py
#	plenum/server/req_handler.py
#	plenum/test/bls/test_bls_key_registry_pool_manager.py
#	plenum/test/common/test_parse_ledger.py
#	plenum/test/node_catchup/test_req_id_key_error.py
#	plenum/test/plugin/demo_plugin/auction_req_handler.py
#	plenum/test/pool_transactions/test_start_many_nodes.py
#	plenum/test/pool_transactions/test_txn_pool_manager.py
#	plenum/test/test_dirty_read.py
#	plenum/test/test_request_executed_once_and_without_failing_behind.py
#	plenum/test/validator_info/test_validator_info.py
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
…er/indy-plenum into txn-refactoring

Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>

# Conflicts:
#	plenum/common/script_helper.py
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
Signed-off-by: Sergey Shilov <sergey.shilov@dsr-company.com>
INDY-1319: fix test_request_executed_once_and_without_failing_behind.
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
Signed-off-by: Sergey Shilov <sergey.shilov@dsr-company.com>
Sergey Shilov and others added 13 commits May 23, 2018 10:50
Signed-off-by: Sergey Shilov <sergey.shilov@dsr-company.com>
Signed-off-by: dsurnin <dmitry.surnin@dsr-corporation.com>
INDY-1319: return get() method back to the ledger implementation.
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
Signed-off-by: Sergey Shilov <sergey.shilov@dsr-company.com>
Signed-off-by: Sergey Shilov <sergey.shilov@dsr-company.com>
Signed-off-by: Sergey Shilov <sergey.shilov@dsr-company.com>
INDY-1319: move calculation of seqNo's from ledger's appendTxns().
Signed-off-by: Sergey Shilov <sergey.shilov@dsr-company.com>
INDY-1319: return apply() method to back TestConfigReqHandler class.
@sergey-shilov
Copy link
Contributor

Test this please.

@ashcherbakov
Copy link
Contributor Author

test this please

1 similar comment
@ashcherbakov
Copy link
Contributor Author

test this please

Andrew Nikitin and others added 3 commits May 28, 2018 15:01
Signed-off-by: Andrew Nikitin <andrew.nikitin@dsr-corporation.com>
[INDY-1319] txn-refactoring for update node txn through old cli
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
self.stackHaChanged(txn_data, remoteName, self)
if VERKEY in txn_data:
self.stackKeysChanged(txn_data, remoteName, self)
if SERVICES in txn_data[DATA]:
self.nodeServicesChanged(txn)

Choose a reason for hiding this comment

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

Should we replace txn with txn_data?
And in _update definition too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think yes

Andrew Nikitin and others added 4 commits May 28, 2018 16:44
Signed-off-by: Andrew Nikitin <andrew.nikitin@dsr-corporation.com>
[INDY-1319] Replace txn with txn_data
Signed-off-by: Andrew Nikitin <andrew.nikitin@dsr-corporation.com>
@ashcherbakov
Copy link
Contributor Author

test this please

1 similar comment
@ashcherbakov
Copy link
Contributor Author

test this please

@ashcherbakov ashcherbakov merged commit 3d65f65 into master May 29, 2018
@ashcherbakov ashcherbakov deleted the txn-refactoring branch May 31, 2018 14:30
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.

None yet

5 participants