nspcc-dev / nspcc-dev/neofs-node

Clearly write endianness of contract/transaction hashes in the user-facing output (log)

Open
#2,693 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement I3 S4 U3
Dominant language
Go
Stars
38
Forks
51
Avg merge
1d 20h
Merged PRs (30d)
38

Description

Is your feature request related to a problem? Please describe.

I'm always frustrated when user sees contract/transaction hash in the log and can only ask "what the endianness?". And even more frustrated when actual endianness differs from other Neo-based software like https://github.com/nspcc-dev/neo-go/.

Describe the solution you'd like

  1. decide what E to use. Neo Go uses LE, so it's worth to do the same
  2. write all user facing prints in this E, don't diverge formats
  3. clearly write what is printed to be completely sure (e.g. "contract/transaction (LE)": "...")

with this, observer will definitely know what he sees. Even if he need an opposite E, there is neo-go util convert utility to help

Describe alternatives you've considered

i dont see ones

Additional context

take contract/transaction from NeoFS chain auto-deployment log and go neo-go query tx it 🏁

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the user-facing contract and transaction hash output, then compare it with the NeoFS chain auto-deployment log and neo-go query tx. Decide and document the endianness, update the relevant prints consistently, and verify that each displayed hash clearly labels its endianness.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
blockchain
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.