Skip to content

wire: add utreexo proof hash inv #92

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions wire/invvect.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const (
InvTypeTx InvType = 1
InvTypeBlock InvType = 2
InvTypeFilteredBlock InvType = 3
InvTypeUtreexoProofHash InvType = 4
InvTypeWitnessBlock InvType = InvTypeBlock | InvWitnessFlag
InvTypeUtreexoBlock InvType = InvTypeBlock | InvUtreexoFlag
InvTypeWitnessUtreexoBlock InvType = InvTypeBlock | InvWitnessFlag | InvUtreexoFlag
Expand All @@ -52,6 +53,7 @@ var ivStrings = map[InvType]string{
InvTypeTx: "MSG_TX",
InvTypeBlock: "MSG_BLOCK",
InvTypeFilteredBlock: "MSG_FILTERED_BLOCK",
InvTypeUtreexoProofHash: "MSG_UTREEXO_PROOF_HASH",
InvTypeWitnessBlock: "MSG_WITNESS_BLOCK",
InvTypeUtreexoBlock: "MSG_UTREEXO_BLOCK",
InvTypeWitnessUtreexoBlock: "MSG_WITNESS_UTREEXO_BLOCK",
Expand Down
1 change: 1 addition & 0 deletions wire/invvect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func TestInvTypeStringer(t *testing.T) {
{InvTypeTx, "MSG_TX"},
{InvTypeBlock, "MSG_BLOCK"},
{InvTypeUtreexoBlock, "MSG_UTREEXO_BLOCK"},
{InvTypeUtreexoProofHash, "MSG_UTREEXO_PROOF_HASH"},
{0xffffffff, "Unknown InvType (4294967295)"},
}

Expand Down