Files
dragonx/src/test-komodo/testutils.h
Scott Sadler 0cb91a8d20 wip
2018-04-29 00:34:57 -03:00

28 lines
622 B
C++

#ifndef TESTUTILS_H
#define TESTUTILS_H
#include "main.h"
#define VCH(a,b) std::vector<unsigned char>(a, a + b)
static char ccjsonerr[1000] = "\0";
#define CCFromJson(o,s) \
o = cc_conditionFromJSONString(s, ccjsonerr); \
if (!o) FAIL() << "bad json: " << ccjsonerr;
extern std::string notaryPubkey;
extern std::string notarySecret;
extern CKey notaryKey;
void setupChain();
void generateBlock(CBlock *block=NULL);
bool acceptTx(const CTransaction tx, CValidationState &state);
void acceptTxFail(const CTransaction tx);
void getInputTx(CScript scriptPubKey, CTransaction &txIn);
#endif /* TESTUTILS_H */