message: Add fix for block still in pending
diff: @@ -305,6 +305,13 @@ namespace eosio {
  }
  auto blk = chain.fetch_block_by_number( result.block_num );
  + if( blk == nullptr ) { // still in pending
  + auto blk_state = chain.pending_block_state();
  + if( blk_state != nullptr ) {
  + blk = blk_state->block;
  + }
  + }
  + if( blk != nullptr ) {
  for (const auto &receipt: blk->transactions) {
  if (receipt.trx.contains<packed_transaction>()) {
  auto &pt = receipt.trx.get<packed_transaction>();
  @@ -324,6 +331,7 @@ namespace eosio {
  }
  }
  }
  + }
  return result;
  }
  