-
Notifications
You must be signed in to change notification settings - Fork 27
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
[INDY-2154] Cleanup after req handlers integration #276
[INDY-2154] Cleanup after req handlers integration #276
Conversation
Signed-off-by: Andrew Nikitin <[email protected]>
Signed-off-by: Andrew Nikitin <[email protected]>
Signed-off-by: Andrew Nikitin <[email protected]>
Signed-off-by: Andrew Nikitin <[email protected]>
Signed-off-by: Andrew Nikitin <[email protected]>
…n into public/indy-2154 Signed-off-by: Andrew Nikitin <[email protected]>
Signed-off-by: Andrew Nikitin <[email protected]>
Signed-off-by: Andrew Nikitin <[email protected]>
Signed-off-by: Andrew Nikitin <[email protected]>
@@ -48,7 +49,7 @@ def test_state_proof(public_minting, looper, # noqa | |||
encoded = {} | |||
outputs = res[OUTPUTS] | |||
for out in outputs: | |||
state_key = TokenReqHandler.create_state_key(out["address"], out["seqNo"]) | |||
state_key = create_state_key(out["address"], out["seqNo"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use a method from GetUtxoHandler
?
node.write_manager.register_batch_handler(h) | ||
# TODO: Additional functionality to request_manager ^^^ | ||
|
||
domain_fee_batch_handler = DomainFeeBatchHandler(node.db_manager, fees_tracker) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like we need to put it before Audit Handler since Audit ledger tracks ledger root hashes and sizes for all ledger (two ledgers are changed if we order a domain txn with fees)
@@ -34,6 +34,10 @@ def static_validation(self, request: Request): | |||
request.reqId, | |||
error) | |||
|
|||
@staticmethod | |||
def create_state_key(address: str, seq_no: int) -> bytes: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need some consistency here.
We have already defined this method in https://github.com/sovrin-foundation/token-plugin/blob/master/sovtoken/sovtoken/request_handlers/token_utils.py#L30
We should either use the one in token_utils.py
either delete it and use only the one here.
By the way, this is a utility method and don't see any reason to keep it in this class.
Signed-off-by: Andrew Nikitin <[email protected]>
…n into public/indy-2154
Signed-off-by: Andrew Nikitin <[email protected]>
Signed-off-by: Andrew Nikitin <[email protected]>
Signed-off-by: Andrew Nikitin <[email protected]>
Signed-off-by: Andrew Nikitin <[email protected]>
No description provided.