Skip to content

Commit

Permalink
806 Add PL flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kladkogex committed Feb 24, 2025
1 parent b6abd61 commit 33e8717
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions messages/Message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@
ptr< ProtocolKey > Message::createProtocolKey() {
CHECK_STATE( msgType == PARENT_COMPLETED || msgType == MSG_BVB_BROADCAST ||
msgType == MSG_AUX_BROADCAST || msgType == BIN_CONSENSUS_COMMIT ||
msgType == MSG_BLOCK_SIGN_BROADCAST || msgType == MSG_ORACLE_REQ_BROADCAST ||
msgType == MSG_ORACLE_RSP );
msgType == MSG_BLOCK_SIGN_BROADCAST
#ifndef PL
|| msgType == MSG_ORACLE_REQ_BROADCAST
|| msgType == MSG_ORACLE_RSP
#endif
);
CHECK_STATE( blockID > 0 );
if ( protocolKey == nullptr ) {
protocolKey = make_shared< ProtocolKey >( blockID, blockProposerIndex );
Expand Down
2 changes: 2 additions & 0 deletions messages/Message.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ enum MsgType {
MSG_BLOCK_PROPOSAL = 13,
MSG_BLOCK_COMMIT = 14,
MSG_DA_PROOF = 15,
#ifndef PL
MSG_ORACLE_REQ_BROADCAST = 16,
MSG_ORACLE_RSP = 17
#endif
};

class ProtocolInstance;
Expand Down

0 comments on commit 33e8717

Please sign in to comment.