Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Additional transaction tests #6509

Merged
merged 3 commits into from
Jan 2, 2019
Merged

Additional transaction tests #6509

merged 3 commits into from
Jan 2, 2019

Conversation

heifner
Copy link
Contributor

@heifner heifner commented Dec 19, 2018

Change Description

Additional packed_transaction and transaction_metadata tests.

Consensus Changes

None.

API Changes

None

Documentation Additions

None

@@ -25,7 +25,7 @@ const flat_set<public_key_type>& transaction_metadata::recover_keys( const chain

void transaction_metadata::create_signing_keys_future( const transaction_metadata_ptr& mtrx,
boost::asio::thread_pool& thread_pool, const chain_id_type& chain_id, fc::microseconds time_limit ) {
if( mtrx->signing_keys.valid() ) // already created
if( mtrx->signing_keys_future.valid() || mtrx->signing_keys.valid() ) // already created
return;
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 do not believe create_signing_keys_future is called more than once, but add a check so that if it is called again before the future completes, it will not kick off another one.

@heifner heifner merged commit b0c1475 into develop Jan 2, 2019
@heifner heifner deleted the txn-tests branch January 2, 2019 19:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants