Electroneum
verification_context.h
Go to the documentation of this file.
1
// Copyrights(c) 2017-2021, The Electroneum Project
2
// Copyrights(c) 2014-2019, The Monero Project
3
//
4
// All rights reserved.
5
//
6
// Redistribution and use in source and binary forms, with or without modification, are
7
// permitted provided that the following conditions are met:
8
//
9
// 1. Redistributions of source code must retain the above copyright notice, this list of
10
// conditions and the following disclaimer.
11
//
12
// 2. Redistributions in binary form must reproduce the above copyright notice, this list
13
// of conditions and the following disclaimer in the documentation and/or other
14
// materials provided with the distribution.
15
//
16
// 3. Neither the name of the copyright holder nor the names of its contributors may be
17
// used to endorse or promote products derived from this software without specific
18
// prior written permission.
19
//
20
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
21
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
22
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
23
// THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
27
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
28
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
//
30
// Parts of this file are originally copyright (c) 2012-2013 The Cryptonote developers
31
32
#pragma once
33
namespace
cryptonote
34
{
35
/************************************************************************/
36
/* */
37
/************************************************************************/
38
struct
tx_verification_context
39
{
40
bool
m_should_be_relayed
;
41
bool
m_verification_failed
;
//bad tx, should drop connection
42
bool
m_verification_impossible
;
//the transaction is related with an alternative blockchain
43
bool
m_added_to_pool
;
44
bool
m_low_mixin
;
45
bool
m_double_spend
;
46
bool
m_utxo_nonexistent
;
47
bool
m_invalid_input
;
48
bool
m_invalid_output
;
49
bool
m_too_big
;
50
bool
m_overspend
;
51
bool
m_fee_too_low
;
52
bool
m_not_rct
;
53
bool
m_portal_outbound_tx
;
54
bool
m_bad_bridge_source_address
;
55
bool
m_bad_bridge_smartchain_address
;
56
};
57
58
struct
block_verification_context
59
{
60
bool
m_added_to_main_chain
;
61
bool
m_verification_failed
;
//bad block, should drop connection
62
bool
m_marked_as_orphaned
;
63
bool
m_already_exists
;
64
bool
m_partial_block_reward
;
65
bool
m_validator_list_update_failed
;
66
bool
m_sequential_block
;
67
};
68
69
}
cryptonote::tx_verification_context::m_verification_impossible
bool m_verification_impossible
Definition:
verification_context.h:42
cryptonote::tx_verification_context::m_bad_bridge_smartchain_address
bool m_bad_bridge_smartchain_address
Definition:
verification_context.h:55
cryptonote::tx_verification_context::m_bad_bridge_source_address
bool m_bad_bridge_source_address
Definition:
verification_context.h:54
cryptonote::tx_verification_context::m_double_spend
bool m_double_spend
Definition:
verification_context.h:45
cryptonote::tx_verification_context::m_verification_failed
bool m_verification_failed
Definition:
verification_context.h:41
cryptonote::tx_verification_context::m_overspend
bool m_overspend
Definition:
verification_context.h:50
cryptonote::block_verification_context::m_sequential_block
bool m_sequential_block
Definition:
verification_context.h:66
cryptonote::tx_verification_context::m_added_to_pool
bool m_added_to_pool
Definition:
verification_context.h:43
cryptonote::block_verification_context::m_already_exists
bool m_already_exists
Definition:
verification_context.h:63
cryptonote::tx_verification_context::m_utxo_nonexistent
bool m_utxo_nonexistent
Definition:
verification_context.h:46
cryptonote::block_verification_context
Definition:
verification_context.h:58
cryptonote::tx_verification_context::m_low_mixin
bool m_low_mixin
Definition:
verification_context.h:44
cryptonote::tx_verification_context::m_not_rct
bool m_not_rct
Definition:
verification_context.h:52
cryptonote::block_verification_context::m_validator_list_update_failed
bool m_validator_list_update_failed
Definition:
verification_context.h:65
cryptonote::block_verification_context::m_partial_block_reward
bool m_partial_block_reward
Definition:
verification_context.h:64
cryptonote::tx_verification_context::m_too_big
bool m_too_big
Definition:
verification_context.h:49
cryptonote::block_verification_context::m_marked_as_orphaned
bool m_marked_as_orphaned
Definition:
verification_context.h:62
cryptonote
Holds cryptonote related classes and helpers.
Definition:
ban.cpp:40
cryptonote::tx_verification_context
Definition:
verification_context.h:38
cryptonote::tx_verification_context::m_invalid_input
bool m_invalid_input
Definition:
verification_context.h:47
cryptonote::tx_verification_context::m_portal_outbound_tx
bool m_portal_outbound_tx
Definition:
verification_context.h:53
cryptonote::tx_verification_context::m_should_be_relayed
bool m_should_be_relayed
Definition:
verification_context.h:40
cryptonote::block_verification_context::m_added_to_main_chain
bool m_added_to_main_chain
Definition:
verification_context.h:60
cryptonote::tx_verification_context::m_fee_too_low
bool m_fee_too_low
Definition:
verification_context.h:51
cryptonote::block_verification_context::m_verification_failed
bool m_verification_failed
Definition:
verification_context.h:61
cryptonote::tx_verification_context::m_invalid_output
bool m_invalid_output
Definition:
verification_context.h:48
src
cryptonote_basic
verification_context.h
Generated on Sun Mar 10 2024 12:00:00 for Electroneum by
1.8.14