Skip to content

Commit

Permalink
Don't execute scheduled transaction on first block. #706
Browse files Browse the repository at this point in the history
  • Loading branch information
afalaleev committed May 23, 2019
1 parent 4726d1d commit 0088d1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/chain/controller.cpp
Expand Up @@ -2077,6 +2077,10 @@ vector<transaction_id_type> controller::get_scheduled_transactions() const {

vector<transaction_id_type> result;

if( 1 == head_block_num() ) {
return result;
}

static const size_t max_reserve = 1024;
result.reserve(max_reserve);

Expand Down

0 comments on commit 0088d1f

Please sign in to comment.