-
Notifications
You must be signed in to change notification settings - Fork 787
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix unit tests within active_transactions
#3703
Fix unit tests within active_transactions
#3703
Conversation
nano::state_block_builder builder; | ||
auto & node1 = *system.add_node (node_config); | ||
nano::keypair key{}; | ||
nano::send_block_builder builder{}; |
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.
This also reverts to legacy blocks.
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.
perhaps it should be called legacy_send_block_builder
to prevent others from making that mistake
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.
Yeah it is a bit unfortunate -- I actually thought we're better off using send_, open_ etc builders since they're more specific, unbeknownst they refer to the legacy block types. Addressed, renaming might be a good idea too, any input on this @clemahieu ?
{ | ||
nano::vectorstream stream (block_bytes); | ||
nano::vectorstream stream{ send_block_bytes }; | ||
send1->serialize (stream); | ||
} | ||
|
||
// Generate 10 forks to prevent new block insertion to election |
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.
Can you determine why we need to prevent block insertion? It isn't immediately apparent how/why this is done.
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.
I can't say either, let's bring it up
Fixed unit tests:
active_transactions.keep_local
active_transactions.fork_filter_cleanup
active_transactions.fifo
No issues to link to this PR (tests weren't disabled before).