From 6679823fc0761e8c43c48542fbb3ef3fe0ba8f4d Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Thu, 3 Jan 2019 15:48:43 -0500 Subject: [PATCH] Create global PAK lists for config and blockchain state --- src/primitives/pak.cpp | 12 ++++++++++++ src/primitives/pak.h | 5 +++++ 2 files changed, 17 insertions(+) diff --git a/src/primitives/pak.cpp b/src/primitives/pak.cpp index 716810b31d..46c79a4489 100644 --- a/src/primitives/pak.cpp +++ b/src/primitives/pak.cpp @@ -5,6 +5,18 @@ #include #include +// ELEMENTS + +// PAK entries loaded by config file entries +// These will be embedded into coinbase transaction +// during block creation and tested against during +// testproposedblock +boost::optional g_paklist_config; +// PAK entries loaded from latest coinbase pak commitment +CPAKList g_paklist_blockchain; + + /////////// + namespace { static secp256k1_context *secp256k1_ctx_pak; diff --git a/src/primitives/pak.h b/src/primitives/pak.h index 3eb5506d47..3191e4790c 100644 --- a/src/primitives/pak.h +++ b/src/primitives/pak.h @@ -7,6 +7,7 @@ #include