Skip to content

Commit

Permalink
Merge bitcoin#19521: Coinstats Index
Browse files Browse the repository at this point in the history
  • Loading branch information
laanwj authored and jagdeep sidhu committed May 1, 2021
1 parent fa3f34f commit ddf3334
Show file tree
Hide file tree
Showing 21 changed files with 1,176 additions and 108 deletions.
2 changes: 2 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ SYSCOIN_CORE_H = \
i2p.h \
index/base.h \
index/blockfilterindex.h \
index/coinstatsindex.h \
index/disktxpos.h \
index/txindex.h \
indirectmap.h \
Expand Down Expand Up @@ -486,6 +487,7 @@ libsyscoin_server_a_SOURCES = \
i2p.cpp \
index/base.cpp \
index/blockfilterindex.cpp \
index/coinstatsindex.cpp \
index/txindex.cpp \
init.cpp \
mapport.cpp \
Expand Down
1 change: 1 addition & 0 deletions src/Makefile.test.include
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ SYSCOIN_TESTS =\
test/bswap_tests.cpp \
test/checkqueue_tests.cpp \
test/coins_tests.cpp \
test/coinstatsindex_tests.cpp \
test/compilerbug_tests.cpp \
test/compress_tests.cpp \
test/crypto_tests.cpp \
Expand Down
2 changes: 1 addition & 1 deletion src/crypto/muhash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,6 @@ MuHash3072& MuHash3072::Insert(Span<const unsigned char> in) noexcept {
}

MuHash3072& MuHash3072::Remove(Span<const unsigned char> in) noexcept {
m_numerator.Divide(ToNum3072(in));
m_denominator.Multiply(ToNum3072(in));
return *this;
}
2 changes: 2 additions & 0 deletions src/index/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ class BaseIndex : public CValidationInterface

void ChainStateFlushed(const CBlockLocator& locator) override;

const CBlockIndex* CurrentIndex() { return m_best_block_index.load(); };

/// Initialize internal state from the database and block index.
virtual bool Init();

Expand Down
Loading

0 comments on commit ddf3334

Please sign in to comment.