From 7ce73aeb4e9dab5053a1e19098f9b951cc26bdc4 Mon Sep 17 00:00:00 2001
From: pbattu123
Date: Wed, 4 Sep 2019 13:09:11 -0300
Subject: [PATCH] update
---
libraries/chain/db_block.cpp | 40 ------------------------------------
1 file changed, 40 deletions(-)
diff --git a/libraries/chain/db_block.cpp b/libraries/chain/db_block.cpp
index df294957..38c21619 100644
--- a/libraries/chain/db_block.cpp
+++ b/libraries/chain/db_block.cpp
@@ -43,46 +43,6 @@
#include
-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
- void operator()(const T&)
- {}
-
- std::vector proposed_operations_digests;
- };
-
- std::vector 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::value
- && operation.which() != graphene::chain::operation::tag::value )
- operation.visit(digest_accumulator);
- else
- edump( ("Found dup"));
- }
-
- return digest_accumulator.proposed_operations_digests;
- }
-}
-
namespace graphene { namespace chain {
bool database::is_known_block( const block_id_type& id )const