mirror of
https://github.com/status-im/nim-eth.git
synced 2025-01-12 15:24:21 +00:00
22757db83b
toBytes for NodeId wasn't selected by compiler byt if it does get selected, it will fail on the test cases due to the countdown that is done in logDistance. Set to toBytesBE properly now and do countup, that should make it correct also for BE architecture. Removed toBytes to avoid confusion and avoid this one being selected ever. The only place toBytes for NodeId was used is in sessions.nim makeKey func and there also the stint one (thus native endianness) was selected in Nim 1.2.x. Native endianness is fine there as it is only an internal representation.