2016-09-12 13:33:00 -07:00
|
|
|
/*!
|
|
|
|
|
* native.js - native bindings for bcoin
|
2017-02-03 22:47:26 -08:00
|
|
|
* Copyright (c) 2016-2017, Christopher Jeffrey (MIT License).
|
2016-09-12 13:33:00 -07:00
|
|
|
* https://github.com/bcoin-org/bcoin
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
2016-11-18 23:04:37 -08:00
|
|
|
exports.binding = null;
|
2016-09-12 13:33:00 -07:00
|
|
|
|
2016-11-18 23:04:37 -08:00
|
|
|
if (+process.env.BCOIN_NO_NATIVE !== 1) {
|
2016-09-12 13:33:00 -07:00
|
|
|
try {
|
2016-11-18 23:04:37 -08:00
|
|
|
exports.binding = require('bcoin-native');
|
2016-09-12 13:33:00 -07:00
|
|
|
} catch (e) {
|
|
|
|
|
;
|
|
|
|
|
}
|
|
|
|
|
}
|