Skip to content

Commit ae04d12

Browse files
authored
Merge pull request #92 from kcalvinalvin/2023-12-19-add-utreexproofinv
wire: add utreexo proof hash inv
2 parents 8aafeb6 + 8343800 commit ae04d12

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

wire/invvect.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const (
3737
InvTypeTx InvType = 1
3838
InvTypeBlock InvType = 2
3939
InvTypeFilteredBlock InvType = 3
40+
InvTypeUtreexoProofHash InvType = 4
4041
InvTypeWitnessBlock InvType = InvTypeBlock | InvWitnessFlag
4142
InvTypeUtreexoBlock InvType = InvTypeBlock | InvUtreexoFlag
4243
InvTypeWitnessUtreexoBlock InvType = InvTypeBlock | InvWitnessFlag | InvUtreexoFlag
@@ -52,6 +53,7 @@ var ivStrings = map[InvType]string{
5253
InvTypeTx: "MSG_TX",
5354
InvTypeBlock: "MSG_BLOCK",
5455
InvTypeFilteredBlock: "MSG_FILTERED_BLOCK",
56+
InvTypeUtreexoProofHash: "MSG_UTREEXO_PROOF_HASH",
5557
InvTypeWitnessBlock: "MSG_WITNESS_BLOCK",
5658
InvTypeUtreexoBlock: "MSG_UTREEXO_BLOCK",
5759
InvTypeWitnessUtreexoBlock: "MSG_WITNESS_UTREEXO_BLOCK",

wire/invvect_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ func TestInvTypeStringer(t *testing.T) {
2323
{InvTypeTx, "MSG_TX"},
2424
{InvTypeBlock, "MSG_BLOCK"},
2525
{InvTypeUtreexoBlock, "MSG_UTREEXO_BLOCK"},
26+
{InvTypeUtreexoProofHash, "MSG_UTREEXO_PROOF_HASH"},
2627
{0xffffffff, "Unknown InvType (4294967295)"},
2728
}
2829

0 commit comments

Comments
 (0)