1
0
Fork 0
forked from lthn/blockchain
blockchain/tests/core_tests/daemon_rpc.h
Stёpa Dolgorukov dcd7f62968
coretests: Fix an execution of the core test "fill_tx_rpc_inputs", rename callbacks (#498)
* Core tests: implement a test of the function "blockchain_storage::fill_tx_rpc_inputs"

* Fix test execution when compiling via gcc 8.4.0

* Rename callbacks in the test "fill_tx_rpc_inputs"
2025-01-20 04:21:27 +01:00

22 lines
1.3 KiB
C++

// Copyright (c) 2024 Zano Project
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once
#include <vector>
#include "chaingen.h"
struct fill_tx_rpc_inputs : public test_chain_unit_enchanced
{
fill_tx_rpc_inputs();
bool generate(std::vector<test_event_entry>& events) const;
bool c1(const currency::core& core, const size_t event_position, const std::vector<test_event_entry>& events) const;
bool c2(const currency::core& core, const size_t event_position, const std::vector<test_event_entry>& events) const;
bool c3(const currency::core& core, const size_t event_position, const std::vector<test_event_entry>& events) const;
bool c4(const currency::core& core, const size_t event_position, const std::vector<test_event_entry>& events) const;
bool c5(const currency::core& core, const size_t event_position, const std::vector<test_event_entry>& events) const;
bool c6(const currency::core& core, const size_t event_position, const std::vector<test_event_entry>& events) const;
bool c7(const currency::core& core, const size_t event_position, const std::vector<test_event_entry>& events) const;
bool c8(const currency::core& core, const size_t event_position, const std::vector<test_event_entry>& events) const;
};