From cd4e553914222802b3b28e37e9f3df199efb3880 Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Tue, 11 Dec 2018 11:24:36 -0500 Subject: [PATCH] CProof (re)setting and validation helper functions --- src/Makefile.am | 2 ++ src/block_proof.cpp | 62 +++++++++++++++++++++++++++++++++++++++++++++ src/block_proof.h | 26 +++++++++++++++++++ 3 files changed, 90 insertions(+) create mode 100644 src/block_proof.cpp create mode 100644 src/block_proof.h diff --git a/src/Makefile.am b/src/Makefile.am index 81700addf3..16d31b8efc 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -96,6 +96,7 @@ BITCOIN_CORE_H = \ bech32.h \ bloom.h \ blockencodings.h \ + block_proof.h \ chain.h \ chainparams.h \ chainparamsbase.h \ @@ -221,6 +222,7 @@ libbitcoin_server_a_SOURCES = \ addrman.cpp \ bloom.cpp \ blockencodings.cpp \ + block_proof.cpp \ chain.cpp \ checkpoints.cpp \ consensus/tx_verify.cpp \ diff --git a/src/block_proof.cpp b/src/block_proof.cpp new file mode 100644 index 0000000000..8465a781e1 --- /dev/null +++ b/src/block_proof.cpp @@ -0,0 +1,62 @@ +// Copyright (c) 2009-2010 Satoshi Nakamoto +// Copyright (c) 2009-2018 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#include + +#include +#include +#include