hsd
Version:
Cryptocurrency bike-shed
32 lines (25 loc) • 492 B
JavaScript
/*!
* layout.js - mempool data layout for hsd
* Copyright (c) 2017-2018, Christopher Jeffrey (MIT License).
* https://github.com/handshake-org/hsd
*/
;
const bdb = require('bdb');
/*
* Database Layout:
* V -> db version
* v -> serialization version
* R -> tip hash
* e[hash] -> entry
*/
const layout = {
V: bdb.key('V'),
v: bdb.key('v'),
R: bdb.key('R'),
F: bdb.key('F'),
e: bdb.key('e', ['hash256'])
};
/*
* Expose
*/
module.exports = layout;