update
This commit is contained in:
parent
d28f9b0dbc
commit
7ce73aeb4e
1 changed files with 0 additions and 40 deletions
|
|
@ -43,46 +43,6 @@
|
||||||
|
|
||||||
#include <fc/smart_ref_impl.hpp>
|
#include <fc/smart_ref_impl.hpp>
|
||||||
|
|
||||||
namespace {
|
|
||||||
|
|
||||||
struct proposed_operations_digest_accumulator
|
|
||||||
{
|
|
||||||
typedef void result_type;
|
|
||||||
|
|
||||||
void operator()(const graphene::chain::proposal_create_operation& proposal)
|
|
||||||
{
|
|
||||||
for (auto& operation: proposal.proposed_ops)
|
|
||||||
{
|
|
||||||
proposed_operations_digests.push_back(fc::digest(operation.op));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//empty template method is needed for all other operation types
|
|
||||||
//we can ignore them, we are interested in only proposal_create_operation
|
|
||||||
template<class T>
|
|
||||||
void operator()(const T&)
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::vector<fc::sha256> proposed_operations_digests;
|
|
||||||
};
|
|
||||||
|
|
||||||
std::vector<fc::sha256> gather_proposed_operations_digests(const graphene::chain::transaction& trx)
|
|
||||||
{
|
|
||||||
proposed_operations_digest_accumulator digest_accumulator;
|
|
||||||
|
|
||||||
for (auto& operation: trx.operations)
|
|
||||||
{
|
|
||||||
if( operation.which() != graphene::chain::operation::tag<graphene::chain::betting_market_group_create_operation>::value
|
|
||||||
&& operation.which() != graphene::chain::operation::tag<graphene::chain::betting_market_create_operation>::value )
|
|
||||||
operation.visit(digest_accumulator);
|
|
||||||
else
|
|
||||||
edump( ("Found dup"));
|
|
||||||
}
|
|
||||||
|
|
||||||
return digest_accumulator.proposed_operations_digests;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace graphene { namespace chain {
|
namespace graphene { namespace chain {
|
||||||
|
|
||||||
bool database::is_known_block( const block_id_type& id )const
|
bool database::is_known_block( const block_id_type& id )const
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue