-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathgenerator.h
More file actions
30 lines (25 loc) · 1.07 KB
/
Copy pathgenerator.h
File metadata and controls
30 lines (25 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* Copyright 2014-2018,2023 Con Kolivas
*
* 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. See COPYING for more details.
*/
#ifndef GENERATOR_H
#define GENERATOR_H
#include "config.h"
#define GETBEST_FAILED -1
#define GETBEST_NOTIFY 0
#define GETBEST_SUCCESS 1
void generator_add_send(ckpool_t *ckp, json_t *val);
struct genwork *generator_getbase(ckpool_t *ckp);
int generator_getbest(ckpool_t *ckp, char *hash);
bool generator_checkaddr(ckpool_t *ckp, const char *addr, bool *script, bool *segwit);
bool generator_checktxn(const ckpool_t *ckp, const char *txn, json_t **val);
char *generator_get_txn(ckpool_t *ckp, const char *hash);
bool generator_submitblock(ckpool_t *ckp, const char *buf);
void generator_preciousblock(ckpool_t *ckp, const char *hash);
bool generator_get_blockhash(ckpool_t *ckp, int height, char *hash);
void *generator(void *arg);
#endif /* GENERATOR_H */