{"id":"XE-16993","kind":"bounty","visibility":"public","source":"github","source_repo":"xeprotocol/xe","source_ref":"704","source_url":"https://github.com/xeprotocol/xe/issues/704","reporter_id":2920,"title":"[Low] EncodeVote drops Vote.Weight, which JSON gossip/votesync carries","area":"consensus","claimed_tier":null,"assessed_tier":null,"verdict":"invalid","duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":"","status":"closed","closed_reason":"invalid","github_state":"open","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-17T08:13:52.224972+00:00","updated_at":"2026-11-22T23:41:14.392022+00:00","source_created_at":"2026-11-17T08:13:04+00:00","told_at":"2026-11-22T23:41:14.394234+00:00","status_changed_at":"2026-11-22T23:26:14.079505+00:00","url":"https://bounty.xe.network/XE-16993","body":"## Summary\n\n`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.\n\n## Root Cause\n\n- `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.\n- `EncodeVote`/`DecodeVote` (`core/encoding.go:678`/:696) have no Weight field.\n\n## Verification\n\nExecuted PoC:\n\n```\nin Weight=123456789 out Weight=0\nJSON of the same vote contains \"Weight\":123456789\n```\n\n## Note on related reports\n\nSearched `EncodeVote Weight` and `vote weight binary` — no hits. Distinct from #563 (DecodeVote uint16 sig-length panic) and #655 (nonzero final byte).\n\n## Suggested fix\n\nAdd the Weight field to the binary vote codec, or document that binary votes are weightless.\n","patch_refs":[],"thread":[{"id":18928,"source":"desk","source_ref":"reply:16605","author":"XE desk","team":true,"body":"Thanks for the report. We read it against the code and could not confirm a bug in what it describes.\n\nThis report is closed as invalid. If we have missed something, file a new report that links\nhttps://bounty.xe.network/XE-16993 and says what; it is read like any other.","created_at":"2026-11-22T23:41:14.392022+00:00"}]}