Skip to content

Commit

Permalink
Add macro DISABLE_MESSAGE_CALCULATION_FLOW
Browse files Browse the repository at this point in the history
message calculation flow is not part of cobuild protocol.
Some of lock scripts may need this.
  • Loading branch information
XuJiandong committed Apr 7, 2024
1 parent 5c25d6a commit 60b7c5b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions c/cobuild.h
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,14 @@ static int check_type_script_existing(MessageType msg) {
static int parse_seal(const mol2_cursor_t original_seal, mol2_cursor_t *seal,
uint8_t *message_calculation_flow) {
int err = 0;
// message calculation flow is not part of cobuild protocol.
// Some of lock scripts may need this.
#ifdef DISABLE_MESSAGE_CALCULATION_FLOW
*seal = original_seal;
*message_calculation_flow = 0;
return 0;
#endif

uint32_t prefix_length = 1;
uint8_t prefix[1] = {0};

Expand Down

0 comments on commit 60b7c5b

Please sign in to comment.