-
Notifications
You must be signed in to change notification settings - Fork 10
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
Cleanup tests related to transition and finalizer_policy updates. #108
Conversation
Should not be 3 if we have 3 finalizers.
…change in `threshold` computation.
… trace. See issue #88.
Note:start |
uint16_t confirm_block_count, | ||
const vector<digest_type>& new_protocol_feature_activations, | ||
block_status bs, | ||
const fc::time_point& deadline = fc::time_point::maximum() ); |
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.
Instead of modifying controller, seems like the tester should connect to applied_transaction
which would include the onblock
.
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.
What is the drawback of having start_block
returning the trace?
push_transaction
does return the trace and the same reasoning could apply.
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.
Using the applied_transaction
signal tests that the signal is called appropriately, would be nice to have some tests around that functionality. I don't have a strong rejection to having start_block
return the onblock
trace.
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.
Since we already get the transaction traces in libtester as a result of control->push_transaction()
, I'd rather leave as-is.
I think it seems appropriate for start_block
to return the onblock
trace.
Note:start |
…hen more nodes are configured.
Resolves #88, #47
base_tester
which returns the transaction traces (including foronblock
) in addition to thesigned_block_ptr
base_tester
to validate finalizer policy changes (check_head_finalizer_policy
).finalizer_keys
class intester.hpp
which can be used to manage finalizer keys forfinalizer_policies
, as well as provide APIs forset_node_finalizers
,set_finalizer_policy
andtransition_to_savanna
.lib
inbase_tester
, so that the connection to theirreversible_block
signal doesn't have to be repeated in multiple tests.finality_test_cluster
to having a configurable number of nodes (4 or more), use newtester.hpp
features, fix multiple issues in tests.api_tests.cpp
,finalizer_update_tests.cpp
, etc... ) to use these new facilities and avoid duplication.