Mining/pkg/node
Claude 2508b03df1
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
ax(mining): replace encoding/json with internal UnmarshalJSON in version.go
Remove banned `encoding/json` import from pkg/mining/version.go; read
response body with io.ReadAll then decode via the package-local
UnmarshalJSON wrapper (bufpool.go). Also complete the partial fmt
removal in pkg/node/identity.go left broken by the previous sweep.

Co-Authored-By: Charon <charon@lethean.io>
2026-04-02 17:07:00 +01:00
..
bufpool.go ax(node): replace direct encoding/json with package-level UnmarshalJSON wrapper 2026-04-02 16:42:45 +01:00
bundle.go ax(node): replace prose type comments with usage examples in bundle.go 2026-04-02 16:13:16 +01:00
bundle_test.go ax(node): rename buf to buffer in bundle_test for predictable naming 2026-04-02 16:26:37 +01:00
controller.go ax(node): rename abbreviated msg locals to message in controller 2026-04-02 16:59:58 +01:00
dispatcher.go Implement STIM bundle decryption and installation 2026-02-02 06:07:05 +00:00
identity.go ax(mining): replace encoding/json with internal UnmarshalJSON in version.go 2026-04-02 17:07:00 +01:00
identity_test.go ax(node): rename nm/nm1/nm2 to nodeManager/nodeManager1/nodeManager2 in identity test 2026-04-02 13:14:08 +01:00
lethean.go ax(node): rename ChainInfo.Aliases to AliasCount for type clarity 2026-04-02 16:15:07 +01:00
lethean_test.go ax(node): add Good and Ugly test variants for GetChainInfo, DiscoverPools, DiscoverGateways 2026-04-02 16:54:59 +01:00
message.go ax(node): replace prose constant comments with usage examples in message.go 2026-04-02 16:48:39 +01:00
message_test.go ax(node): rename message_test.go functions to TestMessage_Function_{Good,Bad,Ugly} 2026-04-02 11:25:07 +01:00
peer.go ax(node): replace banned fmt import in peer.go with ProtocolError 2026-04-02 16:47:06 +01:00
peer_test.go ax(node): replace single-letter loop variables p and k with peer and key 2026-04-02 17:03:24 +01:00
protocol.go ax(node): rename pe to protocolError in GetProtocolErrorCode 2026-04-02 16:16:44 +01:00
protocol_test.go ax(node): fix TestProtocol_ValidateResponse_Ugly comment and assertion 2026-04-02 16:56:38 +01:00
transport.go ax(node): rename w/r HTTP handler params to responseWriter/request 2026-04-02 16:23:25 +01:00
worker.go ax(node): replace path with filepath for filesystem path joining 2026-04-02 16:53:35 +01:00
worker_test.go ax(node): rename tt to testCase in TestWorker_ConvertMinerStats_Good 2026-04-02 16:57:50 +01:00