git://git.novaco.in
/
novacoin.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Remove the LOCKS_SWITCH_TIME conditions
[novacoin.git]
/
src
/
scrypt_mine.h
1
#ifndef SCRYPT_MINE_H
2
#define SCRYPT_MINE_H
3
4
#include <stdint.h>
5
#include <stdlib.h>
6
7
#include "util.h"
8
#include "net.h"
9
10
typedef struct
11
{
12
unsigned int version;
13
uint256 prev_block;
14
uint256 merkle_root;
15
unsigned int timestamp;
16
unsigned int bits;
17
unsigned int nonce;
18
} block_header;
19
20
void *scrypt_buffer_alloc();
21
void scrypt_buffer_free(void *scratchpad);
22
void scrypt_hash(const void* input, size_t inputlen, uint32_t *res, void *scratchpad);
23
24
#endif // SCRYPT_MINE_H