Files

51 lines
1.4 KiB
C++
Raw Permalink Normal View History

2019-04-21 14:39:55 +02:00
/*
* This file is part of the flowee project
2021-06-20 22:44:44 +02:00
* Copyright (C) 2017-2019 Tom Zander <tom@flowee.org>
2019-04-21 14:39:55 +02:00
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef TEST_BLOCKVALIDATION_H
#define TEST_BLOCKVALIDATION_H
#include <common/TestFloweeSession.h>
class TestBlockValidation : public TestFloweeSession
{
Q_OBJECT
public:
TestBlockValidation();
private slots:
void reorderblocks();
void reorderblocks2();
void detectOrder();
void detectOrder2();
void duplicateInput();
void CTOR();
2019-04-21 21:42:01 +02:00
void rollback();
void minimalPush();
2019-04-21 14:39:55 +02:00
2020-11-18 22:08:00 +01:00
void manualAdjustments();
2021-02-19 13:29:08 +01:00
void testBlockIndex();
2019-04-21 14:39:55 +02:00
private:
2021-11-02 10:18:24 +01:00
Block createHeader(const Block &full) const;
2019-04-21 14:39:55 +02:00
// this only works if the input is a p2pkh script!
2022-07-06 22:12:33 +02:00
CTransaction splitCoins(const Tx &inTx, int inIndex, const PrivateKey &from, const PrivateKey &to, int outputCount) const;
2019-04-21 14:39:55 +02:00
};
#endif