Ejemplo n.º 1
0
 /** The complement to `set` api, which together form a simple public interface. */
 public byte[] get(Hash256 hash) {
   return backend.get(hash);
 }
Ejemplo n.º 2
0
 /**
  * @param hash As ripple uses the `hash` of the contents as the NodeStore key, `hash` is
  *     pervasively used in lieu of the term `key`.
  */
 private void storeHashKeyedContent(Hash256 hash, byte[] content) {
   // Note: The real nodestore actually prepends some metadata, which doesn't
   // contribute to the hash.
   backend.put(hash, content); // metadata + content
 }