fcoin/lib/blockstore/common.js
2019-04-08 13:18:53 -07:00

32 lines
393 B
JavaScript

/*!
* common.js - block store constants for bcoin
* Copyright (c) 2019, Braydon Fuller (MIT License).
* https://github.com/bcoin-org/bcoin
*/
'use strict';
/**
* @module blockstore/common
*/
/**
* Data types.
* @enum {Number}
*/
exports.types = {
BLOCK: 1,
UNDO: 2
};
/**
* File prefixes for data types.
* @enum {String}
*/
exports.prefixes = {
1: 'blk',
2: 'blu'
};