Skip to content

Commit 50b5d38

Browse files
Merge pull request #1015 from skalenetwork/bug/IS-1429-bite2-update
Bug/is 1429 bite2 update
2 parents 36f8c8b + eed998f commit 50b5d38

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

datastructures/TransactionList.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,11 @@ ptr< ConsensusExtFace::Transactions > TransactionList::createTransactionVector(
165165
// TODO - refactor to simply call biteManager->parseBITETransactions
166166
if (biteManager) {
167167
auto epochId = biteManager->getSchain()->getNode()->getCurrentEpochId();
168+
bool isBite2PatchEnabled = biteManager->getSchain()->bite2Patch(
169+
biteManager->getSchain()->getLastCommittedBlockTimeStamp().getS() );
168170
for (size_t i = 0; i < transactions->size(); i++) {
169171
auto tx = transactions->at(i);
170-
if (BiteEngine::tryGetEncryptedCTXArgs(tx, epochId)) {
172+
if (isBite2PatchEnabled && BiteEngine::tryGetEncryptedCTXArgs(tx, epochId)) {
171173
tv->pushBackCTX(*(tx->getData()));
172174
}
173175
else {

0 commit comments

Comments
 (0)