forked from quanchainos/steem
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request steemit#2885 from steemit/2681-stub-automated-actions
Stub Required/Optional Actions Split
- Loading branch information
Showing
7 changed files
with
60 additions
and
24 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
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/protocol/include/steem/protocol/required_automated_actions.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 <steem/protocol/steem_required_actions.hpp> | ||
|
||
#include <steem/protocol/operation_util.hpp> | ||
|
||
namespace steem { namespace protocol { | ||
|
||
/** NOTE: do not change the order of any actions or it will trigger a hardfork. | ||
*/ | ||
typedef fc::static_variant< | ||
required_action | ||
> required_automated_action; | ||
|
||
} } // steem::protocol | ||
|
||
STEEM_DECLARE_OPERATION_TYPE( steem::protocol::required_automated_action ); | ||
FC_REFLECT_TYPENAME( steem::protocol::required_automated_action ); |
22 changes: 22 additions & 0 deletions
22
libraries/protocol/include/steem/protocol/steem_optional_actions.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,22 @@ | ||
#pragma once | ||
#include <steem/protocol/base.hpp> | ||
#include <steem/protocol/block_header.hpp> | ||
#include <steem/protocol/asset.hpp> | ||
#include <steem/protocol/validation.hpp> | ||
#include <steem/protocol/legacy_asset.hpp> | ||
|
||
#include <fc/crypto/equihash.hpp> | ||
|
||
namespace steem { namespace protocol { | ||
|
||
struct optional_action : public base_operation | ||
{ | ||
account_name_type account; | ||
|
||
void validate()const; | ||
void get_required_active_authorities( flat_set<account_name_type>& a )const{ a.insert(account); } | ||
}; | ||
|
||
} } // steem::protocol | ||
|
||
FC_REFLECT( steem::protocol::optional_action, (account) ) |
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