Skip to content

Commit 5290cc1

Browse files
committed
#1003 fix BITE build
1 parent 4e18377 commit 5290cc1

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

bite/BiteManager.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ class BiteManager {
7575

7676
[[nodiscard]] DecryptedTransactions verifyAndDecryptTransactionList(
7777
const TransactionList &_transactionList, const DecryptedAESKeyList &_aesKeys,
78-
uint64_t _epochId, bool _isBite2PatchEnabledForBlock );
78+
uint64_t _epochId
79+
#ifdef BITE2
80+
, bool _isBite2PatchEnabledForBlock
81+
#endif
82+
);
7983

8084

8185
// ============== Getters ============== //

chains/Schain.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1676,13 +1676,16 @@ void Schain::finalizeDecidedAndSignedBlockInThread(block_id _blockId, schain_ind
16761676
CHECK_STATE(keys);
16771677

16781678
auto transactions = proposal->getTransactionList();
1679-
bool isBite2PatchEnabledForBlock = false;
16801679
#ifdef BITE2
1681-
isBite2PatchEnabledForBlock = bite2Patch( getLastCommittedBlockTimeStamp().getS() );
1680+
bool isBite2PatchEnabledForBlock = bite2Patch( getLastCommittedBlockTimeStamp().getS() );
16821681
#endif
16831682
auto decryptedTransactions = getBiteManager()->verifyAndDecryptTransactionList(
1684-
*transactions, (*keys), (uint64_t)proposal->getEpochID(), isBite2PatchEnabledForBlock );
1685-
#endif
1683+
*transactions, (*keys), (uint64_t)proposal->getEpochID()
1684+
#ifdef BITE2
1685+
, isBite2PatchEnabledForBlock
1686+
#endif // BITE2
1687+
);
1688+
#endif // BITE
16861689

16871690
auto daProofSig = getNode()->getDaProofDB()->getDASig( _blockId, _proposerIndex );
16881691
auto hash = proposal->getHash();

0 commit comments

Comments
 (0)