Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gladcow committed Sep 20, 2019
1 parent 65a632b commit 6db356e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
10 changes: 3 additions & 7 deletions libraries/app/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,9 @@ namespace graphene { namespace app {
void network_broadcast_api::broadcast_transaction(const signed_transaction& trx)
{
trx.validate();

_app.chain_database()->check_tansaction_for_duplicated_operations(trx);
_app.chain_database()->push_transaction( trx );

if( _app.p2p_node() != nullptr )
_app.p2p_node()->broadcast_transaction(trx);
_app.chain_database()->push_transaction(trx);
_app.p2p_node()->broadcast_transaction(trx);
}

fc::variant network_broadcast_api::broadcast_transaction_synchronous(const signed_transaction& trx)
Expand All @@ -200,8 +197,7 @@ namespace graphene { namespace app {
trx.validate();
_callbacks[trx.id()] = cb;
_app.chain_database()->push_transaction(trx);
if( _app.p2p_node() != nullptr )
_app.p2p_node()->broadcast_transaction(trx);
_app.p2p_node()->broadcast_transaction(trx);
}

network_node_api::network_node_api( application& a ) : _app( a )
Expand Down
1 change: 0 additions & 1 deletion libraries/app/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,6 @@ namespace detail {
}
}

_chain_db->push_transaction( transaction_message.trx );
return result;
} catch ( const graphene::chain::unlinkable_block_exception& e ) {
// translate to a graphene::net exception
Expand Down
Binary file modified programs/build_helpers/cat-parts
Binary file not shown.

0 comments on commit 6db356e

Please sign in to comment.