hypercore 10.21.3 → 10.21.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/messages.js +2 -2
- package/package.json +1 -1
package/lib/messages.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const c = require('compact-encoding')
|
|
2
2
|
const b4a = require('b4a')
|
|
3
|
+
const { DEFAULT_NAMESPACE } = require('./caps')
|
|
3
4
|
const { INVALID_OPLOG_VERSION } = require('hypercore-errors')
|
|
4
5
|
|
|
5
6
|
const EMPTY = b4a.alloc(0)
|
|
@@ -825,12 +826,11 @@ oplog.header = {
|
|
|
825
826
|
return {
|
|
826
827
|
key: old.signer.publicKey,
|
|
827
828
|
manifest: {
|
|
828
|
-
namespace: b4a.alloc(32),
|
|
829
829
|
hash: old.types.tree,
|
|
830
830
|
static: null,
|
|
831
831
|
signer: {
|
|
832
832
|
signature: old.types.signer,
|
|
833
|
-
|
|
833
|
+
namespace: DEFAULT_NAMESPACE,
|
|
834
834
|
publicKey: old.signer.publicKey
|
|
835
835
|
},
|
|
836
836
|
multipleSigners: null
|