public static boolean isCodeHashValue(final byte[] key, final byte[] value) {
final Hash valueHash = Hash.hash(Bytes.wrap(value));
return Bytes.wrap(key).equals(valueHash);
}
Perhaps we could do the same here, but I expect most of our use cases of Bela will involve "by code hash" since it's the new default, so seems reasonable to default to it during traversal and fallback if necessary.
Besu "detects" it using the DB...
Perhaps we could do the same here, but I expect most of our use cases of Bela will involve "by code hash" since it's the new default, so seems reasonable to default to it during traversal and fallback if necessary.