aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-04-17 17:48:22 -0500
committerluigi1111 <luigi1111w@gmail.com>2020-04-17 17:48:22 -0500
commit57854a3e215c7bbad6f059d33b399063ff992de8 (patch)
tree0c5ff6825f6555f8930589fa118fe263d29a018b /src/cryptonote_basic
parentMerge pull request #6405 (diff)
parentAdding Dandelion++ support to public networks: (diff)
downloadmonero-57854a3e215c7bbad6f059d33b399063ff992de8.tar.xz
Merge pull request #6314
02d887c Adding Dandelion++ support to public networks: (vtnerd)
Diffstat (limited to 'src/cryptonote_basic')
-rw-r--r--src/cryptonote_basic/verification_context.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cryptonote_basic/verification_context.h b/src/cryptonote_basic/verification_context.h
index 4d49b692c..ec5f604a5 100644
--- a/src/cryptonote_basic/verification_context.h
+++ b/src/cryptonote_basic/verification_context.h
@@ -29,6 +29,9 @@
// Parts of this file are originally copyright (c) 2012-2013 The Cryptonote developers
#pragma once
+
+#include "cryptonote_protocol/enums.h"
+
namespace cryptonote
{
/************************************************************************/
@@ -36,7 +39,9 @@ namespace cryptonote
/************************************************************************/
struct tx_verification_context
{
- bool m_should_be_relayed;
+ 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_impossible; //the transaction is related with an alternative blockchain
bool m_added_to_pool;