Adds support for getting/setting KV records in the header's userData field through both a constructor option, and the new getUserData and setUserData methods.
Also adds the tmp-promise dependency, as this PR adds a test for persistent behavior (where a Hypercore is reopened).
Adds support for getting/setting KV records in the header's
userData
field through both a constructor option, and the newgetUserData
andsetUserData
methods.Also adds the
tmp-promise
dependency, as this PR adds a test for persistent behavior (where a Hypercore is reopened).