-
Notifications
You must be signed in to change notification settings - Fork 793
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change implementation from function pointer to abstract base class us…
…ing shared pointers, minor fix for CMake build system #2717
- Loading branch information
Showing
6 changed files
with
39 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
libraries/plugins/chain/include/steem/plugins/chain/abstract_block_producer.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma once | ||
|
||
#include <fc/time.hpp> | ||
|
||
#include <steem/chain/database.hpp> | ||
|
||
namespace steem { namespace plugins { namespace chain { | ||
|
||
class abstract_block_producer { | ||
public: | ||
virtual steem::chain::signed_block generate_block( | ||
fc::time_point_sec when, | ||
const steem::chain::account_name_type& witness_owner, | ||
const fc::ecc::private_key& block_signing_private_key, | ||
uint32_t skip = steem::chain::database::skip_nothing) = 0; | ||
}; | ||
|
||
} } } // steem::plugins::chain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters