OlinCoin
Test
Functions
validate_block.h File Reference

Header for fof functions used to validate a new block that is broadcast on the blockchain and update the various appropriate structures. More...

#include "base_tx.h"
#include "base_block.h"
Include dependency graph for validate_block.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int validate_tx_shared (Transaction *tx)
 
int validate_coinbase_tx (Transaction **txs, unsigned int num_txs)
 
int validate_incoming_block_txs (Transaction **txs, unsigned int num_txs)
 
void request_prev_block (unsigned char *prev_header)
 OPTIONAL.
 
void add_to_pending_blocks (unsigned char *curr_header)
 
int validate_prev_block_exists (Block *block)
 
int validate_all_tx_hash (Block *block)
 
int validate_block_double_spend (Block *block)
 
int validate_block (Block *block)
 

Detailed Description

Header for fof functions used to validate a new block that is broadcast on the blockchain and update the various appropriate structures.

Author
Nathan Faber (nfabe.nosp@m.r@ol.nosp@m.in.ed.nosp@m.u.co.nosp@m.m)
Version
0.1
Date
2022-03-18