Fix trace validation

This commit is contained in:
wltsmrz
2014-03-03 15:08:38 -08:00
parent 70d28fc15e
commit a098b0cf02

View File

@@ -173,7 +173,7 @@ function Remote(opts, trace) {
throw new TypeError('Remote "fee_cushion" configuration is not a Number');
}
if (!/^(undefined|number)$/.test(typeof opts.trace)) {
if (!/^(undefined|boolean)$/.test(typeof opts.trace)) {
throw new TypeError('Remote "trace" configuration is not a Boolean');
}