Skip to content

Commit

Permalink
Transaction deduplication index should use original expiration time (…
Browse files Browse the repository at this point in the history
…instead of runtime_expiration) since transaction can be valid longer than 1h
  • Loading branch information
vogel76 committed Oct 28, 2024
1 parent 8d0a838 commit 682d7f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/chain/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4468,7 +4468,8 @@ void database::_apply_transaction(const std::shared_ptr<full_transaction_type>&

create<transaction_object>([&](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() )
Expand Down

0 comments on commit 682d7f7

Please sign in to comment.