Skip to content

wire: fix build and tests broken by the wire patch - #8

Open
bitcoinbrisbane wants to merge 1 commit into
LBRYFoundation:masterfrom
bitcoinbrisbane:fix-wire-freelist
Open

bitcoinbrisbane wants to merge 1 commit into
LBRYFoundation:masterfrom
bitcoinbrisbane:fix-wire-freelist

Conversation

@bitcoinbrisbane

Copy link
Copy Markdown

Build and Test has been failing on master since the "Patch folder: wire" commit. wire doesn't compile:

blockheader.go:117:26: binarySerializer.Borrow undefined (type binaryFreeList has no field or method Borrow)

Changes

  • Restore binaryFreeList.Borrow/Return (removed, but ~50 callers remain).
  • MaxBlockHeaderPayload = 16 + 3 hashes (112 bytes, includes ClaimTrie), fixing TestHeaders.
  • TestBlockHeaderWire: set ClaimTrie[0] = 0x33 like the sibling test, so the header matches its expected bytes.

Test plan

  • go build ./...
  • cd wire && go test ./... passes
  • CI Build and Test green (other packages not run locally)

🤖 Generated with Claude Code

- Restore binaryFreeList.Borrow/Return; they were removed but ~50 callers
  (blockheader.go, common.go, tests) still use them, so wire didn't compile.
- MaxBlockHeaderPayload counts three hashes (PrevBlock, MerkleRoot,
  ClaimTrie), matching the 112-byte header, not btcd's two.
- TestBlockHeaderWire: set ClaimTrie[0]=0x33 as the sibling test does, so
  the header matches its expected bytes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@bitcoinbrisbane bitcoinbrisbane mentioned this pull request Nov 12, 2026
3 of 4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant