Skip to content

Commit 0e75edb

Browse files
furszySjors
authored andcommitted
index: enable bip352 parallel sync
1 parent 42a46c0 commit 0e75edb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/index/bip352.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ class BIP352Index final : public BaseIndex
6262

6363
bool CustomAppend(const interfaces::BlockInfo& block) override;
6464

65+
std::any CustomProcessBlock(const interfaces::BlockInfo& block) override {
66+
return CustomAppend(block);
67+
}
68+
6569
BaseIndex::DB& GetDB() const override;
6670
public:
6771

@@ -70,6 +74,8 @@ class BIP352Index final : public BaseIndex
7074
// Destructor is declared because this class contains a unique_ptr to an incomplete type.
7175
virtual ~BIP352Index() override;
7276

77+
bool AllowParallelSync() override { return true; }
78+
7379
bool FindSilentPayment(const uint256& block_hash, tweak_index_entry& index_entry) const;
7480
};
7581

0 commit comments

Comments
 (0)