diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2024-05-20 23:42:54 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2024-05-20 23:42:54 -0500 |
| commit | 1ec7eae0364a9d13db6aebc5819468f07667e7ab (patch) | |
| tree | 838c211368e6b486fef301b696cfc0bddbf6647b /src/cryptonote_core/tx_pool.cpp | |
| parent | 2f0503d7f3462410a8c21a7baca35fa18763b4b7 (diff) | |
| parent | dd47d03cf2b5b3dc59cd99aca247d1025679f83a (diff) | |
| download | monzero-core-1ec7eae0364a9d13db6aebc5819468f07667e7ab.tar.gz monzero-core-1ec7eae0364a9d13db6aebc5819468f07667e7ab.tar.xz monzero-core-1ec7eae0364a9d13db6aebc5819468f07667e7ab.zip | |
Merge pull request #9311
dd47d03 Enforce Tx unlock_time is Zero by Relay Rule [RELEASE] (jeffro256)
Diffstat (limited to 'src/cryptonote_core/tx_pool.cpp')
| -rw-r--r-- | src/cryptonote_core/tx_pool.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp index 2a3b7a5d5..0af6cab85 100644 --- a/src/cryptonote_core/tx_pool.cpp +++ b/src/cryptonote_core/tx_pool.cpp @@ -236,6 +236,15 @@ namespace cryptonote return false; } + if (!kept_by_block && tx.unlock_time) + { + LOG_PRINT_L1("transaction unlock time is not zero: " << tx.unlock_time); + tvc.m_verifivation_failed = true; + tvc.m_nonzero_unlock_time = true; + tvc.m_no_drop_offense = true; + return false; + } + // if the transaction came from a block popped from the chain, // don't check if we have its key images as spent. // TODO: Investigate why not? |
