From 04e7b9010fcc7306b6a1862575daa7e086e7bec7 Mon Sep 17 00:00:00 2001 From: arhag Date: Thu, 4 Apr 2019 20:00:55 -0400 Subject: [PATCH] fix compilation errors on certain linux platforms #6115 --- libraries/chain/apply_context.cpp | 2 +- libraries/chain/controller.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/chain/apply_context.cpp b/libraries/chain/apply_context.cpp index edffc87029c..3dea34973be 100644 --- a/libraries/chain/apply_context.cpp +++ b/libraries/chain/apply_context.cpp @@ -319,7 +319,7 @@ void apply_context::schedule_deferred_transaction( const uint128_t& sender_id, a fc::raw::pack( deferred_transaction_generation_context( trx_context.id, sender_id, receiver ) ) ); } - trx.expiration = {}; + trx.expiration = time_point_sec(); trx.ref_block_num = 0; trx.ref_block_prefix = 0; } else { diff --git a/libraries/chain/controller.cpp b/libraries/chain/controller.cpp index 8d4adab795f..47bc6ad7e7f 100644 --- a/libraries/chain/controller.cpp +++ b/libraries/chain/controller.cpp @@ -955,7 +955,7 @@ struct controller_impl { etrx.actions.emplace_back( vector{{gtrx.sender, config::active_name}}, onerror( gtrx.sender_id, gtrx.packed_trx.data(), gtrx.packed_trx.size() ) ); if( self.is_builtin_activated( builtin_protocol_feature_t::no_duplicate_deferred_id ) ) { - etrx.expiration = {}; + etrx.expiration = time_point_sec(); etrx.ref_block_num = 0; etrx.ref_block_prefix = 0; } else { @@ -2149,7 +2149,7 @@ struct controller_impl { signed_transaction trx; trx.actions.emplace_back(std::move(on_block_act)); if( self.is_builtin_activated( builtin_protocol_feature_t::no_duplicate_deferred_id ) ) { - trx.expiration = {}; + trx.expiration = time_point_sec(); trx.ref_block_num = 0; trx.ref_block_prefix = 0; } else {