OlinCoin
Test
validate_block.h
Go to the documentation of this file.
1
11#pragma once
12
13#include "base_tx.h"
14#include "base_block.h"
15
17
18int validate_coinbase_tx(Transaction **txs, unsigned int num_txs);
19
20int validate_incoming_block_txs(Transaction **txs, unsigned int num_txs);
21
23void request_prev_block(unsigned char *prev_header);
24
25void add_to_pending_blocks(unsigned char *curr_header);
26
27int validate_prev_block_exists(Block *block);
28
29int validate_all_tx_hash(Block *block);
30
31int validate_block_double_spend(Block *block);
32
33int validate_block(Block *block);
Definition: base_block.h:12
Definition: base_tx.h:19
void request_prev_block(unsigned char *prev_header)
OPTIONAL.
Definition: validate_block.c:21
int validate_tx_shared(Transaction *tx)
Overall wrapper to validate an entire transaction that is NOT a Coinbase_tx.
Definition: validate_tx.c:126