Skip to content

Commit

Permalink
Merge pull request #250 from jphickey/fix-248-blocktype
Browse files Browse the repository at this point in the history
Fix #248, change blocktype value used for custody
  • Loading branch information
jphickey authored Sep 27, 2023
2 parents 3910733 + 91bddbc commit 111392c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions v7/inc/v7_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ typedef enum bp_blocktype
bp_blocktype_hopCount = 10,
bp_blocktype_bpsec_bib = 11,
bp_blocktype_bpsec_bcb = 12,
bp_blocktype_custodyTrackingBlock = 13,
bp_blocktype_MAX_NORMAL = 14,
bp_blocktype_custodyTrackingBlock = 73,

/*
* These are internal block types - they exist only locally in this implementation
Expand Down
2 changes: 1 addition & 1 deletion v7/src/v7_bp_canonical_block.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void v7_encode_bp_canonical_bundle_block(v7_encode_state_t *enc, const bp_canoni
break;
}

if (encode_blocktype < bp_blocktype_MAX_NORMAL)
if (encode_blocktype < bp_blocktype_SPECIAL_BLOCKS_START)
{
v7_encode_bp_blocktype(enc, &encode_blocktype);
v7_encode_bp_blocknum(enc, &v->blockNum);
Expand Down

0 comments on commit 111392c

Please sign in to comment.