OlinCoin
Test
Functions
validate_block.c File Reference

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

#include "validate_block.h"
#include "create_block.h"
#include "mempool.h"
#include "blockchain.h"
#include "utxo_to_tx.h"
#include "double_spend_set.h"
#include "validate_tx.h"
Include dependency graph for validate_block.c:

Functions

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_coinbase_tx (Transaction **txs, unsigned int num_txs)
 
int validate_incoming_block_txs (Transaction **txs, unsigned int num_txs)
 
int validate_block_double_spend (Block *block)
 
int validate_block (Block *block)
 

Detailed Description

implementation of 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
Version
0.1
Date
2022-03-20