diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2023-04-02 20:46:21 -0400 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2023-04-02 20:46:21 -0400 |
| commit | a371e60a3075a16e82f4489969899d3627116e7b (patch) | |
| tree | dfa0ed2ccbe2c31ef00c32d3ea2f1be612a94a71 /src/cryptonote_basic | |
| parent | 2f62dd5b782ef83af9810b423522eeeb8c4e5570 (diff) | |
| parent | 059b975388f346a4243273a75d86c16fd8e6990d (diff) | |
| download | monzero-core-a371e60a3075a16e82f4489969899d3627116e7b.tar.gz monzero-core-a371e60a3075a16e82f4489969899d3627116e7b.tar.xz monzero-core-a371e60a3075a16e82f4489969899d3627116e7b.zip | |
Merge pull request #8813
059b975 cryptonote core/protocol: don't drop peers for soft offenses (jeffro256)
Diffstat (limited to 'src/cryptonote_basic')
| -rw-r--r-- | src/cryptonote_basic/verification_context.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cryptonote_basic/verification_context.h b/src/cryptonote_basic/verification_context.h index ffd07b27a..10a16a8c1 100644 --- a/src/cryptonote_basic/verification_context.h +++ b/src/cryptonote_basic/verification_context.h @@ -42,7 +42,12 @@ namespace cryptonote static_assert(unsigned(relay_method::none) == 0, "default m_relay initialization is not to relay_method::none"); relay_method m_relay; // gives indication on how tx should be relayed (if at all) - bool m_verifivation_failed; //bad tx, should drop connection + bool m_verifivation_failed; //bad tx, tx should not enter mempool and connection should be dropped unless m_no_drop_offense + // Do not add to mempool, do not relay, but also do not punish the peer for sending or drop + // connections to them. Used for low fees, tx_extra too big, "relay-only rules". Not to be + // confused with breaking soft fork rules, because tx could be later added to the chain if mined + // because it does not violate consensus rules. + bool m_no_drop_offense; bool m_verifivation_impossible; //the transaction is related with an alternative blockchain bool m_added_to_pool; bool m_low_mixin; |
