trie: rename TrieSync to Sync and improve hexToKeybytes (#16804)
This removes a golint warning: type name will be used as trie.TrieSync by other packages, and that stutters; consider calling this Sync. In hexToKeybytes len(hex) is even and (even+1)/2 == even/2, remove the +1.
Showing
- core/state/sync.go 3 additions, 3 deletionscore/state/sync.go
- eth/downloader/statesync.go 1 addition, 1 deletioneth/downloader/statesync.go
- trie/encoding.go 1 addition, 1 deletiontrie/encoding.go
- trie/sync.go 14 additions, 14 deletionstrie/sync.go
- trie/sync_test.go 18 additions, 18 deletionstrie/sync_test.go
Loading
Please register or sign in to comment