Files
thehub/testing/api/TestBlockchain.h
tomFlowee a674a3fb7c Change returning of 'target' to be a bytearray.
This affects both the BlockChain/GetBlockHeaderReply and the
BlockChain/GetBlockVerboseReply calls.
The field with id 75 was confusingly called 'bits', but this is really
the blocktarget from the blockheaders. We renamed this.

This field is a int-encoded-floating point value and as such it makes no
sense to send it as a simple int. It is now a byte-array.
Notice that the documentation always listed it as a byte-array so we
actually fixed the implementation to follow the spec.
2024-09-16 23:18:34 +02:00

37 lines
1.1 KiB
C++

/*
* This file is part of the Flowee project
* Copyright (C) 2019-2024 Tom Zander <tom@flowee.org>
*
* 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 TESTAPIBC_H
#define TESTAPIBC_H
#include "BlackBoxTest.h"
class TestApiBlockchain : public BlackBoxTest
{
Q_OBJECT
private slots:
void testChainInfo();
void testGetTransaction();
void testGetScript();
void testFilterOnScriptHash(); // for address filtering
void fetchTransaction();
void filterBlock();
void getBlockHeader();
};
#endif