From 682d7f78b088070b6bd328601b0f3d53648671aa Mon Sep 17 00:00:00 2001 From: Bartek Wrona Date: Mon, 28 Oct 2024 14:04:27 +0100 Subject: [PATCH] Transaction deduplication index should use original expiration time (instead of runtime_expiration) since transaction can be valid longer than 1h --- libraries/chain/database.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/chain/database.cpp b/libraries/chain/database.cpp index 0e22d219c4..57fd920ecb 100644 --- a/libraries/chain/database.cpp +++ b/libraries/chain/database.cpp @@ -4468,7 +4468,8 @@ void database::_apply_transaction(const std::shared_ptr& create([&](transaction_object& transaction) { transaction.trx_id = trx_id; - transaction.expiration = full_transaction->get_runtime_expiration(); + /// WARNING: here we have to use original expiration time (instead of runtime_expiration) since transaction is valid up to HIVE_MAX_TIME_UNTIL_SIGNATURE_EXPIRATION + transaction.expiration = trx.expiration; }); if( _benchmark_dumper.is_enabled() )