Skip to content

Commit ed610de

Browse files
refactor: break new circular dependencies from evo snapshot work
1 parent c91e249 commit ed610de

6 files changed

Lines changed: 692 additions & 630 deletions

File tree

src/Makefile.am

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ BITCOIN_CORE_H = \
226226
evo/mnauth.h \
227227
evo/mnhftx.h \
228228
evo/netinfo.h \
229+
evo/snapshot_types.h \
229230
evo/providertx.h \
230231
evo/simplifiedmns.h \
231232
evo/smldiff.h \
@@ -531,6 +532,7 @@ libbitcoin_node_a_SOURCES = \
531532
evo/mnauth.cpp \
532533
evo/mnhftx.cpp \
533534
evo/snapshot.cpp \
535+
evo/snapshot_load.cpp \
534536
evo/providertx.cpp \
535537
evo/simplifiedmns.cpp \
536538
evo/smldiff.cpp \
@@ -1368,6 +1370,7 @@ libdashkernel_la_SOURCES = \
13681370
util/threadnames.cpp \
13691371
util/time.cpp \
13701372
util/tokenpipe.cpp \
1373+
evo/snapshot_load.cpp \
13711374
validation.cpp \
13721375
validationinterface.cpp \
13731376
versionbits.cpp \

src/evo/snapshot.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <consensus/params.h>
99
#include <evo/creditpool.h>
1010
#include <evo/deterministicmns.h>
11+
#include <evo/snapshot_types.h>
1112
#include <llmq/commitment.h>
1213
#include <llmq/params.h>
1314
#include <llmq/snapshot.h>
@@ -41,12 +42,6 @@ class CQuorumSnapshotManager;
4142

4243
namespace evo {
4344

44-
class SnapshotStateMismatchError : public std::runtime_error
45-
{
46-
public:
47-
using std::runtime_error::runtime_error;
48-
};
49-
5045
static constexpr uint16_t EVO_SNAPSHOT_VERSION{3};
5146
/** Serialized little-endian bytes are "DASHEVO\0". */
5247
static constexpr uint64_t EVO_SNAPSHOT_MARKER{0x004f564548534144ULL};

0 commit comments

Comments
 (0)