Skip to content

Commit

Permalink
Merge pull request #232 from peerplays-network/feature/GRPH-166
Browse files Browse the repository at this point in the history
[GRPH-166] Fixed chainparameter update proposal issue
  • Loading branch information
pbattu123 authored Dec 6, 2019
2 parents 70b5a94 + d5662ad commit 3b65288
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/chain/db_block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,6 @@ processed_transaction database::validate_transaction( const signed_transaction&

processed_transaction database::push_proposal(const proposal_object& proposal)
{ try {
FC_ASSERT( _undo_db.size() < _undo_db.max_size(), "Undo database is full!" );

transaction_evaluation_state eval_state(this);
eval_state._is_proposed_trx = true;

Expand All @@ -347,6 +345,8 @@ processed_transaction database::push_proposal(const proposal_object& proposal)
size_t old_applied_ops_size = _applied_ops.size();

try {
if( _undo_db.size() >= _undo_db.max_size() )
_undo_db.set_max_size( _undo_db.size() + 1 );
auto session = _undo_db.start_undo_session(true);
for( auto& op : proposal.proposed_transaction.operations )
eval_state.operation_results.emplace_back(apply_operation(eval_state, op));
Expand Down
1 change: 1 addition & 0 deletions libraries/chain/proposal_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ bool proposal_object::is_authorized_to_execute(database& db) const
}
catch ( const fc::exception& e )
{
elog( "caught exception ${e} while checking authorization of proposal operations",("e", e.to_detail_string()) );
return false;
}
return true;
Expand Down

0 comments on commit 3b65288

Please sign in to comment.