mu-zero-HYPERLOOP / canzero

Control Panel of Mu-Zero Hyperloop Season 4
https://mu-zero.de
6 stars 0 forks source link

configuration between raspberry pi and x86 seems inconsistant #115

Closed kistenklaus closed 5 months ago

kistenklaus commented 5 months ago

So i guess the hunch was correct, there seems to be some inconsistancies here it, but it also just be the hashing, but we will have to investiage

kistenklaus commented 5 months ago

it wasn't inconsistant, but the hashing of the network config was platform dependent, which lead to different hashes, changed this by manually hashing everything. Big problem here was usize, which is obviously platform dependent, which meant that String, Vec and anything containing any length would be hashed platform depenent. Additionally DefaultHasher from std::hash is not portable (platform independent), i used the seahash crate to make it portable !