Post
Topic
Board Development & Technical Discussion
Re: bitsofproof supernode vulnerability: block chain split / node isolation
by
apetersson
on 12/11/2012, 21:25:13 UTC
Object key would not work since the byte arrays are instantiated from the script, their content matches, not their identity.
well, thats why i provided you with a clean equals + hashCode method for your pleasure Smiley

is there any particular reason why you use edu.emory.mathcs.backport.java.util.Arrays ? the one from java.util works just fine imo.

edit: after re-reading the code provided - i think you can squeeze out performance by using only partial data of the arrays in hashCode() - maybe just the last 2 bytes from hash array.