<!-- XE-16993 · [Low] EncodeVote drops Vote.Weight, which JSON gossip/votesync carries · testnet -->
*Markdown view of <https://bounty.xe.network/XE-16993>. The page is the record; this is the same page for reading.*

XE-16993 · Bounty

# \[Low\] EncodeVote drops Vote.Weight, which JSON gossip/votesync carries

Closed · invalid
—
[xe#704](https://github.com/xeprotocol/xe/issues/704)
filed 2026-11-17 08:13 UTC
by kecedanzz77-bit

Verdict
:   Invalid

Tier
:   —

Claimed
:   —

Area
:   Consensus

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-22 23:41 UTC

Told
:   2026-11-22 23:41 UTC

### Patches

None linked.

### History

- [770528](https://bounty.xe.network/log/770528) 2026-11-22 23:41 UTC reply.mirror\_failed
- [770524](https://bounty.xe.network/log/770524) 2026-11-22 23:41 UTC reply.sent
- [770237](https://bounty.xe.network/log/770237) 2026-11-22 23:26 UTC proposal.adopted
- [769944](https://bounty.xe.network/log/769944) 2026-11-22 23:26 UTC proposal.adopted
- [769943](https://bounty.xe.network/log/769943) 2026-11-22 23:26 UTC ticket.status new → closed
- [768976](https://bounty.xe.network/log/768976) 2026-11-22 23:25 UTC proposal.adopted
- [768975](https://bounty.xe.network/log/768975) 2026-11-22 23:25 UTC ticket.facts area
- [768974](https://bounty.xe.network/log/768974) 2026-11-22 23:25 UTC proposal.adopted
- [768973](https://bounty.xe.network/log/768973) 2026-11-22 23:25 UTC ticket.facts
- [766461](https://bounty.xe.network/log/766461) 2026-11-22 23:17 UTC note.added
- [766450](https://bounty.xe.network/log/766450) 2026-11-22 23:17 UTC proposal.created
- [766449](https://bounty.xe.network/log/766449) 2026-11-22 23:17 UTC proposal.created

[Full history](https://bounty.xe.network/log?ref=XE-16993) · [JSON](https://bounty.xe.network/v1/tickets/XE-16993) · [markdown](https://bounty.xe.network/XE-16993.md)

### Report

## Summary

`EncodeVote` drops `Vote.Weight`, which JSON gossip/votesync carry. The binary vote codec has no Weight field, so a binary round-trip loses the vote's weight. Latent (the binary codec has no callers outside `encoding.go` \+ `crypto.go`), same standing as accepted #100.

## Root Cause

- `Vote.Weight` (`core/types.go:157`) is set on every received vote (`core/vote.go:145-151`) and every locally cast vote (`core/finalization.go:335`), and JSON `VoteMsg`/`VoteResponse` (`net/messages.go:12`, `net/votesync.go:25`) serialize it.
- `EncodeVote`/`DecodeVote` (`core/encoding.go:678`/:696) have no Weight field.

## Verification

Executed PoC:

```
in Weight=123456789 out Weight=0
JSON of the same vote contains "Weight":123456789
```

## Note on related reports

Searched `EncodeVote Weight` and `vote weight binary` — no hits. Distinct from #563 (DecodeVote uint16 sig-length panic) and #655 (nonzero final byte).

## Suggested fix

Add the Weight field to the binary vote codec, or document that binary votes are weightless.

### Thread

**XE desk**team2026-11-22 23:41 UTCdesk

Thanks for the report. We read it against the code and could not confirm a bug in what it describes.

This report is closed as invalid. If we have missed something, file a new report that links
https://bounty.xe.network/XE-16993 and says what; it is read like any other.
